#[non_exhaustive]pub enum ReasoningFormat {
Anthropic,
AnthropicRedacted,
OpenAiResponses,
TextOnly,
}Expand description
The encoding/replay contract of a ContentBlock::Reasoning block.
Named after the wire’s own vocabulary (Responses reasoning items tag
themselves format: "openai-responses-v1"). Serialized values deliberately
echo the api_schema strings so a trace reader maps block → wire at a
glance.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Anthropic
Anthropic extended thinking: full text + signature validator.
AnthropicRedacted
Anthropic redacted_thinking: encrypted payload, empty text.
OpenAiResponses
OpenAI Responses reasoning item: summary in text, the WHOLE item in
payload (id + summary + encrypted_content + format + future fields).
TextOnly
Capture-only reasoning with no replay contract (e.g. Chat Completions gateway extensions). Never replayed by any wire.
Trait Implementations§
Source§impl Clone for ReasoningFormat
impl Clone for ReasoningFormat
Source§fn clone(&self) -> ReasoningFormat
fn clone(&self) -> ReasoningFormat
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 ReasoningFormat
Source§impl Debug for ReasoningFormat
impl Debug for ReasoningFormat
Source§impl<'de> Deserialize<'de> for ReasoningFormat
impl<'de> Deserialize<'de> for ReasoningFormat
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 ReasoningFormat
Source§impl PartialEq for ReasoningFormat
impl PartialEq for ReasoningFormat
Source§impl Serialize for ReasoningFormat
impl Serialize for ReasoningFormat
impl StructuralPartialEq for ReasoningFormat
Auto Trait Implementations§
impl Freeze for ReasoningFormat
impl RefUnwindSafe for ReasoningFormat
impl Send for ReasoningFormat
impl Sync for ReasoningFormat
impl Unpin for ReasoningFormat
impl UnsafeUnpin for ReasoningFormat
impl UnwindSafe for ReasoningFormat
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