| 1 | import { z } from 'zod'; |
| 2 | |
| 3 | export interface Tool { |
| 4 | run: (...args: any[]) => Promise<any> | any; |
| 5 | type: 'function'; |
| 6 | function: { |
| 7 | name: string; |
| 8 | description?: string; |
| 9 | parameters?: Record<string, any>; |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | export const pipeToolSchema = z.object({ |
| 14 | type: z.literal('function'), |
nothing calls this directly
no outgoing calls
no test coverage detected