pub enum Content {
Text(String),
Image {
media_type: String,
data: String,
},
ToolCall {
id: String,
name: String,
input: Value,
},
ToolResult {
call_id: String,
content: Vec<Content>,
},
Reasoning {
text: String,
signature: Option<String>,
},
}Variants§
Trait Implementations§
Source§impl From<&Content> for ContentBlock
impl From<&Content> for ContentBlock
Source§impl From<ContentBlock> for Content
impl From<ContentBlock> for Content
Source§fn from(block: ContentBlock) -> Self
fn from(block: ContentBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin 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