on_chain_error() — langchain Function Reference
Architecture documentation for the on_chain_error() function in manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6ca38ecd_e01a_2d51_9dc4_4c108747569c["on_chain_error()"] b12567d8_81a9_52c3_3096_d524d1371c83["CallbackManagerForChainGroup"] 6ca38ecd_e01a_2d51_9dc4_4c108747569c -->|defined in| b12567d8_81a9_52c3_3096_d524d1371c83 07a4c44a_3cfb_9b0a_ffde_c1bbfeb4080a["on_chain_error()"] 6ca38ecd_e01a_2d51_9dc4_4c108747569c -->|calls| 07a4c44a_3cfb_9b0a_ffde_c1bbfeb4080a style 6ca38ecd_e01a_2d51_9dc4_4c108747569c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/manager.py lines 1761–1774
def on_chain_error(
self,
error: BaseException,
**kwargs: Any,
) -> None:
"""Run when chain errors.
Args:
error: The error.
**kwargs: Additional keyword arguments.
"""
self.ended = True
return self.parent_run_manager.on_chain_error(error, **kwargs)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does on_chain_error() do?
on_chain_error() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is on_chain_error() defined?
on_chain_error() is defined in libs/core/langchain_core/callbacks/manager.py at line 1761.
What does on_chain_error() call?
on_chain_error() calls 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