langchain.tools.render.format_tool_to_openai_tool

langchain.tools.render.format_tool_to_openai_tool(tool: BaseTool) ToolDescription[source]

Format tool into the OpenAI function API.