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