Home / Function/ on_retry() — langchain Function Reference

on_retry() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5f944cb6_0f5e_53db_b4a7_a5bae1aea8ac["on_retry()"]
  1f9b110b_c2dd_b06a_8d47_b9a8ac3e3c64["FakeCallbackHandler"]
  5f944cb6_0f5e_53db_b4a7_a5bae1aea8ac -->|defined in| 1f9b110b_c2dd_b06a_8d47_b9a8ac3e3c64
  924581bd_46c3_6e67_74e2_42146e8e06ab["on_retry_common()"]
  5f944cb6_0f5e_53db_b4a7_a5bae1aea8ac -->|calls| 924581bd_46c3_6e67_74e2_42146e8e06ab
  style 5f944cb6_0f5e_53db_b4a7_a5bae1aea8ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/_utils.py lines 165–170

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

Subdomains

Frequently Asked Questions

What does on_retry() do?
on_retry() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/_utils.py.
Where is on_retry() defined?
on_retry() is defined in libs/partners/anthropic/tests/unit_tests/_utils.py at line 165.
What does on_retry() call?
on_retry() calls 1 function(s): on_retry_common.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free