pub enum CommandAction {
Compact,
ClearHistory,
SwitchModel(String),
}Expand description
Post-command actions that the session should perform.
Variants§
Compact
Trigger context compaction.
ClearHistory
Clear conversation history.
SwitchModel(String)
Switch to a different model.
Trait Implementations§
Source§impl Clone for CommandAction
impl Clone for CommandAction
Source§fn clone(&self) -> CommandAction
fn clone(&self) -> CommandAction
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandAction
impl RefUnwindSafe for CommandAction
impl Send for CommandAction
impl Sync for CommandAction
impl Unpin for CommandAction
impl UnsafeUnpin for CommandAction
impl UnwindSafe for CommandAction
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