pub enum ThinkLevel {
Bool(bool),
Level(String),
}Expand description
Controls the reasoning level for models that support thinking.
Most models (e.g., qwen3, deepseek-r1) accept a boolean: true enables
reasoning traces. GPT-OSS variants require one of low, medium, or
high.
Variants§
Trait Implementations§
Source§impl Clone for ThinkLevel
impl Clone for ThinkLevel
Source§fn clone(&self) -> ThinkLevel
fn clone(&self) -> ThinkLevel
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 ThinkLevel
impl Debug for ThinkLevel
Source§impl Default for ThinkLevel
impl Default for ThinkLevel
Source§impl<'de> Deserialize<'de> for ThinkLevel
impl<'de> Deserialize<'de> for ThinkLevel
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 From<&str> for ThinkLevel
impl From<&str> for ThinkLevel
Source§impl From<bool> for ThinkLevel
impl From<bool> for ThinkLevel
Auto Trait Implementations§
impl Freeze for ThinkLevel
impl RefUnwindSafe for ThinkLevel
impl Send for ThinkLevel
impl Sync for ThinkLevel
impl Unpin for ThinkLevel
impl UnsafeUnpin for ThinkLevel
impl UnwindSafe for ThinkLevel
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