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 87bc636e_d6e5_7a08_4951_58e3eb8a83d8["on_retry()"] 0f6b3261_31fa_c34e_ca33_cb141bdf78ff["BaseTracer"] 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 -->|defined in| 0f6b3261_31fa_c34e_ca33_cb141bdf78ff 40ff149b_22c0_afca_f541_15c149ee7b05["on_retry()"] 40ff149b_22c0_afca_f541_15c149ee7b05 -->|calls| 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 40ff149b_22c0_afca_f541_15c149ee7b05["on_retry()"] 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 -->|calls| 40ff149b_22c0_afca_f541_15c149ee7b05 style 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/base.py lines 170–190
def on_retry(
self,
retry_state: RetryCallState,
*,
run_id: UUID,
**kwargs: Any,
) -> Run:
"""Run on retry.
Args:
retry_state: The retry state.
run_id: The run ID.
**kwargs: Additional arguments.
Returns:
The run.
"""
return self._llm_run_with_retry_event(
retry_state=retry_state,
run_id=run_id,
)
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/tracers/base.py.
Where is on_retry() defined?
on_retry() is defined in libs/core/langchain_core/tracers/base.py at line 170.
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