pub enum Effort {
Low,
Medium,
High,
}Expand description
How much effort the agent should spend on a draft. Claude has no native
headless effort flag, so wt conveys effort as a one-line directive
prepended to the prompt (see Effort::directive) — a safe, never-failing
lever that shapes the model’s deliberation and can map to native reasoning
controls per agent in the future.
Variants§
Low
Quick, minimal deliberation.
Medium
Balanced effort — the default (no directive).
High
Maximum deliberation and care.
Implementations§
Source§impl Effort
impl Effort
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
A human-readable label (currently identical to Effort::id).
Sourcepub fn parse(s: &str) -> Option<Effort>
pub fn parse(s: &str) -> Option<Effort>
Parses an effort identifier (case-insensitive: low, medium/med,
high), returning None if unknown.
Sourcepub fn next(self) -> Effort
pub fn next(self) -> Effort
The next effort level in cycle order (wraps), for the TUI’s Ctrl-E key.
Trait Implementations§
impl Copy for Effort
impl Eq 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
Mutably borrows from an owned value. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more