pub enum Effort {
Low,
Medium,
High,
XHigh,
Max,
}Expand description
One rung of the locode effort ladder.
Ordered shallow → deep. This is a closed set on purpose: an arbitrary
vendor string still reaches a wire through
ReasoningEffort::Other, but the menu is
a fixed ladder so the same word means the same intent everywhere.
Variants§
Low
Short, scoped work; latency over depth.
Medium
The balanced middle.
High
The default for intelligence-sensitive work.
XHigh
Best for coding and agentic runs.
Max
Correctness over cost; can overthink simple tasks.
Implementations§
Source§impl Effort
impl Effort
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The canonical locode name (what the flag, settings, and /effort take).
Sourcepub fn parse(name: &str) -> Option<Effort>
pub fn parse(name: &str) -> Option<Effort>
Parse a locode name, case-insensitively. None for anything else.
Sourcepub fn maps_to(self, api_schema: &str) -> &'static str
pub fn maps_to(self, api_schema: &str) -> &'static str
The tier this rung becomes on api_schema, for the menu’s mapping
column.
Anthropic is 1:1 today, which is why the rungs are named as they are. The function exists so that stops being an assumption the moment a wire with a different ladder is added — the menu will show the collapse instead of hiding it.
Trait Implementations§
impl Copy for Effort
impl Eq for Effort
Source§impl From<Effort> for ReasoningEffort
impl From<Effort> for ReasoningEffort
Source§fn from(effort: Effort) -> ReasoningEffort
fn from(effort: Effort) -> ReasoningEffort
Source§impl Ord for Effort
impl Ord for Effort
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Effort
impl PartialOrd for Effort
impl StructuralPartialEq for Effort
Auto Trait Implementations§
impl Freeze for Effort
impl RefUnwindSafe for Effort
impl Send for Effort
impl Sync for Effort
impl Unpin for Effort
impl UnsafeUnpin for Effort
impl UnwindSafe for Effort
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.