run_construct() — langchain Function Reference
Architecture documentation for the run_construct() function in _compat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 40600a44_44f0_53fc_71b4_dd7bbae57860["run_construct()"] 75bf479b_1332_0b5c_5710_656c22821d19["_compat.py"] 40600a44_44f0_53fc_71b4_dd7bbae57860 -->|defined in| 75bf479b_1332_0b5c_5710_656c22821d19 style 40600a44_44f0_53fc_71b4_dd7bbae57860 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/_compat.py lines 54–65
def run_construct(**kwargs: Any) -> Run:
"""Construct run without validation, compatible with both Pydantic v1 and v2.
Args:
**kwargs: Fields to set on the run.
Returns:
A new `Run` instance constructed without validation.
"""
if _RUN_IS_PYDANTIC_V2:
return Run.model_construct(**kwargs)
return Run.construct(**kwargs) # type: ignore[deprecated]
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does run_construct() do?
run_construct() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/_compat.py.
Where is run_construct() defined?
run_construct() is defined in libs/core/langchain_core/tracers/_compat.py at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free