pub enum ThinkingDisplayMode {
Summarized,
Omitted,
Updates,
Unknown,
}Expand description
Controls how thinking content is returned in Anthropic API responses.
Variants§
Summarized
Thinking blocks contain summarized thinking text (default on Claude 4 models).
Omitted
Thinking blocks are returned with an empty thinking field (default on Claude Opus 4.7).
Updates
Only the short progress updates written between tool calls come back as
text; reasoning stays hidden (Claude Sonnet 5.5, Claude Opus 5.5,
Claude Fable 5.x). Sent with the thinking-display-updates-2026-08-18
beta.
Unknown
Catch-all for unknown display modes added by the Anthropic API.
Implementations§
Trait Implementations§
Source§impl Clone for ThinkingDisplayMode
impl Clone for ThinkingDisplayMode
impl Copy for ThinkingDisplayMode
Source§impl Debug for ThinkingDisplayMode
impl Debug for ThinkingDisplayMode
Source§impl<'de> Deserialize<'de> for ThinkingDisplayMode
impl<'de> Deserialize<'de> for ThinkingDisplayMode
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 ThinkingDisplayMode
Source§impl JsonSchema for ThinkingDisplayMode
impl JsonSchema for ThinkingDisplayMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ThinkingDisplayMode
impl PartialEq for ThinkingDisplayMode
Source§impl Serialize for ThinkingDisplayMode
impl Serialize for ThinkingDisplayMode
impl StructuralPartialEq for ThinkingDisplayMode
Auto Trait Implementations§
impl Freeze for ThinkingDisplayMode
impl RefUnwindSafe for ThinkingDisplayMode
impl Send for ThinkingDisplayMode
impl Sync for ThinkingDisplayMode
impl Unpin for ThinkingDisplayMode
impl UnsafeUnpin for ThinkingDisplayMode
impl UnwindSafe for ThinkingDisplayMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.