pub enum EffortLevel {
Low,
Medium,
High,
Xhigh,
Max,
Unknown(String),
}Expand description
A reasoning effort level, as accepted by claude --effort and the
effortLevel setting (CLI 2.1.321: low | medium | high | xhigh |
max).
The CLI caps or downgrades a level the model or org doesn’t support
(max/xhigh fall back to high); system/init’s effort reports the
level that will actually be sent. Unknown or future levels round-trip
through EffortLevel::Unknown.
Variants§
Low
Medium
High
Xhigh
Extra-high effort (xhigh); the level the ultrathink keyword raises
a turn to.
Max
Unknown(String)
A level not yet known to this version of the crate.
Implementations§
Source§impl EffortLevel
impl EffortLevel
Trait Implementations§
Source§impl Clone for EffortLevel
impl Clone for EffortLevel
Source§impl Debug for EffortLevel
impl Debug for EffortLevel
Source§impl<'de> Deserialize<'de> for EffortLevel
impl<'de> Deserialize<'de> for EffortLevel
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EffortLevel
impl Display for EffortLevel
impl Eq for EffortLevel
Source§impl From<&str> for EffortLevel
impl From<&str> for EffortLevel
Source§impl From<EffortLevel> for String
impl From<EffortLevel> for String
Source§fn from(level: EffortLevel) -> Self
fn from(level: EffortLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for EffortLevel
impl Hash for EffortLevel
Source§impl PartialEq for EffortLevel
impl PartialEq for EffortLevel
Source§impl Serialize for EffortLevel
impl Serialize for EffortLevel
impl StructuralPartialEq for EffortLevel
Auto Trait Implementations§
impl Forget for EffortLevel
impl Freeze for EffortLevel
impl RefUnwindSafe for EffortLevel
impl Send for EffortLevel
impl Sync for EffortLevel
impl Unpin for EffortLevel
impl UnsafeUnpin for EffortLevel
impl UnwindSafe for EffortLevel
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