pub enum RunOutcome {
Terminal,
Paused {
ask: PendingAsk,
stream_state: Option<Box<StreamState>>,
},
}Expand description
What a live run’s event stream settled into.
Variants§
Terminal
Reached a terminal AgentEvent (or the stream closed) — nothing more
to render for this run.
Paused
Paused on AgentEvent::NeedClarification — a human decision is now
required before the run can continue.
Fields
§
ask: PendingAsk§
stream_state: Option<Box<StreamState>>The streaming renderer’s accumulated state (status MessageRef +
text buffers + throttle bookkeeping), handed back so the caller’s
pause/answer/resume loop can pass it into the NEXT
stream_execution call — the resumed run keeps EDITING the same
status message instead of opening a fresh “⏳ Working…” bubble per
resume. None in legacy (non-edit_message) mode, which has no
cross-run state. Boxed to keep the enum’s variants close in size
(clippy large_enum_variant).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunOutcome
impl RefUnwindSafe for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
impl UnwindSafe for RunOutcome
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