pub struct AgentLoopError { /* private fields */ }Expand description
Runtime method error returned while an agent loop was running.
Runtime failed/cancelled events are represented as AgentLoopStatus.
This error is reserved for facade-method failures such as step admission,
unknown calls, executor infrastructure failure, or an interrupted stream.
Cooperative tool cancellation is represented as
AgentLoopStatus::Cancelled. The already-observed runtime events are
preserved for callers.
Implementations§
Source§impl AgentLoopError
impl AgentLoopError
Sourcepub fn events(&self) -> &[RuntimeJournalEvent]
pub fn events(&self) -> &[RuntimeJournalEvent]
Retained evidence before the method error, excluding live deltas and rate samples.
Sourcepub fn runtime_error(&self) -> &RuntimeError
pub fn runtime_error(&self) -> &RuntimeError
Underlying runtime method error.
Sourcepub fn into_parts(self) -> (Vec<RuntimeJournalEvent>, RuntimeError)
pub fn into_parts(self) -> (Vec<RuntimeJournalEvent>, RuntimeError)
Consumes the error into its preserved events and runtime error.
Trait Implementations§
Source§impl Debug for AgentLoopError
impl Debug for AgentLoopError
Source§impl Display for AgentLoopError
impl Display for AgentLoopError
Source§impl Error for AgentLoopError
impl Error for AgentLoopError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AgentLoopError
impl !UnwindSafe for AgentLoopError
impl Forget for AgentLoopError
impl Freeze for AgentLoopErrorwhere
*const u8 is !null: Freeze,
PhantomData<RuntimeJournalEvent>: Freeze,
*const RuntimeError is !null: Freeze,
PhantomData<RuntimeError>: Freeze,
impl Move for AgentLoopError
impl Send for AgentLoopError
impl Sync for AgentLoopError
impl Unpin for AgentLoopError
impl UnsafeUnpin for AgentLoopErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RuntimeJournalEvent>: UnsafeUnpin,
*const RuntimeError is !null: UnsafeUnpin,
PhantomData<RuntimeError>: UnsafeUnpin,
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