pub enum TuiUserAction {
SendMessage(String),
ConfirmResponse {
approved: bool,
auto_accept: bool,
},
QuestionAnswer(String),
Quit,
Interrupt,
}Expand description
Actions sent FROM the TUI TO the background agent task.
These represent user interactions that the agent needs to know about.
Variants§
SendMessage(String)
The user submitted a message (text entered in the input bar).
ConfirmResponse
The user responded to a tool confirmation prompt.
QuestionAnswer(String)
The user answered a question from the question signal tool.
Quit
The user requested to quit.
Interrupt
The user interrupted the current generation (Ctrl+C).
Trait Implementations§
Source§impl Clone for TuiUserAction
impl Clone for TuiUserAction
Source§fn clone(&self) -> TuiUserAction
fn clone(&self) -> TuiUserAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TuiUserAction
impl RefUnwindSafe for TuiUserAction
impl Send for TuiUserAction
impl Sync for TuiUserAction
impl Unpin for TuiUserAction
impl UnsafeUnpin for TuiUserAction
impl UnwindSafe for TuiUserAction
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