Home / Function/ on_retry() — langchain Function Reference

on_retry() — langchain Function Reference

Architecture documentation for the on_retry() function in callbacks.py from the langchain codebase.

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  7f963315_46d1_7a92_7dec_f8b104139867["on_retry()"]
  b9664d7e_7900_dd8a_b9b3_2ee136c7b790["FakeCallbackHandler"]
  7f963315_46d1_7a92_7dec_f8b104139867 -->|defined in| b9664d7e_7900_dd8a_b9b3_2ee136c7b790
  b2842790_0d53_53d0_ba09_97448e27bcea["on_retry()"]
  b2842790_0d53_53d0_ba09_97448e27bcea -->|calls| 7f963315_46d1_7a92_7dec_f8b104139867
  44ba5e16_6d8a_1fb0_c939_336cdd7e6905["on_retry_common()"]
  7f963315_46d1_7a92_7dec_f8b104139867 -->|calls| 44ba5e16_6d8a_1fb0_c939_336cdd7e6905
  b2842790_0d53_53d0_ba09_97448e27bcea["on_retry()"]
  7f963315_46d1_7a92_7dec_f8b104139867 -->|calls| b2842790_0d53_53d0_ba09_97448e27bcea
  style 7f963315_46d1_7a92_7dec_f8b104139867 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 154–155

    def on_retry(self, *args: Any, **kwargs: Any) -> Any:
        self.on_retry_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_retry() do?
on_retry() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_retry() defined?
on_retry() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 154.
What does on_retry() call?
on_retry() calls 2 function(s): on_retry, on_retry_common.
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