is_pydantic_v1_subclass#

langchain_core.utils.pydantic.is_pydantic_v1_subclass(cls: type) bool[source]#

Check if the given class is Pydantic v1-like.

Returns:

True if the given class is a subclass of Pydantic BaseModel 1.x.

Parameters:

cls (type)

Return type:

bool