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 40ff149b_22c0_afca_f541_15c149ee7b05["on_retry()"] b3ab8001_c14c_4191_ca53_2dbabc99917f["AsyncBaseTracer"] 40ff149b_22c0_afca_f541_15c149ee7b05 -->|defined in| b3ab8001_c14c_4191_ca53_2dbabc99917f 87bc636e_d6e5_7a08_4951_58e3eb8a83d8["on_retry()"] 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 -->|calls| 40ff149b_22c0_afca_f541_15c149ee7b05 87bc636e_d6e5_7a08_4951_58e3eb8a83d8["on_retry()"] 40ff149b_22c0_afca_f541_15c149ee7b05 -->|calls| 87bc636e_d6e5_7a08_4951_58e3eb8a83d8 style 40ff149b_22c0_afca_f541_15c149ee7b05 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/base.py lines 635–645
async def on_retry(
self,
retry_state: RetryCallState,
*,
run_id: UUID,
**kwargs: Any,
) -> None:
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 635.
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