Toggle Menu
Prev Up Next

# `langchain_core.utils.function_calling`.format_tool_to_openai_function

langchain_core.utils.function_calling.format_tool_to_openai_function(tool: BaseTool) → FunctionDescription

  [Deprecated] Format tool into the OpenAI function API.

  Notes

  Deprecated since version 0.1.16: Use langchain_core.utils.function_calling.convert_to_openai_function() instead.

  Parameters

    tool (BaseTool) –

  Return type

    FunctionDescription

# Examples using format_tool_to_openai_function

- 🦜🕸️LangGraph