Ask a question to get started
Enter to sendā¢Shift+Enter new line
convert_runnable_to_tool( runnable: Runnable, args_schema: type[BaseModel] | None = None, *,
runnable
Runnable
The Runnable to convert.
args_schema
type[BaseModel] | None
None
The schema for the tool's input arguments.
name
str | None
description
arg_types
dict[str, type] | None
Convert a Runnable into a BaseTool.
BaseTool
The name of the tool.
The description of the tool.
The types of the arguments.