pub enum Content {
Text(String),
Image(ImageSource),
ToolUse(ToolUse),
ToolResult(ToolResult),
}Expand description
Content block types that can appear in messages.
Variants§
Text(String)
Plain text content.
Image(ImageSource)
Image content with source data.
ToolUse(ToolUse)
Tool invocation from the assistant.
ToolResult(ToolResult)
Tool result from the user.
Trait Implementations§
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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