pub struct Thinking {
pub thinking: String,
pub signature: Option<String>,
pub cache_control: Option<CacheControl>,
}Expand description
A thinking block returned by extended-thinking models.
Fields§
§thinking: String§signature: Option<String>Provider replay signature. None when the provider did not supply one,
or when the caller deliberately dropped it — genuine Anthropic validates
this on replay, but Anthropic-compatible endpoints generally do not.
Omitted from the request when None; an empty string is not a valid
substitute.
cache_control: Option<CacheControl>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thinking
impl<'de> Deserialize<'de> for Thinking
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 From<Thinking> for MessageContent
impl From<Thinking> for MessageContent
Source§impl From<Thinking> for MessageContentList
impl From<Thinking> for MessageContentList
impl StructuralPartialEq for Thinking
Auto Trait Implementations§
impl Freeze for Thinking
impl RefUnwindSafe for Thinking
impl Send for Thinking
impl Sync for Thinking
impl Unpin for Thinking
impl UnsafeUnpin for Thinking
impl UnwindSafe for Thinking
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