langchain_core.utils.function_calling
.convert_to_openai_tool¶
- langchain_core.utils.function_calling.convert_to_openai_tool(tool: Union[Dict[str, Any], Type[BaseModel], Callable, BaseTool]) Dict[str, Any] [源代码]¶
将原始函数/类转换为OpenAI工具。