pub enum SlashCommand {
Help,
Tools,
ToolDescribe {
name: String,
},
TapeSearch {
query: String,
},
TapeInfo,
Anchors,
Handoff {
name: Option<String>,
},
Usage,
Quit,
Shell {
command: String,
},
}Expand description
Recognized slash commands.
Variants§
Help
/help — display available commands.
Tools
/tools — list all registered tools.
ToolDescribe
/tool.describe <name> — describe a specific tool’s schema.
TapeSearch
/tape.search <query> — full-text search the tape.
TapeInfo
/tape.info — show tape entry count and last handoff info.
Anchors
/anchors — list all anchors in the current session tape.
Handoff
/handoff [name] — create a handoff anchor and reset context window.
Usage
/usage — show cumulative token usage for the current session.
Quit
/quit or /exit — signal the channel to close.
Shell
Fallback: treat unrecognized /cmd as a shell command.
Trait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§fn clone(&self) -> SlashCommand
fn clone(&self) -> SlashCommand
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 SlashCommand
impl Debug for SlashCommand
Source§impl PartialEq for SlashCommand
impl PartialEq for SlashCommand
impl Eq for SlashCommand
impl StructuralPartialEq for SlashCommand
Auto Trait Implementations§
impl Freeze for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommand
impl UnwindSafe for SlashCommand
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.