Creates a new StructuredTool instance with the provided function, name, description, and schema.
Schema can be provided as Zod or JSON schema. If you pass JSON schema, tool inputs will not be validated.
The input schema for the tool. Either any Zod object, a Zod string, or JSON schema instance.
The function to invoke when the tool is called.
An object containing the following properties:
A new StructuredTool instance.
Creates a new StructuredTool instance with the provided function, name, description, and schema.
Schema can be provided as Zod or JSON schema. If you pass JSON schema, tool inputs will not be validated.