LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebRetryPolicy
Type●Since v0.3

RetryPolicy

Copy
RetryPolicy

Used in Docs

  • Thinking in LangGraph
  • Use the functional API
  • Use the graph API

Properties

property
backoffFactor: number

Multiplier by which the interval increases after each retry.

property
initialInterval: number

Amount of time that must elapse before the first retry occurs in milliseconds.

property
jitter: boolean

Whether to add random jitter to the interval between retries.

property
logWarning: boolean

Whether to log a warning when a retry is attempted. Defaults to true.

property
maxAttempts: number

Maximum amount of time that may elapse between retries.

property
maxInterval: number

Maximum amount of time that may elapse between retries in milliseconds.

property
retryOn: (e: any) => boolean

A function that returns True for exceptions that should trigger a retry.

View source on GitHub