pub struct ModelSwitchConfirmation {
pub current_tokens: f64,
pub target_limit: f64,
pub target_model_display_name: String,
}Expand description
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§current_tokens: f64Current conversation token count before switching models.
target_limit: f64Target model token limit used by the compaction preflight.
target_model_display_name: StringDisplay name of the model that requires compaction confirmation.
Trait Implementations§
Source§impl Clone for ModelSwitchConfirmation
impl Clone for ModelSwitchConfirmation
Source§fn clone(&self) -> ModelSwitchConfirmation
fn clone(&self) -> ModelSwitchConfirmation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelSwitchConfirmation
impl Debug for ModelSwitchConfirmation
Source§impl Default for ModelSwitchConfirmation
impl Default for ModelSwitchConfirmation
Source§fn default() -> ModelSwitchConfirmation
fn default() -> ModelSwitchConfirmation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelSwitchConfirmation
impl<'de> Deserialize<'de> for ModelSwitchConfirmation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelSwitchConfirmation
impl RefUnwindSafe for ModelSwitchConfirmation
impl Send for ModelSwitchConfirmation
impl Sync for ModelSwitchConfirmation
impl Unpin for ModelSwitchConfirmation
impl UnsafeUnpin for ModelSwitchConfirmation
impl UnwindSafe for ModelSwitchConfirmation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more