langchain_community.tools.render.format_tool_to_openai_function¶

langchain_community.tools.render.format_tool_to_openai_function(tool: BaseTool) FunctionDescription[source]¶

Format tool into the OpenAI function API.

Examples using format_tool_to_openai_function¶