MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _write_index

Function _write_index

tests/test_deck_creator.py:36–42  ·  view source on GitHub ↗

Simulate the producer skill writing index.html.

(kb_dir: Path, deck_name: str, body: str = "<html></html>")

Source from the content-addressed store, hash-verified

34
35
36def _write_index(kb_dir: Path, deck_name: str, body: str = "<html></html>") -> Path:
37 """Simulate the producer skill writing index.html."""
38 out = kb_dir / "output" / "decks" / deck_name
39 out.mkdir(parents=True, exist_ok=True)
40 p = out / "index.html"
41 p.write_text(body, encoding="utf-8")
42 return p
43
44
45def _producer_result(kb_dir: Path, deck_name: str) -> SkillRunResult:

Callers 1

fake_skillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected