pub enum ChatCommand {
Models(Option<String>),
Model(Option<String>),
New,
Approve(String),
Unapprove(String),
Approvals,
ApproveRequest(String),
ApproveConfirm(String),
ApprovePending,
Help,
}Expand description
Parsed in-chat command.
Variants§
Models(Option<String>)
/models or /models <provider> — list available models.
Model(Option<String>)
/model — show current model; /model <id> — switch model.
New
/new — clear conversation history for this sender.
Approve(String)
/approve <tool> — auto-approve a tool for this session.
Unapprove(String)
/unapprove <tool> — remove auto-approval.
Approvals
/approvals — list current approvals.
ApproveRequest(String)
/approve-request <tool> — request approval for a tool.
ApproveConfirm(String)
/approve-confirm <id> — confirm a pending approval request.
ApprovePending
/approve-pending — list pending approval requests.
Help
/help — show available commands.
Trait Implementations§
Source§impl Clone for ChatCommand
impl Clone for ChatCommand
Source§fn clone(&self) -> ChatCommand
fn clone(&self) -> ChatCommand
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 moreSource§impl Debug for ChatCommand
impl Debug for ChatCommand
Source§impl PartialEq for ChatCommand
impl PartialEq for ChatCommand
impl Eq for ChatCommand
impl StructuralPartialEq for ChatCommand
Auto Trait Implementations§
impl Freeze for ChatCommand
impl RefUnwindSafe for ChatCommand
impl Send for ChatCommand
impl Sync for ChatCommand
impl Unpin for ChatCommand
impl UnsafeUnpin for ChatCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.