get_all_basemodel_annotations#
- langchain_core.tools.base.get_all_basemodel_annotations(
- cls: type[BaseModel] | Any,
- *,
- default_to_bound: bool = True,
Get all annotations from a Pydantic BaseModel and its parents.
- Parameters:
cls (type[BaseModel] | Any) – The Pydantic BaseModel class.
default_to_bound (bool) – Whether to default to the bound of a TypeVar if it exists.
- Return type:
dict[str, type]