Ask a question to get started
Enter to sendā¢Shift+Enter new line
convert_runnable_to_tool( runnable: Runnable[Any, Any], args_schema: TypeBaseModel | None =
runnable
Runnable[Any, Any]
The Runnable to convert.
Runnable
args_schema
TypeBaseModel | 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.