pub enum TuiEvent {
Show 17 variants
AgentStarted,
AgentCompleted {
message: String,
},
AgentError {
message: String,
},
ToolStarted {
name: String,
},
ToolCompleted {
name: String,
success: bool,
duration_ms: u64,
},
TokenUsage {
prompt_tokens: u64,
completion_tokens: u64,
},
StatusUpdate {
message: String,
},
GardenHealthUpdate {
health: f64,
},
Log {
level: LogLevel,
message: String,
},
AssistantDelta {
text: String,
},
ThinkingDelta {
text: String,
},
ThinkingEnd,
ToolProgress {
name: String,
status: String,
},
SpinnerStart {
message: String,
},
SpinnerUpdate {
message: String,
},
SpinnerStop,
InputQueued {
message: String,
position: usize,
},
}Expand description
Events sent from the agent to update the TUI dashboard
Variants§
AgentStarted
Agent started processing
AgentCompleted
Agent completed successfully
AgentError
Agent encountered an error
ToolStarted
Tool execution started
ToolCompleted
Tool execution completed
TokenUsage
Token usage update
StatusUpdate
Status message update
GardenHealthUpdate
Garden health update (from code analysis or other metrics)
Log
Log message
AssistantDelta
Streaming content chunk from the assistant
ThinkingDelta
Streaming reasoning/thinking chunk
ThinkingEnd
Reasoning phase finished
ToolProgress
Tool execution progress update
SpinnerStart
Loading spinner started
SpinnerUpdate
Loading spinner message changed
SpinnerStop
Loading spinner finished
InputQueued
User queued a message during generation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiEvent
impl RefUnwindSafe for TuiEvent
impl Send for TuiEvent
impl Sync for TuiEvent
impl Unpin for TuiEvent
impl UnsafeUnpin for TuiEvent
impl UnwindSafe for TuiEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request