Schema for defining tools.

0.2.19

interface StructuredToolParams {
    description?: string;
    name: string;
    schema: ZodObjectAny | ZodEffects<ZodObjectAny, any, {}>;
}

Hierarchy

Properties

description?: string

An optional description of the tool to pass to the model.

name: string

The name of the tool.

schema: ZodObjectAny | ZodEffects<ZodObjectAny, any, {}>

A Zod schema representing the parameters of the tool.