Home / Function/ _is_pydantic_class() — langchain Function Reference

_is_pydantic_class() — langchain Function Reference

Architecture documentation for the _is_pydantic_class() function in chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f6a77a86_0ace_2251_5079_743b16f16151["_is_pydantic_class()"]
  9591e0fc_6d18_28d3_cea9_e4a5cf7f2b59["chat_models.py"]
  f6a77a86_0ace_2251_5079_743b16f16151 -->|defined in| 9591e0fc_6d18_28d3_cea9_e4a5cf7f2b59
  fd162549_9cc7_f8f4_7877_2bc28c45cf20["with_structured_output()"]
  fd162549_9cc7_f8f4_7877_2bc28c45cf20 -->|calls| f6a77a86_0ace_2251_5079_743b16f16151
  style f6a77a86_0ace_2251_5079_743b16f16151 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/langchain_groq/chat_models.py lines 1263–1264

def _is_pydantic_class(obj: Any) -> bool:
    return isinstance(obj, type) and is_basemodel_subclass(obj)

Domain

Subdomains

Frequently Asked Questions

What does _is_pydantic_class() do?
_is_pydantic_class() is a function in the langchain codebase, defined in libs/partners/groq/langchain_groq/chat_models.py.
Where is _is_pydantic_class() defined?
_is_pydantic_class() is defined in libs/partners/groq/langchain_groq/chat_models.py at line 1263.
What calls _is_pydantic_class()?
_is_pydantic_class() is called by 1 function(s): with_structured_output.

Analyze Your Own Codebase

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

Try Supermodel Free