on_chain_error() — langchain Function Reference
Architecture documentation for the on_chain_error() function in streaming_stdout.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fb5bb54e_a3e8_bdf3_88bc_a1a0770412fe["on_chain_error()"] 6b65bf57_0fa9_b411_5886_294d6dbe5842["StreamingStdOutCallbackHandler"] fb5bb54e_a3e8_bdf3_88bc_a1a0770412fe -->|defined in| 6b65bf57_0fa9_b411_5886_294d6dbe5842 style fb5bb54e_a3e8_bdf3_88bc_a1a0770412fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/streaming_stdout.py lines 95–101
def on_chain_error(self, error: BaseException, **kwargs: Any) -> None:
"""Run when chain errors.
Args:
error: The error that occurred.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
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/streaming_stdout.py.
Where is on_chain_error() defined?
on_chain_error() is defined in libs/core/langchain_core/callbacks/streaming_stdout.py at line 95.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free