on_chain_error() — langchain Function Reference
Architecture documentation for the on_chain_error() function in callbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9ab6b943_b5dd_c99c_8813_801a3cff7672["on_chain_error()"] b1da79c3_cb84_0799_b179_c8776facb43e["FakeAsyncCallbackHandler"] 9ab6b943_b5dd_c99c_8813_801a3cff7672 -->|defined in| b1da79c3_cb84_0799_b179_c8776facb43e b4434970_e890_4476_a354_c0ec6bc82054["on_chain_error()"] b4434970_e890_4476_a354_c0ec6bc82054 -->|calls| 9ab6b943_b5dd_c99c_8813_801a3cff7672 60da9ceb_3342_a0c6_ccd8_2a8ee18e7158["on_chain_error_common()"] 9ab6b943_b5dd_c99c_8813_801a3cff7672 -->|calls| 60da9ceb_3342_a0c6_ccd8_2a8ee18e7158 b4434970_e890_4476_a354_c0ec6bc82054["on_chain_error()"] 9ab6b943_b5dd_c99c_8813_801a3cff7672 -->|calls| b4434970_e890_4476_a354_c0ec6bc82054 style 9ab6b943_b5dd_c99c_8813_801a3cff7672 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 250–251
async def on_chain_error(self, *args: Any, **kwargs: Any) -> None:
self.on_chain_error_common()
Domain
Subdomains
Called By
Source
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 250.
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