pub enum Output {
Json(Value),
Image(EncodedImage),
Audio(EncodedAudio),
}Available on crate feature
mcp and non-WebAssembly only.Expand description
What a finished job produced.
Most tools answer with structured JSON that the transport serialises through the value’s reflection. Image tools answer with an encoded image that the transport sends as an MCP image content block, so a client renders the picture instead of decoding JSON; audio tools answer the same way, with a sound in an audio content block, so a client plays or decodes the mix instead of unbase64-ing a JSON field.
Variants§
Json(Value)
A structured JSON result.
Image(EncodedImage)
An encoded image.
Audio(EncodedAudio)
An encoded sound.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Output
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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