InferParameters
InferParameters
Utility type that infers the TypeScript type from a tool parameter schema. Supports both Zod schemas and AI library schemas.
Signature
type InferParameters<T extends ToolParameterType> = T extends Schema<any>
    ? T['_type']
    : T extends z.ZodTypeAny
      ? z.infer<T>
      : T extends z3.ZodTypeAny
        ? z3.infer<T>
        : never