pub struct ModelSwitchToResult {
pub confirmation: Option<ModelSwitchConfirmation>,
pub deferred: Option<bool>,
pub deprecation_warnings: Option<Vec<String>>,
pub message: Option<String>,
pub model_id: Option<String>,
pub model_state: Option<CurrentModel>,
pub persistence_error: Option<String>,
pub status: Option<String>,
pub warning: Option<String>,
}Expand description
The model identifier active on the session after the switch.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§confirmation: Option<ModelSwitchConfirmation>Compaction confirmation projection when status is confirmation_required
deferred: Option<bool>True when the switch was deferred (enqueued as a cancellable /model command) because a turn was active or another model change was already queued, rather than applied immediately. When true, the session’s live model is unchanged until the queued change drains.
deprecation_warnings: Option<Vec<String>>Deprecation warnings associated with the selected model or options.
message: Option<String>User-facing outcome message for the model switch.
model_id: Option<String>Currently active model identifier after the switch
model_state: Option<CurrentModel>Authoritative model and Auto preference state after an immediate switch. For deferred switches this remains the current state until the queued change drains.
persistence_error: Option<String>Persistence failure encountered after applying the model switch.
status: Option<String>Lifecycle result for the requested switch
warning: Option<String>User-facing warning produced while applying the model switch.
Trait Implementations§
Source§impl Clone for ModelSwitchToResult
impl Clone for ModelSwitchToResult
Source§fn clone(&self) -> ModelSwitchToResult
fn clone(&self) -> ModelSwitchToResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more