We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46fe6e0 + 8051064 commit acfe348Copy full SHA for acfe348
packages/types/src/custom-tool.ts
@@ -21,7 +21,7 @@
21
* ```
22
*/
23
24
-import type { ZodType, infer as ZodInfer, z } from "zod/v4"
+import type { ZodType, z } from "zod/v4"
25
26
import { TaskLike } from "./task.js"
27
@@ -93,7 +93,7 @@ export interface SerializedCustomToolDefinition {
93
export interface TypedCustomToolDefinition<T extends CustomToolParametersSchema>
94
extends Omit<CustomToolDefinition, "execute" | "parameters"> {
95
parameters?: T
96
- execute: (args: ZodInfer<T>, context: CustomToolContext) => Promise<string>
+ execute: (args: z.infer<T>, context: CustomToolContext) => Promise<string>
97
}
98
99
/**
0 commit comments