pub enum UiEvent {
Show 13 variants
AgentTurnStarted,
AgentThinking,
AgentTextDelta(String),
AgentMessageComplete(String),
ToolCallStarted {
id: String,
name: String,
args: Value,
},
ToolCallProgress {
id: String,
chunk: ProgressChunk,
},
ToolCallCompleted {
id: String,
result: UiToolResult,
},
AgentTurnComplete,
PermissionRequested {
tool: String,
args: Value,
resolver: Sender<Decision>,
},
InlineBashOutput {
command: String,
output: String,
},
SessionReplaced(Vec<Message>),
ModelSwitched(ModelId),
Error(String),
}Variants§
AgentTurnStarted
AgentThinking
AgentTextDelta(String)
AgentMessageComplete(String)
ToolCallStarted
ToolCallProgress
ToolCallCompleted
AgentTurnComplete
PermissionRequested
InlineBashOutput
Output of a !!cmd inline-bash run, for transcript display.
SessionReplaced(Vec<Message>)
The session was replaced (/new cleared it, or /resume loaded a
stored one). Carries the new transcript so the TUI can rebuild
state.messages. Empty Vec = a fresh session.
ModelSwitched(ModelId)
The active model changed successfully.
Error(String)
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