pub enum OptionsUpdateContextTier {
Default,
LongContext,
Unknown,
}Expand description
Context tier for models with tiered pricing. The session uses this to derive effective modelCapabilitiesOverrides so compaction, truncation, token display, and request limits honor the selected tier.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Default
Use the model’s default context tier and its standard token limits / pricing.
LongContext
Use the model’s long-context tier (when available) so larger inputs are accepted and tier-specific pricing applies.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for OptionsUpdateContextTier
impl Clone for OptionsUpdateContextTier
Source§fn clone(&self) -> OptionsUpdateContextTier
fn clone(&self) -> OptionsUpdateContextTier
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 OptionsUpdateContextTier
impl Debug for OptionsUpdateContextTier
Source§impl Default for OptionsUpdateContextTier
impl Default for OptionsUpdateContextTier
Source§fn default() -> OptionsUpdateContextTier
fn default() -> OptionsUpdateContextTier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionsUpdateContextTier
impl<'de> Deserialize<'de> for OptionsUpdateContextTier
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
impl Eq for OptionsUpdateContextTier
Source§impl PartialEq for OptionsUpdateContextTier
impl PartialEq for OptionsUpdateContextTier
Source§fn eq(&self, other: &OptionsUpdateContextTier) -> bool
fn eq(&self, other: &OptionsUpdateContextTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionsUpdateContextTier
impl Serialize for OptionsUpdateContextTier
impl StructuralPartialEq for OptionsUpdateContextTier
Auto Trait Implementations§
impl Freeze for OptionsUpdateContextTier
impl RefUnwindSafe for OptionsUpdateContextTier
impl Send for OptionsUpdateContextTier
impl Sync for OptionsUpdateContextTier
impl Unpin for OptionsUpdateContextTier
impl UnsafeUnpin for OptionsUpdateContextTier
impl UnwindSafe for OptionsUpdateContextTier
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