pub struct AssistantThinking {
pub text: String,
pub signature: Option<String>,
}Expand description
Verbatim thinking block emitted by Anthropic extended thinking. The
signature is a provider-supplied opaque token that MUST be
round-tripped on subsequent turns — Anthropic rejects modified
thinking blocks. OpenAI does not emit thinking blocks at all, so this
field is always None on that path.
Fields§
§text: String§signature: Option<String>Trait Implementations§
Source§impl Clone for AssistantThinking
impl Clone for AssistantThinking
Source§fn clone(&self) -> AssistantThinking
fn clone(&self) -> AssistantThinking
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 AssistantThinking
impl Debug for AssistantThinking
Source§impl<'de> Deserialize<'de> for AssistantThinking
impl<'de> Deserialize<'de> for AssistantThinking
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 AssistantThinking
impl PartialEq for AssistantThinking
Source§fn eq(&self, other: &AssistantThinking) -> bool
fn eq(&self, other: &AssistantThinking) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssistantThinking
impl Serialize for AssistantThinking
impl StructuralPartialEq for AssistantThinking
Auto Trait Implementations§
impl Freeze for AssistantThinking
impl RefUnwindSafe for AssistantThinking
impl Send for AssistantThinking
impl Sync for AssistantThinking
impl Unpin for AssistantThinking
impl UnsafeUnpin for AssistantThinking
impl UnwindSafe for AssistantThinking
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