pub struct SessionModelGetCurrentResult {
pub activating_auto_tier: Option<AutoTier>,
pub auto_tier: Option<AutoTier>,
pub context_tier: Option<ContextTier>,
pub model_id: Option<String>,
pub pending_auto_tier: Option<AutoTier>,
pub reasoning_effort: Option<String>,
}Expand description
The session’s authoritative model snapshot. Auto preference fields are configuration for the virtual auto model and do not change the selected model identifier. The context tier reflects Session.getContextTier(), restored from the session journal on resume.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§activating_auto_tier: Option<AutoTier>Auto preference currently claimed by an in-progress activation. Null means the activation is returning to provider-default routing.
auto_tier: Option<AutoTier>Auto preference currently committed for the session. This can remain available while another model is selected so a later switch to auto can reuse it.
context_tier: Option<ContextTier>Context tier for models that support multiple context-window sizes.
model_id: Option<String>Currently active model identifier
pending_auto_tier: Option<AutoTier>Latest unclaimed Auto preference waiting for a future user turn. Null means the pending request is returning to provider-default routing.
reasoning_effort: Option<String>Reasoning effort level currently applied to the active model, when one is set. Reads Session.getReasoningEffort() synchronously after getSelectedModel() resolves so the two values are reported as a snapshot.
Trait Implementations§
Source§impl Clone for SessionModelGetCurrentResult
impl Clone for SessionModelGetCurrentResult
Source§fn clone(&self) -> SessionModelGetCurrentResult
fn clone(&self) -> SessionModelGetCurrentResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more