pub struct SetModelOptions {
pub reasoning_effort: Option<String>,
pub reasoning_summary: Option<ReasoningSummary>,
pub context_tier: Option<ContextTier>,
pub model_capabilities: Option<ModelCapabilitiesOverride>,
pub auto_tier: Option<AutoTierPreference>,
}Expand description
Options for Session::set_model.
Pass None to set_model to switch model without any overrides.
Fields§
§reasoning_effort: Option<String>Reasoning effort for the new model (e.g. "low", "medium",
"high", "xhigh", "max").
reasoning_summary: Option<ReasoningSummary>Reasoning summary mode for the new model. Use
ReasoningSummary::None to suppress summary output regardless of
whether reasoning is enabled.
context_tier: Option<ContextTier>Explicit context window tier for the new model. Leave unset to use normal model behavior with no explicit tier.
model_capabilities: Option<ModelCapabilitiesOverride>Override individual model capabilities resolved by the runtime. Only fields set on the override are applied; the rest fall back to the runtime-resolved values for the model.
auto_tier: Option<AutoTierPreference>Auto routing preference to stage atomically with selecting the auto
model.
Leave as None to leave the current preference alone. The runtime
rejects this option when the model is anything other than auto; use
Session::set_auto_tier to
change the preference without changing the selected model.
Implementations§
Source§impl SetModelOptions
impl SetModelOptions
Sourcepub fn with_reasoning_effort(self, effort: impl Into<String>) -> Self
pub fn with_reasoning_effort(self, effort: impl Into<String>) -> Self
Set reasoning_effort.
Sourcepub fn with_reasoning_summary(self, summary: ReasoningSummary) -> Self
pub fn with_reasoning_summary(self, summary: ReasoningSummary) -> Self
Set reasoning_summary.
Sourcepub fn with_context_tier(self, tier: ContextTier) -> Self
pub fn with_context_tier(self, tier: ContextTier) -> Self
Set context_tier.
Sourcepub fn with_model_capabilities(self, caps: ModelCapabilitiesOverride) -> Self
pub fn with_model_capabilities(self, caps: ModelCapabilitiesOverride) -> Self
Set model_capabilities.
Sourcepub fn with_auto_tier(self, tier: AutoTier) -> Self
pub fn with_auto_tier(self, tier: AutoTier) -> Self
Set auto_tier to a specific routing tier.
Sourcepub fn with_reset_auto_tier(self) -> Self
pub fn with_reset_auto_tier(self) -> Self
Set auto_tier to return to the provider’s default
Auto routing.
Trait Implementations§
Source§impl Clone for SetModelOptions
impl Clone for SetModelOptions
Source§fn clone(&self) -> SetModelOptions
fn clone(&self) -> SetModelOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more