10 releases
| 0.2.6 | Feb 20, 2026 |
|---|---|
| 0.2.5 | Feb 17, 2026 |
| 0.1.5 | Jan 27, 2026 |
#1737 in Asynchronous
175 downloads per month
Used in 4 crates
(via serdes-ai)
48KB
1K
SLoC
serdes-ai-retries
Retry strategies and error handling for serdes-ai
This crate provides retry capabilities for SerdesAI:
- Configurable retry strategies
- Exponential backoff with jitter
- Rate limit handling
- Transient error detection
Installation
[dependencies]
serdes-ai-retries = "0.1"
Usage
use serdes_ai_retries::{RetryStrategy, ExponentialBackoff};
let strategy = ExponentialBackoff::new()
.max_retries(3)
.initial_delay(Duration::from_millis(100))
.max_delay(Duration::from_secs(10));
let agent = Agent::new(model)
.retry_strategy(strategy)
.build();
Part of SerdesAI
This crate is part of the SerdesAI workspace.
For most use cases, you should use the main serdes-ai crate which re-exports these types.
License
MIT License - see LICENSE for details.
Dependencies
~11–29MB
~291K SLoC