pub enum KagiCommand {
FastGpt {
query: String,
cache: bool,
},
Summarize {
subject: String,
summary_type: Option<SummaryType>,
engine: Option<Engine>,
target_language: Option<Language>,
cache: bool,
},
Completion {
shell: Shell,
},
}Variants§
FastGpt
Kagi’s GPT-powered Search
Summarize
Kagi’s Universal Summarizer
Fields
§
summary_type: Option<SummaryType>Summaries are paragraphs, takeaways are bullet points
[possible values: summary, takeaway]
§
engine: Option<Engine>Decides “flavor” of the summarization text. Possible values:
cecil (default): Friendly, descriptive, fast summary
agnes: Formal, technical, analytical summary
daphne: Informal, creative, friendly summary
muriel: Best-in-class, enterprise-grade summary
Completion
Generate CLI completion
Trait Implementations§
Source§impl Clone for KagiCommand
impl Clone for KagiCommand
Source§fn clone(&self) -> KagiCommand
fn clone(&self) -> KagiCommand
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 KagiCommand
impl Debug for KagiCommand
Source§impl FromArgMatches for KagiCommand
impl FromArgMatches for KagiCommand
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for KagiCommand
impl Subcommand for KagiCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for KagiCommand
impl RefUnwindSafe for KagiCommand
impl Send for KagiCommand
impl Sync for KagiCommand
impl Unpin for KagiCommand
impl UnwindSafe for KagiCommand
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