pub enum ReasoningLevel {
Off,
Low,
Medium,
High,
}Expand description
Extended chain-of-thought / reasoning effort level.
Controls how much “thinking” budget the model gets. Not all providers
support granular levels; when unsupported, any non-Off
variant is treated as reasoning-enabled with a provider-chosen budget.
"on" deserialises as Medium for backwards compatibility.
Variants§
Off
Reasoning/thinking is disabled. The model responds directly.
Low
Minimal reasoning budget.
Medium
Moderate reasoning budget (default when reasoning is simply “enabled”).
High
Maximum reasoning budget.
Implementations§
Trait Implementations§
Source§impl Clone for ReasoningLevel
impl Clone for ReasoningLevel
impl Copy for ReasoningLevel
Source§impl Debug for ReasoningLevel
impl Debug for ReasoningLevel
Source§impl Default for ReasoningLevel
impl Default for ReasoningLevel
Source§impl<'de> Deserialize<'de> for ReasoningLevel
impl<'de> Deserialize<'de> for ReasoningLevel
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
Source§impl Display for ReasoningLevel
impl Display for ReasoningLevel
impl Eq for ReasoningLevel
Source§impl FromStr for ReasoningLevel
impl FromStr for ReasoningLevel
Source§impl PartialEq for ReasoningLevel
impl PartialEq for ReasoningLevel
Source§impl Serialize for ReasoningLevel
impl Serialize for ReasoningLevel
impl StructuralPartialEq for ReasoningLevel
Source§impl TryFrom<&str> for ReasoningLevel
impl TryFrom<&str> for ReasoningLevel
Source§impl VariantArray for ReasoningLevel
impl VariantArray for ReasoningLevel
Auto Trait Implementations§
impl Freeze for ReasoningLevel
impl RefUnwindSafe for ReasoningLevel
impl Send for ReasoningLevel
impl Sync for ReasoningLevel
impl Unpin for ReasoningLevel
impl UnsafeUnpin for ReasoningLevel
impl UnwindSafe for ReasoningLevel
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