langchain_community.utils.openai_functions.convert_pydantic_to_openai_function¶

langchain_community.utils.openai_functions.convert_pydantic_to_openai_function(model: Type[BaseModel], *, name: Optional[str] = None, description: Optional[str] = None) FunctionDescription[source]¶

Converts a Pydantic model to a function description for the OpenAI API.