langchain_core.tools
.convert_runnable_to_tool¶
- langchain_core.tools.convert_runnable_to_tool(runnable: Runnable, args_schema: Optional[Type[BaseModel]] = None, *, name: Optional[str] = None, description: Optional[str] = None, arg_types: Optional[Dict[str, Type]] = None) BaseTool [源代码]¶
将Runnable对象转换为BaseTool。