pub enum UiEvent {
AgentStart,
AgentEnd,
Retry {
attempt: u32,
max_retries: u32,
delay_ms: u64,
error: String,
},
AssistantStart {
blocks: Vec<AssistantBlock>,
},
AssistantUpdate {
blocks: Vec<AssistantBlock>,
tool_calls: Vec<UiToolCall>,
},
AssistantEnd {
blocks: Vec<AssistantBlock>,
},
ToolStart {
id: String,
name: String,
args: Value,
},
ToolUpdate {
id: String,
name: String,
args: Value,
result: Value,
},
ToolEnd {
id: String,
name: String,
result: Value,
is_error: bool,
},
}Expand description
A normalized transcript event. Both the local AgentEvent stream and the
remote RemoteEvent stream are projected into this enum before rendering.
Variants§
AgentStart
A run started (no transcript effect; kept for symmetry).
AgentEnd
A run ended: finalize any still-streaming assistant panel.
Retry
A retry was scheduled — renders as a dim notice line.
AssistantStart
An assistant message began (carries any blocks already present).
Fields
§
blocks: Vec<AssistantBlock>AssistantUpdate
A streaming assistant snapshot: content blocks plus the finalized tool calls visible in the snapshot.
AssistantEnd
The assistant message finished.
Fields
§
blocks: Vec<AssistantBlock>ToolStart
Tool lifecycle (args/result carry the stable wire Value shape).
ToolUpdate
ToolEnd
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiEvent
impl RefUnwindSafe for UiEvent
impl Send for UiEvent
impl Sync for UiEvent
impl Unpin for UiEvent
impl UnsafeUnpin for UiEvent
impl UnwindSafe for UiEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more