pub struct ChatArgs {
pub model: Option<String>,
pub system: Option<String>,
pub max_tokens: Option<u32>,
pub temperature: Option<String>,
pub top_p: Option<String>,
pub top_k: Option<u32>,
pub thinking: Option<u32>,
pub effort: Option<String>,
pub no_color: bool,
}Expand description
Command-line arguments for the claudius-chat tool.
Fields§
§model: Option<String>Model to use for chat.
system: Option<String>System prompt to set context for the conversation.
max_tokens: Option<u32>Maximum tokens per response.
temperature: Option<String>Sampling temperature (0.0 to 1.0).
top_p: Option<String>Top-p (nucleus) sampling (0.0 to 1.0).
top_k: Option<u32>Top-k sampling.
thinking: Option<u32>Thinking budget (enables extended thinking with given token budget).
effort: Option<String>Effort level for adaptive thinking (low, medium, high).
no_color: boolDisable ANSI colors and styles.
Trait Implementations§
Source§impl CommandLine for ChatArgs
impl CommandLine for ChatArgs
Source§fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
Add options to the getopts parser.
Source§fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
Assign values to self using the provided getopts matches.
Source§fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
Return the canonical command line for this CommandLine.
Source§fn from_command_line(usage: &str) -> (Self, Vec<String>)
fn from_command_line(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will panic if a non-canonical command line is
provided.
Source§fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will allow a non-canonical command line to
execute.
Source§fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
Parse from the provided arguments. This function will panic if a non-canonical command
line is provided.
Source§impl TryFrom<ChatArgs> for ChatConfig
impl TryFrom<ChatArgs> for ChatConfig
Source§impl TryFrom<ChatArgs> for MessageCreateTemplate
impl TryFrom<ChatArgs> for MessageCreateTemplate
impl Eq for ChatArgs
impl StructuralPartialEq for ChatArgs
Auto Trait Implementations§
impl Freeze for ChatArgs
impl RefUnwindSafe for ChatArgs
impl Send for ChatArgs
impl Sync for ChatArgs
impl Unpin for ChatArgs
impl UnsafeUnpin for ChatArgs
impl UnwindSafe for ChatArgs
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<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.