pub enum RuntimeError {
Show 17 variants
ProviderNotFound(String),
SessionNotFound(Uuid),
RunNotFound(RunId),
InvalidRunState {
expected: String,
actual: String,
},
IterationLimitExceeded(usize),
TokenBudgetExceeded {
used: usize,
limit: usize,
},
ContextOverflow {
context: u32,
estimated: usize,
},
SessionBusy(Uuid),
ToolTimeout {
tool: String,
},
Provider(ProviderError),
Context(ContextError),
Storage(StorageError),
Tool(ToolError),
RecoveryFailed(String),
DoomLoopDetected {
description: String,
},
InputRejected {
input_id: InputId,
reason: String,
},
InputAdmissionFailed(String),
}Expand description
Errors that can occur during runtime execution.
Covers provider resolution, session management, run lifecycle, policy enforcement, tool execution, storage, snapshot recovery, doom-loop detection, and input admission failures.
Variants§
ProviderNotFound(String)
The requested provider was not found in the registry.
SessionNotFound(Uuid)
The requested session does not exist.
RunNotFound(RunId)
The requested run was not found.
InvalidRunState
Operation cannot proceed because the run is in an unexpected state.
IterationLimitExceeded(usize)
The run exceeded the maximum allowed model call iterations.
TokenBudgetExceeded
Accumulated token usage exceeded the configured budget.
ContextOverflow
Estimated context size exceeds the model’s maximum context window.
Fields
SessionBusy(Uuid)
Session is locked by another concurrent run.
ToolTimeout
A tool call exceeded its configured execution timeout.
Provider(ProviderError)
An error propagated from the provider layer.
Context(ContextError)
An error propagated from the context layer.
Storage(StorageError)
An error propagated from the storage layer.
Tool(ToolError)
An error propagated from the tool layer.
RecoveryFailed(String)
Snapshot persistence or recovery failed.
DoomLoopDetected
Doom loop detected — agent is stuck in a repetitive tool call pattern.
InputRejected
Input was rejected by the admission pipeline.
InputAdmissionFailed(String)
Internal error during input admission processing.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()