pub enum ThinkingFormat {
Adaptive,
Legacy,
}Expand description
Anthropic Messages thinking wire format for a model.
The codec layer has its own defect_llm enum; this config-layer enum exists so
defect-config need not depend on defect-llm (one-way crate dependency), mirroring
the ReasoningEffort split.
Variants§
Adaptive
thinking.type=adaptive + output_config.effort (Opus 4.6+, Sonnet 4.6, Fable).
Legacy
thinking.type=enabled + budget_tokens (Sonnet 4.5, Haiku 4.5, older models).
Trait Implementations§
Source§impl Clone for ThinkingFormat
impl Clone for ThinkingFormat
Source§fn clone(&self) -> ThinkingFormat
fn clone(&self) -> ThinkingFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThinkingFormat
Source§impl Debug for ThinkingFormat
impl Debug for ThinkingFormat
Source§impl<'de> Deserialize<'de> for ThinkingFormat
impl<'de> Deserialize<'de> for ThinkingFormat
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThinkingFormat
Source§impl PartialEq for ThinkingFormat
impl PartialEq for ThinkingFormat
Source§fn eq(&self, other: &ThinkingFormat) -> bool
fn eq(&self, other: &ThinkingFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThinkingFormat
impl Serialize for ThinkingFormat
impl StructuralPartialEq for ThinkingFormat
Auto Trait Implementations§
impl Freeze for ThinkingFormat
impl RefUnwindSafe for ThinkingFormat
impl Send for ThinkingFormat
impl Sync for ThinkingFormat
impl Unpin for ThinkingFormat
impl UnsafeUnpin for ThinkingFormat
impl UnwindSafe for ThinkingFormat
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.