MCPcopy Create free account
hub / github.com/Noumena-Network/code / createAgent

Function createAgent

src/tools/AgentToolRuntime.test.ts:565–574  ·  view source on GitHub ↗
(agentType: string, overrides: Partial<MockAgentDefinition> = {})

Source from the content-addressed store, hash-verified

563const { AgentTool } = await import(import.meta.resolve('./AgentTool/AgentTool.tsx'))
564
565function createAgent(agentType: string, overrides: Partial<MockAgentDefinition> = {}): MockAgentDefinition {
566 return {
567 agentType,
568 whenToUse: `Use ${agentType}`,
569 source: 'built-in',
570 baseDir: 'built-in',
571 getSystemPrompt: () => `${agentType} prompt`,
572 ...overrides,
573 }
574}
575
576function createToolUseContext({
577 activeAgents = [],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected