pub enum ThinkingLevel {
Minimal,
Low,
Medium,
High,
}Available on crate features
models and gemini only.Expand description
Native thinking level for Gemini 3 models.
Controls the amount of reasoning effort the model applies. This is the
Gemini 3 native thinking control — for Gemini 2.5 budget-based thinking,
use ThinkingConfig::with_thinking_budget instead.
Serializes as lowercase per the Gemini API contract
(e.g., "low", "high").
Available levels (model support varies):
Minimal— matches “no thinking” for most queries; model may still think minimally for complex coding tasks. Not supported on Gemini 3.1 Pro.Low— minimizes latency and cost; best for simple tasks.Medium— balanced thinking for most tasks.High— maximizes reasoning depth (default for Gemini 3 Flash and 3.1 Pro).
Variants§
Minimal
Minimal reasoning effort. Matches “no thinking” for most queries. Not supported on Gemini 3.1 Pro.
Low
Low reasoning effort. Best for simple instruction following and chat.
Medium
Medium reasoning effort. Balanced thinking for most tasks.
High
High reasoning effort — maximizes reasoning depth (default).
Trait Implementations§
Source§impl Clone for ThinkingLevel
impl Clone for ThinkingLevel
Source§fn clone(&self) -> ThinkingLevel
fn clone(&self) -> ThinkingLevel
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 ThinkingLevel
impl Debug for ThinkingLevel
Source§impl<'de> Deserialize<'de> for ThinkingLevel
impl<'de> Deserialize<'de> for ThinkingLevel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThinkingLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThinkingLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThinkingLevel
impl PartialEq for ThinkingLevel
Source§fn eq(&self, other: &ThinkingLevel) -> bool
fn eq(&self, other: &ThinkingLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThinkingLevel
impl Serialize for ThinkingLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ThinkingLevel
impl Eq for ThinkingLevel
impl StructuralPartialEq for ThinkingLevel
Auto Trait Implementations§
impl Freeze for ThinkingLevel
impl RefUnwindSafe for ThinkingLevel
impl Send for ThinkingLevel
impl Sync for ThinkingLevel
impl Unpin for ThinkingLevel
impl UnsafeUnpin for ThinkingLevel
impl UnwindSafe for ThinkingLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.