ZodToolSpec
Defined in: core/src/zod.ts:33
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
O |
Properties
Section titled “Properties”clampOverflow?
Section titled “clampOverflow?”optional clampOverflow?: boolean;Defined in: core/src/zod.ts:51
Clamp overflow to the bounds the schema already advertised instead of rejecting the call. Worth it for a TERMINAL tool, which gets no second chance: a forced-submit salvage turn runs exactly once, and discarding an otherwise-valid answer over a few extra characters loses the whole run. Off by default: an ordinary tool can simply be called again.
description
Section titled “description”description: string;Defined in: core/src/zod.ts:35
input: ZodType<I>;Defined in: core/src/zod.ts:36
isConcurrencySafe?
Section titled “isConcurrencySafe?”optional isConcurrencySafe?: boolean;Defined in: core/src/zod.ts:42
isReadOnly?
Section titled “isReadOnly?”optional isReadOnly?: boolean;Defined in: core/src/zod.ts:40
isTerminal?
Section titled “isTerminal?”optional isTerminal?: boolean;Defined in: core/src/zod.ts:43
name: string;Defined in: core/src/zod.ts:34
needsApproval?
Section titled “needsApproval?”optional needsApproval?: boolean;Defined in: core/src/zod.ts:41
run: (input, ctx) => Promise<O>;Defined in: core/src/zod.ts:37
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
I |
ctx |
ToolContext |
Returns
Section titled “Returns”Promise<O>
summarize?
Section titled “summarize?”optional summarize?: (output) => string;Defined in: core/src/zod.ts:38
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
output |
O |
Returns
Section titled “Returns”string
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: core/src/zod.ts:39