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 provider_identity(&self) -> Option<CommandProviderId>;
    fn fallback_chain(&self) -> Vec<CommandProviderId>;
}
Expand description

Model selection, provider identity, and fallback chain.

Slice 4 dropped the reasoning_effort() facet: reasoning preference is owned by codewhale_tui::reasoning_preference::ReasoningEffort and no command group consumed the duplicated boundary enum.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§