pub struct ThinkingContent {
pub content_type: ThinkingContentType,
pub thinking: String,
pub thinking_signature: Option<String>,
pub redacted: Option<bool>,
}Expand description
Message types for constructing conversations. Thinking content block (extended thinking / chain-of-thought output).
Fields§
§content_type: ThinkingContentTypeDiscriminator for untagged deserialization.
thinking: StringThe raw thinking text from the model.
thinking_signature: Option<String>Optional provider-specific signature for the thinking block.
redacted: Option<bool>Whether the thinking content was redacted by the provider.
Implementations§
Trait Implementations§
Source§impl Clone for ThinkingContent
impl Clone for ThinkingContent
Source§fn clone(&self) -> ThinkingContent
fn clone(&self) -> ThinkingContent
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 ThinkingContent
impl Debug for ThinkingContent
Source§impl<'de> Deserialize<'de> for ThinkingContent
impl<'de> Deserialize<'de> for ThinkingContent
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
Auto Trait Implementations§
impl Freeze for ThinkingContent
impl RefUnwindSafe for ThinkingContent
impl Send for ThinkingContent
impl Sync for ThinkingContent
impl Unpin for ThinkingContent
impl UnsafeUnpin for ThinkingContent
impl UnwindSafe for ThinkingContent
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