pub struct CurrentModel {
pub context_tier: Option<ContextTier>,
pub model_id: Option<String>,
pub reasoning_effort: Option<String>,
}Expand description
The currently selected model, reasoning effort, and context tier for the session. The context tier reflects Session.getContextTier(), restored from the session journal on resume.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§context_tier: Option<ContextTier>Context tier for models that support multiple context-window sizes.
model_id: Option<String>Currently active model identifier
reasoning_effort: Option<String>Reasoning effort level currently applied to the active model, when one is set. Reads Session.getReasoningEffort() synchronously after getSelectedModel() resolves so the two values are reported as a snapshot.
Trait Implementations§
Source§impl Clone for CurrentModel
impl Clone for CurrentModel
Source§fn clone(&self) -> CurrentModel
fn clone(&self) -> CurrentModel
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 CurrentModel
impl Debug for CurrentModel
Source§impl Default for CurrentModel
impl Default for CurrentModel
Source§fn default() -> CurrentModel
fn default() -> CurrentModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentModel
impl<'de> Deserialize<'de> for CurrentModel
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 CurrentModel
impl RefUnwindSafe for CurrentModel
impl Send for CurrentModel
impl Sync for CurrentModel
impl Unpin for CurrentModel
impl UnsafeUnpin for CurrentModel
impl UnwindSafe for CurrentModel
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