Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

InferToolInput

Type Alias: InferToolInput<T>

ts
type InferToolInput<T> = T extends object ? TInput extends z.ZodType ? z.infer<TInput> : any : any;
type InferToolInput<T> = T extends object ? TInput extends z.ZodType ? z.infer<TInput> : any : any;

Defined in: tools/tool-definition.ts:61

Extract the input type from a tool (inferred from Zod schema)

Type Parameters

T

T