The type of the tool input schema. Usually you don't need to specify this.
The TypeScript type representing the structure of the tool arguments generated by the LLM. Useful for type checking tool handler functions when using JSONSchema.
A description of the tool.
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.
Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptionsThe input argument for the tool, which can be a string, undefined, or an input of the tool's schema.
Optional
callbacks: Callbacks | RunnableConfig<Record<string, any>>Optional callbacks for the tool.
A Promise that resolves with a string.
Optional
options: Partial<RunnableConfig<Record<string, any>>>Optional
options: Partial<RunnableConfig<Record<string, any>>>
A special interface for tools that accept a string input, usually defined with the Tool class.