pub enum ThinkingLevel {
Minimal,
Low,
Medium,
High,
}gemini and models 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 and defaults vary by model):
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; improved for code and agentic tasks that require fewer steps.Medium— balanced thinking for most tasks. Default for Gemini 3.5 Flash.High— maximizes reasoning depth. Default for Gemini 3 Flash Preview and Gemini 3.1 Pro.
Note: temperature, top_p, and top_k are no longer recommended for
Gemini 3.x models — their reasoning is tuned for the default sampling
settings. Use thinking_level to control reasoning effort instead.
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. Default for Gemini 3.5 Flash.
High
High reasoning effort — maximizes reasoning depth. Default for Gemini 3 Flash Preview and Gemini 3.1 Pro.
Trait Implementations§
Source§impl Clone for ThinkingLevel
impl Clone for ThinkingLevel
Source§fn clone(&self) -> ThinkingLevel
fn clone(&self) -> ThinkingLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ThinkingLevel
Source§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>,
impl Eq for ThinkingLevel
Source§impl PartialEq for ThinkingLevel
impl PartialEq for ThinkingLevel
Source§fn eq(&self, other: &ThinkingLevel) -> bool
fn eq(&self, other: &ThinkingLevel) -> bool
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,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.