pub enum MessageResponseContent {
Text {
text: String,
},
Thinking {
thinking: String,
signature: String,
},
RedactedThinking {
data: String,
},
ToolUse {
id: String,
name: String,
input: Value,
},
}Expand description
Message response content.
Variants§
Text
Text response from the model.
Thinking
Thinking response from the model.
RedactedThinking
Redacted thinking response from the model.
ToolUse
Request by the model to invoke a tool call.
Trait Implementations§
Source§impl Clone for MessageResponseContent
impl Clone for MessageResponseContent
Source§fn clone(&self) -> MessageResponseContent
fn clone(&self) -> MessageResponseContent
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 MessageResponseContent
impl Debug for MessageResponseContent
Source§impl Default for MessageResponseContent
impl Default for MessageResponseContent
Source§impl<'de> Deserialize<'de> for MessageResponseContent
impl<'de> Deserialize<'de> for MessageResponseContent
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 MessageResponseContent
impl PartialEq for MessageResponseContent
Source§impl Serialize for MessageResponseContent
impl Serialize for MessageResponseContent
impl StructuralPartialEq for MessageResponseContent
Auto Trait Implementations§
impl Freeze for MessageResponseContent
impl RefUnwindSafe for MessageResponseContent
impl Send for MessageResponseContent
impl Sync for MessageResponseContent
impl Unpin for MessageResponseContent
impl UnwindSafe for MessageResponseContent
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