MCPcopy Create free account
hub / github.com/apache/maka / buildParentAgentTools

Function buildParentAgentTools

packages/runtime/src/subagent-tools.ts:736–744  ·  view source on GitHub ↗
(
  deps: { taskLedger?: TaskLedgerStore; definitions?: readonly AgentDefinition[] } = {},
)

Source from the content-addressed store, hash-verified

734}
735
736export function buildParentAgentTools(
737 deps: { taskLedger?: TaskLedgerStore; definitions?: readonly AgentDefinition[] } = {},
738): MakaTool[] {
739 const definitions = deps.definitions ?? BUILTIN_AGENT_DEFINITIONS;
740 return [
741 ...(definitions.length > 0 ? [buildSubagentSpawnTool({ ...deps, definitions })] : []),
742 ...buildSubagentProjectionTools(),
743 ];
744}

Calls 2

buildSubagentSpawnToolFunction · 0.85

Tested by 1

agentBackendFunction · 0.68