serdes-ai-retries

Crates.ioserdes-ai-retries
lib.rsserdes-ai-retries
version0.1.2
created_at2026-01-15 23:07:48.155985+00
updated_at2026-01-23 16:43:54.005834+00
descriptionRetry strategies and error handling for serdes-ai
homepage
repositoryhttps://github.com/janfeddersen-wq/serdesAI
max_upload_size
id2047319
size92,482
(janfeddersen-wq)

documentation

README

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.

Commit count: 42

cargo fmt