pub enum ReasoningEffort {
None,
Minimal,
Low,
Medium,
High,
XHigh,
Max,
}Expand description
Effort levels available for reasoning-focused models.
The ladder is ordered from least to most reasoning, and spans the union of what the providers accept. No provider accepts every level, and the supported set varies by model within a provider, so each provider crate maps this to its own wire vocabulary and rejects a level its API does not have — rather than silently clamping to the nearest one, which would bill the caller for a depth they did not ask for.
Deliberately carries no as_str: the wire spelling is not shared. Minimal
is "minimal" on OpenAI and Gemini and does not exist on Claude; XHigh
and Max exist on Claude and OpenAI but not Gemini.
Variants§
None
No reasoning at all: answer directly.
On Claude this disables thinking, which the API rejects on models whose thinking is always on.
Minimal
The least reasoning a model will do while still reasoning.
Low
Shallow reasoning, for latency-sensitive work.
Medium
Balanced reasoning depth.
High
Thorough reasoning. The default on current Claude models.
XHigh
Beyond High, where the extra depth pays for itself.
Max
The most reasoning available, for quality-first workloads.
Trait Implementations§
Source§impl Clone for ReasoningEffort
impl Clone for ReasoningEffort
Source§fn clone(&self) -> ReasoningEffort
fn clone(&self) -> ReasoningEffort
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more