pub struct Cli {Show 17 fields
pub prompt: Vec<String>,
pub provider: Option<String>,
pub model: Option<String>,
pub system_prompt: Option<String>,
pub max_tokens: Option<String>,
pub temperature: Option<String>,
pub attachments: Vec<String>,
pub images: Vec<String>,
pub audio_files: Vec<String>,
pub tools: Option<String>,
pub vectordb: Option<String>,
pub debug: bool,
pub continue_session: bool,
pub chat_id: Option<String>,
pub use_search: Option<String>,
pub stream: bool,
pub command: Option<Commands>,
}Fields§
§prompt: Vec<String>Direct prompt to send to the default model
provider: Option<String>Provider to use for the prompt
model: Option<String>Model to use for the prompt
system_prompt: Option<String>System prompt to use (when used with direct prompt)
max_tokens: Option<String>Max tokens override (supports ‘k’ suffix, e.g., ‘2k’ for 2000)
temperature: Option<String>Temperature override (0.0 to 2.0)
attachments: Vec<String>Attach file(s) to the prompt (supports text files, PDFs with ‘pdf’ feature)
images: Vec<String>Attach image(s) to the prompt (supports jpg, png, gif, webp, or URLs)
audio_files: Vec<String>Attach audio file(s) for transcription (supports mp3, wav, flac, etc.)
tools: Option<String>Include tools from MCP server(s) (comma-separated server names)
vectordb: Option<String>Vector database name for RAG (Retrieval-Augmented Generation)
debug: boolEnable debug/verbose logging
continue_session: boolContinue the current session (use existing session ID)
chat_id: Option<String>Chat ID to use or continue (alternative to –continue)
use_search: Option<String>Use search results as context (format: provider or provider:query)
stream: boolEnable streaming output for prompt responses
command: Option<Commands>Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more