pub enum StoredMessageBody {
Inline(InlineMessageBody),
Reference(ReferencedMessageBody),
Structured(StructuredMessageBody),
}Expand description
A message body, inline or by reference (§7.10).
The reference arm is the whole point: a tool result that was over the inline threshold when it
was generated (External) or that left working context under pressure (PagedOut) is already
represented in context by a preview plus a handle, and a checkpoint that re-inlined it would put
bytes back into the journal that §7.10 spent an effect kind keeping out.
Variants§
Inline(InlineMessageBody)
A body small enough to live in context.
Reference(ReferencedMessageBody)
A body that lives with the host. Carries the reference and the digest that verifies a page-in, never the bytes.
Structured(StructuredMessageBody)
A multimodal body the text projection cannot express (image or audio parts), carried as canonical provider-neutral durable content.
It exists so the projection is never silently lossy: a body that does not reduce to text travels whole rather than being flattened to the text parts that happen to be next to it.
Trait Implementations§
Source§impl Clone for StoredMessageBody
impl Clone for StoredMessageBody
Source§fn clone(&self) -> StoredMessageBody
fn clone(&self) -> StoredMessageBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more