Type Parameters
- RunInput extends ZodAny = ZodAny
- RunOutput extends string | Record<string, any> = string
Parameters
- fields: { 
 name: string;
 description?: string;
 schema?: RunInput | ZodEffects<RunInput, output<RunInput>, input<RunInput>>;
 }
- name: string
- Optionaldescription?: string
 
A new StructuredTool instance.
Creates a new StructuredTool instance with the provided function, name, description, and schema.