Home / Function/ _errored_retrieval_run() — langchain Function Reference

_errored_retrieval_run() — langchain Function Reference

Architecture documentation for the _errored_retrieval_run() function in core.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f997638c_59bb_69a7_6663_458d958a39ca["_errored_retrieval_run()"]
  70348e44_de0f_ccb4_c06a_8453289ed93e["_TracerCore"]
  f997638c_59bb_69a7_6663_458d958a39ca -->|defined in| 70348e44_de0f_ccb4_c06a_8453289ed93e
  66392709_99c4_1a2e_dfac_aed34eebe5f5["_get_run()"]
  f997638c_59bb_69a7_6663_458d958a39ca -->|calls| 66392709_99c4_1a2e_dfac_aed34eebe5f5
  c29d131b_982f_a6b1_9b0a_0c44ecc968f4["_get_stacktrace()"]
  f997638c_59bb_69a7_6663_458d958a39ca -->|calls| c29d131b_982f_a6b1_9b0a_0c44ecc968f4
  style f997638c_59bb_69a7_6663_458d958a39ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/core.py lines 528–537

    def _errored_retrieval_run(
        self,
        error: BaseException,
        run_id: UUID,
    ) -> Run:
        retrieval_run = self._get_run(run_id, run_type="retriever")
        retrieval_run.error = self._get_stacktrace(error)
        retrieval_run.end_time = datetime.now(timezone.utc)
        retrieval_run.events.append({"name": "error", "time": retrieval_run.end_time})
        return retrieval_run

Domain

Subdomains

Frequently Asked Questions

What does _errored_retrieval_run() do?
_errored_retrieval_run() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/core.py.
Where is _errored_retrieval_run() defined?
_errored_retrieval_run() is defined in libs/core/langchain_core/tracers/core.py at line 528.
What does _errored_retrieval_run() call?
_errored_retrieval_run() calls 2 function(s): _get_run, _get_stacktrace.

Analyze Your Own Codebase

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

Try Supermodel Free