format_tool_to_openai_tool#
- langchain_core.utils.function_calling.format_tool_to_openai_tool(tool: BaseTool) ToolDescription [source]#
Deprecated since version 0.1.16: Use
langchain_core.utils.function_calling.convert_to_openai_tool()
instead.Format tool into the OpenAI function API.
- Parameters:
tool (BaseTool) – The tool to format.
- Returns:
The tool description.
- Return type: