Home / Function/ _persist_run() — langchain Function Reference

_persist_run() — langchain Function Reference

Architecture documentation for the _persist_run() function in run_collector.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f7f8a36d_666a_1a56_577c_cbfde525f5c7["_persist_run()"]
  c7686d6d_3f34_d781_f3ed_dce4f50f9a31["RunCollectorCallbackHandler"]
  f7f8a36d_666a_1a56_577c_cbfde525f5c7 -->|defined in| c7686d6d_3f34_d781_f3ed_dce4f50f9a31
  style f7f8a36d_666a_1a56_577c_cbfde525f5c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/run_collector.py lines 32–40

    def _persist_run(self, run: Run) -> None:
        """Persist a run by adding it to the `traced_runs` list.

        Args:
            run: The run to be persisted.
        """
        run_ = run_copy(run)
        run_.reference_example_id = self.example_id
        self.traced_runs.append(run_)

Domain

Subdomains

Frequently Asked Questions

What does _persist_run() do?
_persist_run() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/run_collector.py.
Where is _persist_run() defined?
_persist_run() is defined in libs/core/langchain_core/tracers/run_collector.py at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free