MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / agentTool

Function agentTool

packages/agent-core/test/tools/agent.test.ts:24–31  ·  view source on GitHub ↗
(
  host: SessionSubagentHost,
  background = createBackgroundManager().manager,
  subagents?: ResolvedAgentProfile['subagents'],
  options?: ConstructorParameters<typeof AgentTool>[3],
)

Source from the content-addressed store, hash-verified

22}
23
24function agentTool(
25 host: SessionSubagentHost,
26 background = createBackgroundManager().manager,
27 subagents?: ResolvedAgentProfile['subagents'],
28 options?: ConstructorParameters<typeof AgentTool>[3],
29): AgentTool {
30 return new AgentTool(host, background, subagents, options);
31}
32
33interface CapturedLogEntry {
34 readonly level: 'error' | 'warn' | 'info' | 'debug';

Callers 1

agent.test.tsFile · 0.70

Calls 1

createBackgroundManagerFunction · 0.90

Tested by

no test coverage detected