format_tool_to_openai_function#
- langchain_core.utils.function_calling.format_tool_to_openai_function(tool: BaseTool) FunctionDescription #
Deprecated since version 0.1.16: Use
convert_to_openai_function()
instead. It will not be removed until langchain-core==1.0.Format tool into the OpenAI function API.
- Parameters:
tool (BaseTool) – The tool to format.
- Returns:
The function description.
- Return type: