pub enum AgentRuntimeError {
Memory(String),
Graph(String),
Orchestration(String),
AgentLoop(String),
NotConfigured(&'static str),
CircuitOpen {
service: String,
},
BackpressureShed {
depth: usize,
capacity: usize,
},
DeduplicationConflict {
key: String,
},
Provider(String),
Persistence(String),
}Expand description
Unified error type returned by all public agent-runtime APIs.
Variants§
Memory(String)
A memory subsystem operation failed (episodic, semantic, or working memory).
Graph(String)
A graph subsystem operation failed (entity/relationship management or traversal).
Orchestration(String)
The orchestration pipeline or one of its stages failed.
AgentLoop(String)
The ReAct agent loop encountered an unrecoverable error.
NotConfigured(&'static str)
The runtime was used before a required subsystem was configured.
CircuitOpen
Circuit breaker is open — fast-fail without attempting the operation.
BackpressureShed
Backpressure threshold exceeded — caller must shed or wait.
Fields
DeduplicationConflict
A deduplication key collision was detected.
Provider(String)
An LLM provider call failed.
Persistence(String)
A persistence operation failed.
Trait Implementations§
Source§impl Debug for AgentRuntimeError
impl Debug for AgentRuntimeError
Source§impl Display for AgentRuntimeError
impl Display for AgentRuntimeError
Source§impl Error for AgentRuntimeError
impl Error for AgentRuntimeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AgentError> for AgentRuntimeError
impl From<AgentError> for AgentRuntimeError
Source§fn from(e: AgentError) -> Self
fn from(e: AgentError) -> Self
Converts to this type from the input type.
Source§impl From<MemGraphError> for AgentRuntimeError
impl From<MemGraphError> for AgentRuntimeError
Source§fn from(e: MemGraphError) -> Self
fn from(e: MemGraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentRuntimeError
impl RefUnwindSafe for AgentRuntimeError
impl Send for AgentRuntimeError
impl Sync for AgentRuntimeError
impl Unpin for AgentRuntimeError
impl UnsafeUnpin for AgentRuntimeError
impl UnwindSafe for AgentRuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more