on_retry() — langchain Function Reference
Architecture documentation for the on_retry() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bbba9544_1d00_92b6_57da_c34e847f6d70["on_retry()"] 64513429_d001_87b1_5f19_cc17a3f3577b["AsyncCallbackHandler"] bbba9544_1d00_92b6_57da_c34e847f6d70 -->|defined in| 64513429_d001_87b1_5f19_cc17a3f3577b cb4667da_911f_63e7_4e14_f96c08220111["on_retry()"] cb4667da_911f_63e7_4e14_f96c08220111 -->|calls| bbba9544_1d00_92b6_57da_c34e847f6d70 cb4667da_911f_63e7_4e14_f96c08220111["on_retry()"] bbba9544_1d00_92b6_57da_c34e847f6d70 -->|calls| cb4667da_911f_63e7_4e14_f96c08220111 style bbba9544_1d00_92b6_57da_c34e847f6d70 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 758–773
async def on_retry(
self,
retry_state: RetryCallState,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> Any:
"""Run on a retry event.
Args:
retry_state: The retry state.
run_id: The ID of the current run.
parent_run_id: The ID of the parent run.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does on_retry() do?
on_retry() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is on_retry() defined?
on_retry() is defined in libs/core/langchain_core/callbacks/base.py at line 758.
What does on_retry() call?
on_retry() calls 1 function(s): on_retry.
What calls on_retry()?
on_retry() is called by 1 function(s): on_retry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free