on_retry() — langchain Function Reference
Architecture documentation for the on_retry() function in manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 59c3fe59_2154_bc88_4a8b_47bb9167ce24["on_retry()"] 4a638922_ac9e_46d0_c8d9_9547651b2e35["RunManager"] 59c3fe59_2154_bc88_4a8b_47bb9167ce24 -->|defined in| 4a638922_ac9e_46d0_c8d9_9547651b2e35 7a92ed87_11d5_d658_c5b1_05200af7fc97["on_retry()"] 7a92ed87_11d5_d658_c5b1_05200af7fc97 -->|calls| 59c3fe59_2154_bc88_4a8b_47bb9167ce24 7a92ed87_11d5_d658_c5b1_05200af7fc97["on_retry()"] 59c3fe59_2154_bc88_4a8b_47bb9167ce24 -->|calls| 7a92ed87_11d5_d658_c5b1_05200af7fc97 8964b4e9_440e_18a7_2a15_a54a0b2b733c["handle_event()"] 59c3fe59_2154_bc88_4a8b_47bb9167ce24 -->|calls| 8964b4e9_440e_18a7_2a15_a54a0b2b733c style 59c3fe59_2154_bc88_4a8b_47bb9167ce24 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/manager.py lines 540–563
def on_retry(
self,
retry_state: RetryCallState,
**kwargs: Any,
) -> None:
"""Run when a retry is received.
Args:
retry_state: The retry state.
**kwargs: Additional keyword arguments.
"""
if not self.handlers:
return
handle_event(
self.handlers,
"on_retry",
"ignore_retry",
retry_state,
run_id=self.run_id,
parent_run_id=self.parent_run_id,
tags=self.tags,
**kwargs,
)
Domain
Subdomains
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/manager.py.
Where is on_retry() defined?
on_retry() is defined in libs/core/langchain_core/callbacks/manager.py at line 540.
What does on_retry() call?
on_retry() calls 2 function(s): handle_event, 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