MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatAgentLine

Function formatAgentLine

src/tools/AgentTool/prompt.ts:43–46  ·  view source on GitHub ↗
(agent: AgentDefinition)

Source from the content-addressed store, hash-verified

41 * `- type: whenToUse (Tools: ...)`.
42 */
43export function formatAgentLine(agent: AgentDefinition): string {
44 const toolsDescription = getToolsDescription(agent)
45 return `- ${agent.agentType}: ${agent.whenToUse} (Tools: ${toolsDescription})`
46}
47
48/**
49 * Whether the agent list should be injected as an attachment message instead

Callers 1

getPromptFunction · 0.85

Calls 1

getToolsDescriptionFunction · 0.85

Tested by

no test coverage detected