interface StructuredToolInterfaceRunnableInterface<StructuredToolCallInput<SchemaT, SchemaInputT>, ToolOutputT | ToolMessage>Interface that defines the shape of a LangChain structured tool.
A structured tool is a tool that uses a schema to define the structure of the arguments that the LLM generates as part of its ToolCall.
A description of the tool.
Optional provider-specific extra fields for the tool.
This is used to pass provider-specific configuration that doesn't fit into standard tool fields.
The name of the tool.
Whether to return the tool's output directly.
Setting this to true means that after the tool is called, an agent should stop looping.
A Zod schema representing the parameters of the tool.
Invokes the tool with the provided argument and configuration.