MCPcopy Create free account
hub / github.com/SethGammon/Citadel / parseAgentContent

Function parseAgentContent

core/agents/parse-agent.js:89–104  ·  view source on GitHub ↗
(agentName, content, agentPath)

Source from the content-addressed store, hash-verified

87 }
88
89 if (!parsedAgent.body) {
90 errors.push('missing agent instructions body');
91 }
92
93 return errors;
94}
95
96function parseAgentContent(agentName, content, agentPath) {
97 const frontmatter = parseAgentFrontmatter(content);
98 const body = extractAgentBody(content);
99 const parsedAgent = {
100 name: agentName,
101 path: agentPath || null,
102 content,
103 frontmatter,
104 body,
105 };
106
107 return {

Callers 1

loadAgentFunction · 0.85

Calls 3

parseAgentFrontmatterFunction · 0.85
extractAgentBodyFunction · 0.85
validateParsedAgentFunction · 0.85

Tested by

no test coverage detected