agentsdk 0.11.0

A lean, OpenAI-compatible AI SDK for Rust.
Documentation
1
2
3
4
5
6
7
8
9
use std::time::Duration;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum RetryAction {
    /// Retry the operation after the given delay.
    RetryAfter(Duration),
    /// Do not retry, bubble up the error.
    GiveUp,
}