Home / Function/ get_pydantic_major_version() — langchain Function Reference

get_pydantic_major_version() — langchain Function Reference

Architecture documentation for the get_pydantic_major_version() function in pydantic.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ff535458_110f_6636_2a47_4417f01f263e["get_pydantic_major_version()"]
  892b1d9f_bb87_0364_19af_71382204e430["pydantic.py"]
  ff535458_110f_6636_2a47_4417f01f263e -->|defined in| 892b1d9f_bb87_0364_19af_71382204e430
  ff535458_110f_6636_2a47_4417f01f263e["get_pydantic_major_version()"]
  ff535458_110f_6636_2a47_4417f01f263e -->|calls| ff535458_110f_6636_2a47_4417f01f263e
  ff535458_110f_6636_2a47_4417f01f263e["get_pydantic_major_version()"]
  ff535458_110f_6636_2a47_4417f01f263e -->|calls| ff535458_110f_6636_2a47_4417f01f263e
  style ff535458_110f_6636_2a47_4417f01f263e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/utils/pydantic.py lines 55–63

def get_pydantic_major_version() -> int:
    """DEPRECATED - Get the major version of Pydantic.

    Use `PYDANTIC_VERSION.major` instead.

    Returns:
        The major version of Pydantic.
    """
    return PYDANTIC_VERSION.major

Domain

Subdomains

Frequently Asked Questions

What does get_pydantic_major_version() do?
get_pydantic_major_version() is a function in the langchain codebase, defined in libs/core/langchain_core/utils/pydantic.py.
Where is get_pydantic_major_version() defined?
get_pydantic_major_version() is defined in libs/core/langchain_core/utils/pydantic.py at line 55.
What does get_pydantic_major_version() call?
get_pydantic_major_version() calls 1 function(s): get_pydantic_major_version.
What calls get_pydantic_major_version()?
get_pydantic_major_version() is called by 1 function(s): get_pydantic_major_version.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free