(input: {
description: string
args: Args
execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string>
})
| 8 | } |
| 9 | |
| 10 | export function tool<Args extends z.ZodRawShape>(input: { |
| 11 | description: string |
| 12 | args: Args |
| 13 | execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string> |
| 14 | }) { |
| 15 | return input |
| 16 | } |
| 17 | tool.schema = z |
| 18 | |
| 19 | export type ToolDefinition = ReturnType<typeof tool> |
no outgoing calls
no test coverage detected