(name: string, description = `The ${name} tool`)
| 5 | import type { IsolateDriver } from '../src/types' |
| 6 | |
| 7 | function createMockTool(name: string, description = `The ${name} tool`) { |
| 8 | const def = toolDefinition({ |
| 9 | name: name as any, |
| 10 | description, |
| 11 | inputSchema: z.object({ query: z.string() }), |
| 12 | outputSchema: z.object({ result: z.string() }), |
| 13 | }) |
| 14 | return def.server(async (input: any) => ({ result: input.query })) |
| 15 | } |
| 16 | |
| 17 | const mockDriver: IsolateDriver = { |
| 18 | createContext: async () => ({ |
no test coverage detected