pub struct SetModelOptions {
pub reasoning_effort: Option<String>,
pub model_capabilities: Option<ModelCapabilitiesOverride>,
}Expand description
Options for Session::set_model.
Pass None to set_model to switch model without any overrides.
Fields§
§reasoning_effort: Option<String>Reasoning effort for the new model (e.g. "low", "medium",
"high", "xhigh").
model_capabilities: Option<ModelCapabilitiesOverride>Override individual model capabilities resolved by the runtime. Only fields set on the override are applied; the rest fall back to the runtime-resolved values for the model.
Implementations§
Source§impl SetModelOptions
impl SetModelOptions
Sourcepub fn with_reasoning_effort(self, effort: impl Into<String>) -> Self
pub fn with_reasoning_effort(self, effort: impl Into<String>) -> Self
Set reasoning_effort.
Sourcepub fn with_model_capabilities(self, caps: ModelCapabilitiesOverride) -> Self
pub fn with_model_capabilities(self, caps: ModelCapabilitiesOverride) -> Self
Set model_capabilities.
Trait Implementations§
Source§impl Clone for SetModelOptions
impl Clone for SetModelOptions
Source§fn clone(&self) -> SetModelOptions
fn clone(&self) -> SetModelOptions
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 SetModelOptions
impl Debug for SetModelOptions
Source§impl Default for SetModelOptions
impl Default for SetModelOptions
Source§fn default() -> SetModelOptions
fn default() -> SetModelOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetModelOptions
impl RefUnwindSafe for SetModelOptions
impl Send for SetModelOptions
impl Sync for SetModelOptions
impl Unpin for SetModelOptions
impl UnsafeUnpin for SetModelOptions
impl UnwindSafe for SetModelOptions
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