pub enum Content {
Text {
text: String,
},
System {
kind: String,
text: String,
data: Value,
},
Image {
source: String,
},
Thinking {
text: String,
signature: Option<String>,
redacted: bool,
},
}Variants§
Text
System
Runtime-authored context. Providers receive text at this position in
the message; transcript renderers omit the entire part. data retains
structured lifecycle facts independently of their model-facing wording.
Image
Fields
Thinking
Model thinking text (session history + live UI).
Stored in agent/session history for resume, but stripped when backends compose the next API request (not echoed as CoT). Prefer provider summary channels over raw reasoning text.
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
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 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