pub enum ChatCommand {
CloseCanvas(String),
OpenCanvas(Arc<Canvas>),
Send {
text: String,
context: Vec<ContextRef>,
images: Vec<ImageAttachment>,
},
Abort,
SetModel {
model: String,
effort: Option<String>,
},
SetAgent(String),
SetMode(ChatMode),
SetYolo(bool),
RunCommand {
name: String,
args: String,
},
Rename(String),
Close,
}Expand description
What one open chat is asked to do.
Variants§
CloseCanvas(String)
OpenCanvas(Arc<Canvas>)
Send
Abort
SetModel
SetAgent(String)
SetMode(ChatMode)
SetYolo(bool)
RunCommand
Rename(String)
A user-set session name, 1 to 100 characters.
Close
Detaches the session. It stays saved and keeps its name.
Trait Implementations§
Source§impl Clone for ChatCommand
impl Clone for ChatCommand
Auto Trait Implementations§
impl Forget for ChatCommand
impl Freeze for ChatCommandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Canvas> is !null: Freeze,
PhantomData<ArcInner<Canvas>>: Freeze,
PhantomData<ContextRef>: Freeze,
PhantomData<ImageAttachment>: Freeze,
impl Move for ChatCommand
impl RefUnwindSafe for ChatCommand
impl Send for ChatCommand
impl Sync for ChatCommand
impl Unpin for ChatCommand
impl UnsafeUnpin for ChatCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Canvas> is !null: UnsafeUnpin,
PhantomData<ArcInner<Canvas>>: UnsafeUnpin,
PhantomData<ContextRef>: UnsafeUnpin,
PhantomData<ImageAttachment>: UnsafeUnpin,
impl UnwindSafe for ChatCommand
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