Source code for langchain.utils.pydantic

from langchain_core.utils.pydantic import PYDANTIC_VERSION


[docs] def get_pydantic_major_version() -> int: """Get the major version of Pydantic. Returns: The major version of Pydantic. """ return PYDANTIC_VERSION.major
__all__ = ["get_pydantic_major_version"]