agent-base 0.3.1

A lightweight Agent Runtime Kernel for building AI agents in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// The outcome of an Agent turn or run.
///
/// Represents the state after a turn completes:
/// - `Completed` — task finished successfully; run ends.
/// - `Continuing` — turn ended but the run is still in progress (guard nudge).
/// - `Failed` — unrecoverable error; run ends.
/// - `MaxTurnsExceeded` — hit the turn cap; run ends.
/// - `Cancelled` — user or system cancelled; run ends.
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum RunOutcome {
    Completed,
    Continuing,
    Failed { error: String },
    MaxTurnsExceeded { turns: u32 },
    Cancelled,
}