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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
O |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
spec |
ZodToolSpec<I, O> |
Returns
Section titled “Returns”Tool<I, O>