MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / buildMockAgentTemplate

Function buildMockAgentTemplate

sdk/e2e/utils/e2e-mocks.ts:31–57  ·  view source on GitHub ↗
(params: {
  publisherId: string
  agentId: string
  version?: string
})

Source from the content-addressed store, hash-verified

29} as const
30
31function buildMockAgentTemplate(params: {
32 publisherId: string
33 agentId: string
34 version?: string
35}): AgentTemplate {
36 const { publisherId, agentId, version } = params
37 const id = `${publisherId}/${agentId}@${version ?? 'latest'}`
38
39 return {
40 id,
41 displayName: `${agentId} (mock)`,
42 model: models.openrouter_claude_sonnet_4_5,
43 mcpServers: {},
44 toolNames: [],
45 spawnableAgents: [],
46 systemPrompt: '',
47 instructionsPrompt: 'You are a helpful assistant.',
48 stepPrompt: '',
49 inputSchema: {
50 prompt: z.string().optional(),
51 params: z.object({}).passthrough().optional(),
52 },
53 includeMessageHistory: true,
54 inheritParentSystemPrompt: false,
55 outputMode: 'last_message',
56 }
57}
58
59const MOCK_TOOL_NAMES = [
60 'get_weather',

Callers 1

setupE2eMocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected