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

Function get_agents_md

openkb/schema.py:66–79  ·  view source on GitHub ↗

Return the AGENTS.md content, reading from disk if available. Args: wiki_dir: Path to the wiki directory (containing AGENTS.md). Returns: Content of wiki_dir/AGENTS.md if it exists, otherwise the hardcoded AGENTS_MD default.

(wiki_dir: Path)

Source from the content-addressed store, hash-verified

64
65
66def get_agents_md(wiki_dir: Path) -> str:
67 """Return the AGENTS.md content, reading from disk if available.
68
69 Args:
70 wiki_dir: Path to the wiki directory (containing AGENTS.md).
71
72 Returns:
73 Content of wiki_dir/AGENTS.md if it exists, otherwise the hardcoded
74 AGENTS_MD default.
75 """
76 agents_file = wiki_dir / "AGENTS.md"
77 if agents_file.exists():
78 return agents_file.read_text(encoding="utf-8")
79 return AGENTS_MD

Callers 5

build_skill_create_agentFunction · 0.90
compile_short_docFunction · 0.90
compile_long_docFunction · 0.90
build_lint_agentFunction · 0.90
build_query_agentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected