#retry #llm #resilience #retry-backoff #backoff

serdes-ai-retries

Retry strategies and error handling for serdes-ai

10 releases

0.2.6 Feb 20, 2026
0.2.5 Feb 17, 2026
0.1.5 Jan 27, 2026

#1737 in Asynchronous

Download history 110/week @ 2026-01-20 188/week @ 2026-01-27 26/week @ 2026-02-03 31/week @ 2026-02-10 47/week @ 2026-02-17 58/week @ 2026-02-24

175 downloads per month
Used in 4 crates (via serdes-ai)

MIT license

48KB
1K SLoC

serdes-ai-retries

Crates.io Documentation License: MIT

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