Skip to main content

CommandModelContext

Trait CommandModelContext 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§