Skip to content

zodTool

function zodTool<I, O>(spec): Tool<I, O>;

Defined in: core/src/zod.ts:59

A tool whose arguments are validated by zod, with the failure reported to the model in words it can act on. topic: expected string, received number beats a stack trace it cannot read.

Type Parameter
I
O
Parameter Type
spec ZodToolSpec<I, O>

Tool<I, O>