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>,
},
SavedAssistant {
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>SavedAssistant
A completed message loaded from the saved transcript.
Fields
§
blocks: Vec<AssistantBlock>ToolStart
Tool lifecycle (args/result carry the stable wire Value shape).
ToolUpdate
ToolEnd
Trait Implementations§
Auto Trait Implementations§
impl Forget for UiEvent
impl Freeze for UiEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AssistantBlock>: Freeze,
PhantomData<UiToolCall>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for UiEvent
impl RefUnwindSafe for UiEvent
impl Send for UiEvent
impl Sync for UiEvent
impl Unpin for UiEvent
impl UnsafeUnpin for UiEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AssistantBlock>: UnsafeUnpin,
PhantomData<UiToolCall>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
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