pub trait CommandModelContext {
// Required methods
fn current_model(&self) -> String;
fn auto_model(&self) -> bool;
fn set_model_selection(
&mut self,
model: String,
provider: Option<CommandProviderId>,
);
fn reasoning_effort(&self) -> CommandReasoningEffort;
fn provider_identity(&self) -> Option<CommandProviderId>;
fn fallback_chain(&self) -> Vec<CommandProviderId>;
}Expand description
Model selection, provider identity, effort, and fallback chain.
Required Methods§
fn current_model(&self) -> String
fn auto_model(&self) -> bool
fn set_model_selection( &mut self, model: String, provider: Option<CommandProviderId>, )
fn reasoning_effort(&self) -> CommandReasoningEffort
fn provider_identity(&self) -> Option<CommandProviderId>
fn fallback_chain(&self) -> Vec<CommandProviderId>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".