pub struct ModelSwitchAutoTierRequest {
pub auto_tier: Option<AutoTier>,
pub source: Option<ModelChangeSource>,
}Expand description
An Auto preference request for the session. This updates Auto configuration only; it does not change the selected model to auto.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§auto_tier: Option<AutoTier>Auto preference to activate when a future user turn using the auto model safely mints a replacement model and token pair. Pass null to return to provider-default Auto routing.
source: Option<ModelChangeSource>Origin to record on the effective session.model_change event. Defaults to sdk when omitted.
Trait Implementations§
Source§impl Clone for ModelSwitchAutoTierRequest
impl Clone for ModelSwitchAutoTierRequest
Source§fn clone(&self) -> ModelSwitchAutoTierRequest
fn clone(&self) -> ModelSwitchAutoTierRequest
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 ModelSwitchAutoTierRequest
impl Debug for ModelSwitchAutoTierRequest
Source§impl Default for ModelSwitchAutoTierRequest
impl Default for ModelSwitchAutoTierRequest
Source§fn default() -> ModelSwitchAutoTierRequest
fn default() -> ModelSwitchAutoTierRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelSwitchAutoTierRequest
impl<'de> Deserialize<'de> for ModelSwitchAutoTierRequest
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 ModelSwitchAutoTierRequest
impl RefUnwindSafe for ModelSwitchAutoTierRequest
impl Send for ModelSwitchAutoTierRequest
impl Sync for ModelSwitchAutoTierRequest
impl Unpin for ModelSwitchAutoTierRequest
impl UnsafeUnpin for ModelSwitchAutoTierRequest
impl UnwindSafe for ModelSwitchAutoTierRequest
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