Home / Function/ with_retry() — langchain Function Reference

with_retry() — langchain Function Reference

Architecture documentation for the with_retry() function in base.py from the langchain codebase.

Function python LangChainCore Runnables calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  bd48bfb2_deef_cf9e_749e_3028362225a1["with_retry()"]
  1ad7446c_5ef5_eeb3_2fc5_22a110a58b17["RunnableBinding"]
  bd48bfb2_deef_cf9e_749e_3028362225a1 -->|defined in| 1ad7446c_5ef5_eeb3_2fc5_22a110a58b17
  3a6d006a_a650_9272_b916_709c48148361["with_retry()"]
  3a6d006a_a650_9272_b916_709c48148361 -->|calls| bd48bfb2_deef_cf9e_749e_3028362225a1
  3a6d006a_a650_9272_b916_709c48148361["with_retry()"]
  bd48bfb2_deef_cf9e_749e_3028362225a1 -->|calls| 3a6d006a_a650_9272_b916_709c48148361
  style bd48bfb2_deef_cf9e_749e_3028362225a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 6094–6100

    def with_retry(self, **kwargs: Any) -> Runnable[Input, Output]:
        return self.__class__(
            bound=self.bound.with_retry(**kwargs),
            kwargs=self.kwargs,
            config=self.config,
            config_factories=self.config_factories,
        )

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does with_retry() do?
with_retry() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is with_retry() defined?
with_retry() is defined in libs/core/langchain_core/runnables/base.py at line 6094.
What does with_retry() call?
with_retry() calls 1 function(s): with_retry.
What calls with_retry()?
with_retry() is called by 1 function(s): with_retry.

Analyze Your Own Codebase

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

Try Supermodel Free