Struct ai::SessionCommand
source · pub struct SessionCommand {
pub completion: CompletionOptions,
pub model: Option<Model>,
pub model_focus: Option<ModelFocus>,
pub prompt: Option<String>,
pub prompt_path: Option<String>,
pub provider: Option<Provider>,
}Fields§
§completion: CompletionOptions§model: Option<Model>Model size
model_focus: Option<ModelFocus>Model focus
prompt: Option<String>Prompt
prompt_path: Option<String>Prompt path
provider: Option<Provider>Provider
Implementations§
source§impl SessionCommand
impl SessionCommand
pub fn run<'life0, 'life1, 'life_self, 'async_recursion>( &'life_self self, client: &'life0 Client, config: &'life1 Config ) -> Pin<Box<dyn Future<Output = SessionResult> + Send + 'async_recursion>>where 'life0: 'async_recursion, 'life1: 'async_recursion, 'life_self: 'async_recursion,
pub fn parse_no_context_option(&self) -> bool
pub fn parse_prompt_option(&self) -> String
Trait Implementations§
source§impl Args for SessionCommand
impl Args for SessionCommand
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for SessionCommand
impl Clone for SessionCommand
source§fn clone(&self) -> SessionCommand
fn clone(&self) -> SessionCommand
Returns a copy 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 SessionCommand
impl Debug for SessionCommand
source§impl Default for SessionCommand
impl Default for SessionCommand
source§fn default() -> SessionCommand
fn default() -> SessionCommand
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SessionCommand
impl<'de> Deserialize<'de> for SessionCommand
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromArgMatches for SessionCommand
impl FromArgMatches for SessionCommand
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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.