on_chain_error() — langchain Function Reference
Architecture documentation for the on_chain_error() function in progress.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c125186e_0bc0_6835_fae1_362c9061b699["on_chain_error()"] 8f7245e3_8bd3_bce9_4868_73ea9b0cf467["ProgressBarCallback"] c125186e_0bc0_6835_fae1_362c9061b699 -->|defined in| 8f7245e3_8bd3_bce9_4868_73ea9b0cf467 d3fbccba_a17d_4737_e36f_b0c86b86e89e["increment()"] c125186e_0bc0_6835_fae1_362c9061b699 -->|calls| d3fbccba_a17d_4737_e36f_b0c86b86e89e style c125186e_0bc0_6835_fae1_362c9061b699 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/smith/evaluation/progress.py lines 52–61
def on_chain_error(
self,
error: BaseException,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> Any:
if parent_run_id is None:
self.increment()
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/langchain/langchain_classic/smith/evaluation/progress.py.
Where is on_chain_error() defined?
on_chain_error() is defined in libs/langchain/langchain_classic/smith/evaluation/progress.py at line 52.
What does on_chain_error() call?
on_chain_error() calls 1 function(s): increment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free