We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754ef09 commit 6d72f8fCopy full SHA for 6d72f8f
src/lib/zod/types.ts
@@ -20,8 +20,10 @@ export interface ZodTool {
20
description: string | undefined;
21
parameters: z.ZodType;
22
output: z.ZodType | undefined;
23
- execute: (input: any) => Promise<ExecuteToolResponse>;
24
- executeOrAuthorize: (input: any) => Promise<ExecuteToolResponse | ToolAuthorizationResponse>;
+ execute: <T extends unknown>(input: T) => Promise<ExecuteToolResponse>;
+ executeOrAuthorize: <T extends unknown>(
25
+ input: T,
26
+ ) => Promise<ExecuteToolResponse | ToolAuthorizationResponse>;
27
}
28
29
/**
0 commit comments