pub enum Content {
Text(String),
ImageFile(String),
Image {
mime_type: String,
data: String,
},
}Expand description
One block of a result the model reads.
Variants§
Text(String)
ImageFile(String)
An image in the session volume, by its absolute path under
/volume. It travels as MCP’s resource_link to a volume:/// URI;
Core reads it after the call returns and shows it to the model, so it
must still be there then.
Image
An image’s bytes, base64-encoded, as MCP carries one. It counts
against the call’s stdout, so a large image goes as an
ImageFile instead.
Implementations§
Trait Implementations§
impl Eq for Content
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