Creates a new StructuredTool instance with the provided function, name, description, and schema.
Schema can be provided as Zod or JSON schema, and both will be validated.
The input schema for the tool.
The output type of the tool.
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, and both will be validated.