convert_pydantic_to_ernie_tool#

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

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

Parameters:
  • model (Type[BaseModel]) –

  • name (str | None) –

  • description (str | None) –

Return type:

ToolDescription