NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::llm::RateLimitedProvider::Config Struct Reference

Configuration for rate-limit handling. More...

#include <rate_limited_provider.h>

Public Attributes

int default_wait_seconds = 30
 Sleep duration when Retry-After is absent or invalid.
 
int max_retries = 3
 Number of additional attempts after a RateLimitError.
 
int max_total_wait_seconds = 0
 Wall-clock cap across all retries combined.
 
int max_wait_seconds = 120
 Upper cap per sleep, prevents runaway stalls.
 

Detailed Description

Configuration for rate-limit handling.

Definition at line 47 of file rate_limited_provider.h.

Member Data Documentation

◆ max_total_wait_seconds

int neograph::llm::RateLimitedProvider::Config::max_total_wait_seconds = 0

Wall-clock cap across all retries combined.

0 = unbounded (back-compat with the original behaviour). Set this when the caller has its own SLA and doesn't want max_retries * max_wait_seconds worth of backoff to stack up — e.g. a 5×60s = 5-minute pure-sleep window. When the next sleep would push elapsed time past the cap, the decorator surfaces the latest RateLimitError immediately instead of waiting again.

Definition at line 59 of file rate_limited_provider.h.


The documentation for this struct was generated from the following file: