pub struct SessionModelChangeData {
pub cause: Option<String>,
pub context_tier: Option<ContextTier>,
pub new_model: String,
pub previous_model: Option<String>,
pub previous_reasoning_effort: Option<String>,
pub previous_reasoning_summary: Option<ReasoningSummary>,
pub previous_verbosity: Option<Verbosity>,
pub reasoning_effort: Option<String>,
pub reasoning_summary: Option<ReasoningSummary>,
pub verbosity: Option<Verbosity>,
}Expand description
Session event “session.model_change”. Model change details including previous and new model identifiers
Fields§
§cause: Option<String>Reason the change happened, when not user-initiated. Currently "rate_limit_auto_switch" for changes triggered by the auto-mode-switch rate-limit recovery path. UI clients can use this to render contextual copy.
context_tier: Option<ContextTier>Context tier after the model change; null explicitly clears a previously selected tier
new_model: StringNewly selected model identifier
previous_model: Option<String>Model that was previously selected, if any
previous_reasoning_effort: Option<String>Reasoning effort level before the model change, if applicable
previous_reasoning_summary: Option<ReasoningSummary>Reasoning summary mode before the model change, if applicable
previous_verbosity: Option<Verbosity>Output verbosity level before the model change, if applicable
reasoning_effort: Option<String>Reasoning effort level after the model change, if applicable
reasoning_summary: Option<ReasoningSummary>Reasoning summary mode after the model change, if applicable
verbosity: Option<Verbosity>Output verbosity level after the model change, if applicable
Trait Implementations§
Source§impl Clone for SessionModelChangeData
impl Clone for SessionModelChangeData
Source§fn clone(&self) -> SessionModelChangeData
fn clone(&self) -> SessionModelChangeData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more