获取所有基础模型注释#

langchain_core.tools.base.get_all_basemodel_annotations(cls: type[BaseModel] | Any, *, default_to_bound: bool = True) dict[str, type][source]#
Parameters:
  • cls (类型[BaseModel] | 任意)

  • default_to_bound (bool)

Return type:

字典[字符串, 类型]