Home / Function/ on_chain_error() — langchain Function Reference

on_chain_error() — langchain Function Reference

Architecture documentation for the on_chain_error() function in callbacks.py from the langchain codebase.

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  b4434970_e890_4476_a354_c0ec6bc82054["on_chain_error()"]
  b9664d7e_7900_dd8a_b9b3_2ee136c7b790["FakeCallbackHandler"]
  b4434970_e890_4476_a354_c0ec6bc82054 -->|defined in| b9664d7e_7900_dd8a_b9b3_2ee136c7b790
  9ab6b943_b5dd_c99c_8813_801a3cff7672["on_chain_error()"]
  9ab6b943_b5dd_c99c_8813_801a3cff7672 -->|calls| b4434970_e890_4476_a354_c0ec6bc82054
  60da9ceb_3342_a0c6_ccd8_2a8ee18e7158["on_chain_error_common()"]
  b4434970_e890_4476_a354_c0ec6bc82054 -->|calls| 60da9ceb_3342_a0c6_ccd8_2a8ee18e7158
  9ab6b943_b5dd_c99c_8813_801a3cff7672["on_chain_error()"]
  b4434970_e890_4476_a354_c0ec6bc82054 -->|calls| 9ab6b943_b5dd_c99c_8813_801a3cff7672
  style b4434970_e890_4476_a354_c0ec6bc82054 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 163–164

    def on_chain_error(self, *args: Any, **kwargs: Any) -> Any:
        self.on_chain_error_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_chain_error() do?
on_chain_error() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_chain_error() defined?
on_chain_error() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 163.
What does on_chain_error() call?
on_chain_error() calls 2 function(s): on_chain_error, on_chain_error_common.
What calls on_chain_error()?
on_chain_error() is called by 1 function(s): on_chain_error.

Analyze Your Own Codebase

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

Try Supermodel Free