is_pydantic_v2_subclass#
- langchain_core.utils.pydantic.is_pydantic_v2_subclass(cls: type) bool [source]#
Check if the given class is Pydantic v2-like.
- Returns:
True if the given class is a subclass of Pydantic BaseModel 2.x.
- Parameters:
cls (type)
- Return type:
bool