将Pydantic转换为Ernie函数#

langchain_community.utils.ernie_functions.convert_pydantic_to_ernie_function(model: Type[BaseModel], *, name: str | None = None, description: str | None = None) FunctionDescription[源代码]#

将Pydantic模型转换为Ernie API的函数描述。

Parameters:
  • model (类型[BaseModel])

  • 名称 (字符串 | )

  • 描述 (str | None)

Return type:

FunctionDescription