Parameters for the tool function. Schema can be provided as Zod or JSON schema. Both schema types will be validated.
interface ToolWrapperParamsDefault config object for the tool runnable.
The description of the tool.
The name of the tool. If using with an LLM, this will be passed as the tool name.
The tool response format.
If "content" then the output of the tool is interpreted as the contents of a ToolMessage. If "content_and_artifact" then the output is expected to be a two-tuple corresponding to the (content, artifact) of a ToolMessage.
Whether to return the tool's output directly.
Setting this to true means that after the tool is called, an agent should stop looping.
The input schema for the tool. If using an LLM, this will be passed as the tool schema to generate arguments for.
Whether to show full details in the thrown parsing errors.
Default config object for the tool runnable.
Optional provider-specific extra fields for the tool.
Metadata for the tool.
The tool response format.
Whether to show full details in the thrown parsing errors.