pub enum MessageContent {
Text(String),
Parts(Vec<LlmContentPart>),
}Expand description
Message content - either a simple string or array of content parts
Variants§
Text(String)
Simple text content
Parts(Vec<LlmContentPart>)
Array of content parts (text, images, audio)
Implementations§
Trait Implementations§
Source§impl Clone for MessageContent
impl Clone for MessageContent
Source§impl Debug for MessageContent
impl Debug for MessageContent
Source§impl From<&str> for MessageContent
impl From<&str> for MessageContent
Auto Trait Implementations§
impl Freeze for MessageContent
impl RefUnwindSafe for MessageContent
impl Send for MessageContent
impl Sync for MessageContent
impl Unpin for MessageContent
impl UnsafeUnpin for MessageContent
impl UnwindSafe for MessageContent
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