pub enum ToolCallContent {
Content(ContentBlockWrapper),
Diff(Diff),
Terminal(TerminalRef),
}Expand description
Content produced by a tool call. A discriminated union of three shapes: a content block, a file diff, and a reference to an embedded terminal.
Variants§
Content(ContentBlockWrapper)
A standard content block (text, image, or embedded resource).
Diff(Diff)
A file modification shown as a diff.
Terminal(TerminalRef)
A reference to a terminal/created terminal
the agent embedded in the content stream.
Trait Implementations§
Source§impl Clone for ToolCallContent
impl Clone for ToolCallContent
Source§impl Debug for ToolCallContent
impl Debug for ToolCallContent
Source§impl<'de> Deserialize<'de> for ToolCallContent
impl<'de> Deserialize<'de> for ToolCallContent
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
impl Eq for ToolCallContent
Source§impl PartialEq for ToolCallContent
impl PartialEq for ToolCallContent
Source§impl Serialize for ToolCallContent
impl Serialize for ToolCallContent
impl StructuralPartialEq for ToolCallContent
Auto Trait Implementations§
impl Freeze for ToolCallContent
impl RefUnwindSafe for ToolCallContent
impl Send for ToolCallContent
impl Sync for ToolCallContent
impl Unpin for ToolCallContent
impl UnsafeUnpin for ToolCallContent
impl UnwindSafe for ToolCallContent
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