_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 144b4c88_21d1_eb83_ddf1_b64640d36a54["_is_pydantic_class()"] 21b8cbde_a9dc_13d6_83f9_010248e2bfc8["chat_models.py"] 144b4c88_21d1_eb83_ddf1_b64640d36a54 -->|defined in| 21b8cbde_a9dc_13d6_83f9_010248e2bfc8 539ec970_fba6_1286_7920_4016594274ca["with_structured_output()"] 539ec970_fba6_1286_7920_4016594274ca -->|calls| 144b4c88_21d1_eb83_ddf1_b64640d36a54 style 144b4c88_21d1_eb83_ddf1_b64640d36a54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/fireworks/langchain_fireworks/chat_models.py lines 1058–1059
def _is_pydantic_class(obj: Any) -> bool:
return isinstance(obj, type) and is_basemodel_subclass(obj)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _is_pydantic_class() do?
_is_pydantic_class() is a function in the langchain codebase, defined in libs/partners/fireworks/langchain_fireworks/chat_models.py.
Where is _is_pydantic_class() defined?
_is_pydantic_class() is defined in libs/partners/fireworks/langchain_fireworks/chat_models.py at line 1058.
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