Convert a Runnable into a BaseTool.
convert_runnable_to_tool(
runnable: Runnable,
args_schema: type[BaseModel] | None = None,
*,
name: str | None = None,
description: str | None = None,
arg_types: dict[str, type] | None = None
) -> BaseTool| Name | Type | Description |
|---|---|---|
runnable* | Runnable | The |
args_schema | type[BaseModel] | None | Default: NoneThe schema for the tool's input arguments. |
name | str | None | Default: NoneThe name of the tool. |
description | str | None | Default: NoneThe description of the tool. |
arg_types | dict[str, type] | None | Default: NoneThe types of the arguments. |