将可运行对象转换为工具#
- langchain_core.tools.convert.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 [source]#
将Runnable转换为BaseTool。