pub struct SessionModelGetCurrentResult {
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 SessionModelGetCurrentResult
impl Clone for SessionModelGetCurrentResult
Source§fn clone(&self) -> SessionModelGetCurrentResult
fn clone(&self) -> SessionModelGetCurrentResult
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 SessionModelGetCurrentResult
impl Debug for SessionModelGetCurrentResult
Source§impl Default for SessionModelGetCurrentResult
impl Default for SessionModelGetCurrentResult
Source§fn default() -> SessionModelGetCurrentResult
fn default() -> SessionModelGetCurrentResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionModelGetCurrentResult
impl<'de> Deserialize<'de> for SessionModelGetCurrentResult
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 SessionModelGetCurrentResult
impl RefUnwindSafe for SessionModelGetCurrentResult
impl Send for SessionModelGetCurrentResult
impl Sync for SessionModelGetCurrentResult
impl Unpin for SessionModelGetCurrentResult
impl UnsafeUnpin for SessionModelGetCurrentResult
impl UnwindSafe for SessionModelGetCurrentResult
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