langchain.utils.ernie_functions.convert_pydantic_to_ernie_tool

langchain.utils.ernie_functions.convert_pydantic_to_ernie_tool(model: Type[BaseModel], *, name: Optional[str] = None, description: Optional[str] = None) ToolDescription[source]

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