pub struct SessionExecutionOutcome {
pub success: bool,
pub cancelled: bool,
pub error: Option<String>,
}Expand description
Outcome of an agent execution, handed to an optional
SessionCompletionHook.
Deliberately decoupled from the runtime’s internal error type so the hook API stays stable across crates and callers don’t need to match on engine error variants.
Fields§
§success: boolThe run finished without error.
cancelled: boolThe run ended because it was cancelled (a non-success subset).
error: Option<String>Stringified error, present when !success.
Auto Trait Implementations§
impl Freeze for SessionExecutionOutcome
impl RefUnwindSafe for SessionExecutionOutcome
impl Send for SessionExecutionOutcome
impl Sync for SessionExecutionOutcome
impl Unpin for SessionExecutionOutcome
impl UnsafeUnpin for SessionExecutionOutcome
impl UnwindSafe for SessionExecutionOutcome
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