_persist_run() — langchain Function Reference
Architecture documentation for the _persist_run() function in langchain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD feeaafcd_6a55_9b52_596d_b0e6235026f1["_persist_run()"] 178590bb_85ff_b79e_979a_46e5c3c5389f["LangChainTracer"] feeaafcd_6a55_9b52_596d_b0e6235026f1 -->|defined in| 178590bb_85ff_b79e_979a_46e5c3c5389f style feeaafcd_6a55_9b52_596d_b0e6235026f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/langchain.py lines 198–206
def _persist_run(self, run: Run) -> None:
# We want to free up more memory by avoiding keeping a reference to the
# whole nested run tree.
run_data = run_to_dict(run, exclude={"child_runs", "inputs", "outputs"})
self.latest_run = run_construct(
**run_data,
inputs=run.inputs,
outputs=run.outputs,
)
Domain
Subdomains
Source
Frequently Asked Questions
What does _persist_run() do?
_persist_run() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/langchain.py.
Where is _persist_run() defined?
_persist_run() is defined in libs/core/langchain_core/tracers/langchain.py at line 198.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free