pub enum ChatCommand {
Show 29 variants
Clear,
Model(String),
System(Option<String>),
MaxTokens(u32),
Temperature(f32),
ClearTemperature,
TopP(f32),
ClearTopP,
TopK(u32),
ClearTopK,
AddStopSequence(String),
ClearStopSequences,
ListStopSequences,
Thinking(Option<u32>),
ThinkingAdaptive,
Effort(Effort),
ClearEffort,
Spend(f64),
ClearSpend,
Caching(bool),
TranscriptPath(String),
ClearTranscriptPath,
SaveTranscript(String),
LoadTranscript(String),
Help,
Quit,
Stats,
ShowConfig,
Invalid(String),
}Expand description
A parsed chat command.
These commands control the chat session and are not sent to the API.
Variants§
Clear
Clear the conversation history.
Model(String)
Change the model.
System(Option<String>)
Set or clear the system prompt.
None clears the current system prompt.
MaxTokens(u32)
Set the maximum tokens per response.
Temperature(f32)
Set the sampling temperature.
ClearTemperature
Clear the sampling temperature (use model default).
TopP(f32)
Set the top-p value.
ClearTopP
Clear the top-p value.
TopK(u32)
Set the top-k value.
ClearTopK
Clear the top-k value.
AddStopSequence(String)
Add a stop sequence.
ClearStopSequences
Clear all stop sequences.
ListStopSequences
List stop sequences.
Thinking(Option<u32>)
Configure extended thinking.
None disables thinking, Some(budget) enables with the given token budget.
ThinkingAdaptive
Enable adaptive thinking (with default or current effort level).
Effort(Effort)
Set the effort level for adaptive thinking.
ClearEffort
Clear the effort level.
Spend(f64)
Set a per-session dollar spend limit.
ClearSpend
Clear the spend limit.
Caching(bool)
Enable or disable prompt caching.
TranscriptPath(String)
Set the auto-save transcript path.
ClearTranscriptPath
Clear the auto-save transcript path.
SaveTranscript(String)
Save the transcript to a specific file immediately.
LoadTranscript(String)
Load conversation history from a file.
Help
Display help information.
Quit
Exit the chat application.
Stats
Display session statistics (message count, current model, etc.).
ShowConfig
Show the current configuration.
Invalid(String)
Report a parsing error back to the caller.
Trait Implementations§
Source§impl Clone for ChatCommand
impl Clone for ChatCommand
Source§fn clone(&self) -> ChatCommand
fn clone(&self) -> ChatCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChatCommand
impl Debug for ChatCommand
Source§impl PartialEq for ChatCommand
impl PartialEq for ChatCommand
Source§fn eq(&self, other: &ChatCommand) -> bool
fn eq(&self, other: &ChatCommand) -> bool
self and other values to be equal, and is used by ==.