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]¶
将 Pydantic 模型转换为 Ernie API 的函数描述。
- 参数
model (Type[BaseModel]) –
name (Optional[str]) –
description (Optional[str]) –
- 返回类型