The function to invoke when the tool is called.
An object containing the following properties:
The name of the tool.
The Zod schema defining the input for the tool.
Optional
description?: stringThe description of the tool.
A new StructuredTool instance.
Generated using TypeDoc
Creates a new StructuredTool instance with the provided function, name, description, and schema.