pub enum TraceContentBlock {
Text {
text: String,
cache_breakpoint: bool,
},
Image {
attachment_idx: usize,
},
ToolCall {
call_id: Option<String>,
tool_name: String,
input_json: Value,
item_id: Option<String>,
has_signature: bool,
},
ToolResult {
call_id: Option<String>,
tool_name: Option<String>,
content: String,
},
Reasoning {
text: String,
item_id: Option<String>,
summary: Vec<String>,
has_encrypted: bool,
redacted: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for TraceContentBlock
impl Clone for TraceContentBlock
Source§fn clone(&self) -> TraceContentBlock
fn clone(&self) -> TraceContentBlock
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 TraceContentBlock
impl Debug for TraceContentBlock
Source§impl<'de> Deserialize<'de> for TraceContentBlock
impl<'de> Deserialize<'de> for TraceContentBlock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraceContentBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraceContentBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TraceContentBlock
impl PartialEq for TraceContentBlock
Source§fn eq(&self, other: &TraceContentBlock) -> bool
fn eq(&self, other: &TraceContentBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TraceContentBlock
impl Serialize for TraceContentBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TraceContentBlock
Auto Trait Implementations§
impl Freeze for TraceContentBlock
impl RefUnwindSafe for TraceContentBlock
impl Send for TraceContentBlock
impl Sync for TraceContentBlock
impl Unpin for TraceContentBlock
impl UnsafeUnpin for TraceContentBlock
impl UnwindSafe for TraceContentBlock
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