pub enum ReasoningEffort {
None,
Minimal,
Low,
Medium,
High,
XHigh,
}Expand description
Reasoning-effort levels accepted by every supported provider.
Wire mapping is owned by each StreamFn impl: OpenRouter sends
reasoning: {effort}; Fireworks rejects "minimal" and gets
Minimal → "low" remapped at the bridge. The enum stays
provider-agnostic so the loop and the configuration surface speak
one language.
Default is ReasoningEffort::Minimal — keeps the reasoning
channel open (some providers reject requests that omit it on
reasoning-capable models) without burning the visible-completion
budget on hidden-thought tokens.
Variants§
None
Reasoning channel suppressed entirely. Use only when the model
is known to tolerate effort: "none" (Anthropic, xAI Grok,
most non-OpenAI families).
Minimal
Lowest non-empty reasoning budget. Universal default — works on every provider and keeps tool-call latency low.
Low
Medium
High
XHigh
OpenRouter-specific extra-high reasoning tier (~95% of max_tokens
on OpenAI/Grok/Anthropic; mapped down to "high" for Gemini 3).
Implementations§
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
Source§impl Default for ReasoningEffort
impl Default for ReasoningEffort
Source§fn default() -> ReasoningEffort
fn default() -> ReasoningEffort
Source§impl<'de> Deserialize<'de> for ReasoningEffort
impl<'de> Deserialize<'de> for ReasoningEffort
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>,
Source§impl PartialEq for ReasoningEffort
impl PartialEq for ReasoningEffort
Source§fn eq(&self, other: &ReasoningEffort) -> bool
fn eq(&self, other: &ReasoningEffort) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ReasoningEffort
impl Serialize for ReasoningEffort
impl Copy for ReasoningEffort
impl Eq 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
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.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.