pub enum ReasoningBlock {
Thinking {
text: String,
signature: Option<String>,
},
Redacted {
data: String,
},
Plain {
text: String,
},
}Expand description
One provider-native reasoning block attached to an assistant message.
See ADR-034 for the full boundary design.
Variants§
Thinking
Signed thinking (Anthropic thinking block). text may be empty when
the provider omits display text; signature is opaque and must be
replayed byte-for-byte, never inspected or trimmed.
Redacted
Encrypted redacted thinking (Anthropic redacted_thinking). Replayed
byte-for-byte; never rendered anywhere.
Plain
Plain reasoning text (OpenAI-compatible reasoning_content).
Trait Implementations§
Source§impl Clone for ReasoningBlock
impl Clone for ReasoningBlock
Source§fn clone(&self) -> ReasoningBlock
fn clone(&self) -> ReasoningBlock
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 moreSource§impl Debug for ReasoningBlock
impl Debug for ReasoningBlock
Source§impl<'de> Deserialize<'de> for ReasoningBlock
impl<'de> Deserialize<'de> for ReasoningBlock
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
Source§impl PartialEq for ReasoningBlock
impl PartialEq for ReasoningBlock
Source§impl Serialize for ReasoningBlock
impl Serialize for ReasoningBlock
impl StructuralPartialEq for ReasoningBlock
Auto Trait Implementations§
impl Freeze for ReasoningBlock
impl RefUnwindSafe for ReasoningBlock
impl Send for ReasoningBlock
impl Sync for ReasoningBlock
impl Unpin for ReasoningBlock
impl UnsafeUnpin for ReasoningBlock
impl UnwindSafe for ReasoningBlock
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