langchain_community.utils.openai_functions
.convert_pydantic_to_openai_tool¶
- langchain_community.utils.openai_functions.convert_pydantic_to_openai_tool(model: Type[BaseModel], *, name: Optional[str] = None, description: Optional[str] = None) ToolDescription [source]¶
Converts a Pydantic model to a function description for the OpenAI API.