pub struct ReasoningContentBlock {
pub block_type: String,
pub id: Option<String>,
pub reasoning: Option<String>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Reasoning output from a LLM.
Used to represent reasoning/thinking content from AI models that support chain-of-thought reasoning (e.g., DeepSeek, Ollama, XAI, Groq).
Fields§
§block_type: StringType of the content block. Always “reasoning”.
id: Option<String>Content block identifier.
reasoning: Option<String>Reasoning text. Either the thought summary or the raw reasoning text itself.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for ReasoningContentBlock
impl Clone for ReasoningContentBlock
Source§fn clone(&self) -> ReasoningContentBlock
fn clone(&self) -> ReasoningContentBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 ReasoningContentBlock
impl Debug for ReasoningContentBlock
Source§impl Default for ReasoningContentBlock
impl Default for ReasoningContentBlock
Source§impl<'de> Deserialize<'de> for ReasoningContentBlock
impl<'de> Deserialize<'de> for ReasoningContentBlock
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 ReasoningContentBlock
impl PartialEq for ReasoningContentBlock
Source§impl Serialize for ReasoningContentBlock
impl Serialize for ReasoningContentBlock
impl StructuralPartialEq for ReasoningContentBlock
Auto Trait Implementations§
impl Freeze for ReasoningContentBlock
impl RefUnwindSafe for ReasoningContentBlock
impl Send for ReasoningContentBlock
impl Sync for ReasoningContentBlock
impl Unpin for ReasoningContentBlock
impl UnwindSafe for ReasoningContentBlock
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