| 29 | } as const |
| 30 | |
| 31 | function 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 | |
| 59 | const MOCK_TOOL_NAMES = [ |
| 60 | 'get_weather', |