pub struct ModeSetResult {
pub arm_interactive_continuation: Option<bool>,
pub confirmation: Option<ModelSwitchConfirmation>,
pub defer_implementation: Option<bool>,
pub deprecation_warnings: Option<Vec<String>>,
pub message: Option<String>,
pub mode_applied: Option<bool>,
pub model_changed: bool,
pub status: String,
pub warning: Option<String>,
}Expand description
Outcome of a session mode change, including any model switch it triggered and follow-up the host must perform.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§arm_interactive_continuation: Option<bool>Whether the host should arm an interactive continuation after the mode change.
confirmation: Option<ModelSwitchConfirmation>Compaction confirmation required before the mode change can complete.
defer_implementation: Option<bool>Whether the host must defer implementing the requested mode change.
deprecation_warnings: Option<Vec<String>>Deprecation warnings associated with the model selected by the mode change.
message: Option<String>User-facing outcome message for the model switch triggered by the mode change.
mode_applied: Option<bool>Whether the requested mode was applied to the session. False only when an ‘expectedMode’ precondition did not hold, in which case any model change reported alongside it was still applied.
model_changed: boolWhether applying the mode changed the active model.
status: StringLifecycle status of the requested mode change.
warning: Option<String>User-facing warning produced while applying the mode change.
Trait Implementations§
Source§impl Clone for ModeSetResult
impl Clone for ModeSetResult
Source§fn clone(&self) -> ModeSetResult
fn clone(&self) -> ModeSetResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more