langchain_community.utils.ernie_functions.convert_pydantic_to_ernie_function¶

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

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

Parameters
  • model (Type[BaseModel]) –

  • name (Optional[str]) –

  • description (Optional[str]) –

Return type

FunctionDescription