pub enum AgentSessionError {
Busy {
request_id: CheckpointId,
revision: u64,
},
RequestMismatch,
InvalidAdmission,
ConfigurationMismatch,
UsageMismatch,
Checkpoint(CheckpointError),
Conversation(Box<AgentConversationError>),
}Expand description
Admission and execution errors from a durable session.
Variants§
Busy
Another request owns the conversation, possibly after a crash.
Fields
§
request_id: CheckpointIdRequest requiring completion or explicit recovery.
RequestMismatch
The request identity is already bound to another input or conversation.
InvalidAdmission
Persisted admission data cannot be interpreted safely.
ConfigurationMismatch
Session context or summary configuration differs from the admitted request.
UsageMismatch
Restored budget is inconsistent with the latest stable session snapshot.
Checkpoint(CheckpointError)
The underlying checkpoint store rejected the operation.
Conversation(Box<AgentConversationError>)
The admitted execution failed. Admission remains held for recovery.
Trait Implementations§
Source§impl Debug for AgentSessionError
impl Debug for AgentSessionError
Source§impl Display for AgentSessionError
impl Display for AgentSessionError
Source§impl Error for AgentSessionError
impl Error for AgentSessionError
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<AgentConversationError> for AgentSessionError
impl From<AgentConversationError> for AgentSessionError
Source§fn from(error: AgentConversationError) -> Self
fn from(error: AgentConversationError) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointError> for AgentSessionError
impl From<CheckpointError> for AgentSessionError
Source§fn from(source: CheckpointError) -> Self
fn from(source: CheckpointError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentSessionError
impl !UnwindSafe for AgentSessionError
impl Freeze for AgentSessionError
impl Send for AgentSessionError
impl Sync for AgentSessionError
impl Unpin for AgentSessionError
impl UnsafeUnpin for AgentSessionError
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