langchain_core.utils.pydantic
is_pydantic_v2_subclass()
检查已安装的 Pydantic 版本是否为 1.x 类似。
cls (Type) –
bool