pub enum Content {
Text(String),
Json(Value),
Image {
url: Option<String>,
mime: Option<String>,
name: Option<String>,
},
Audio {
url: Option<String>,
mime: Option<String>,
},
}
Expand description
Message content — moved to an enum to support multimodal and structured content
Variants§
Text(String)
Json(Value)
Generic JSON content for structured payloads (e.g. function call args)
Image
Reference to an image (url) or metadata; adapters may upload or inline as needed
Audio
Reference to audio content
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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
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