#[non_exhaustive]pub enum ReasoningEffort {
None,
Minimal,
Low,
Medium,
High,
XHigh,
Max,
Other(String),
}Expand description
A neutral reasoning-effort level, mapped per-wire (ADR-0007).
Grok Build proves this shape: one neutral enum with per-backend mappings
(to_messages_api() → Anthropic budget, to_responses_api() → OpenAI effort).
Tiers fragment per vendor/model generation (OpenAI none…xhigh, codex
minimal…xhigh, grok stores per-model allowed-effort lists), so the ladder
covers the observed union and Other passes vendor-specific strings
through verbatim (ADR-0007 amendment 2026-07-19). Wires surface the API’s
own error on unsupported tiers — never silently clamp (silent clamping
would corrupt eval comparisons).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
Explicitly send the wire’s “none” (distinct from omitting the param —
SamplingArgs.reasoning_effort: None omits it entirely).
Minimal
Minimal reasoning.
Low
Low reasoning effort.
Medium
Medium reasoning effort.
High
High reasoning effort.
XHigh
Extra-high reasoning effort.
Max
The deepest tier a wire offers. Distinct from ReasoningEffort::XHigh:
Anthropic exposes both, and max is the “correctness matters more than
cost” setting rather than one more notch of xhigh.
Other(String)
A vendor/model-specific tier, passed through verbatim by wires that take effort strings; wires with fixed mappings soft-reject it.
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 moreSource§impl Debug for ReasoningEffort
impl Debug for ReasoningEffort
impl Eq for ReasoningEffort
Source§impl From<Effort> for ReasoningEffort
impl From<Effort> for ReasoningEffort
Source§impl PartialEq for ReasoningEffort
impl PartialEq for ReasoningEffort
impl StructuralPartialEq for ReasoningEffort
Auto Trait Implementations§
impl Freeze for ReasoningEffort
impl RefUnwindSafe for ReasoningEffort
impl Send for ReasoningEffort
impl Sync for ReasoningEffort
impl Unpin for ReasoningEffort
impl UnsafeUnpin for ReasoningEffort
impl UnwindSafe for ReasoningEffort
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,
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.