pub enum ToolOutputBlock {
Text {
text: String,
},
Image {
mime_type: String,
data: Vec<u8>,
},
}Expand description
A single content block returned from a tool. MCP supports resources too; add a variant here when the binary actually asks for one.
Variants§
Text
The text payload.
Image
An image’s bytes and the mime type they are in. Encoded as the MCP
image content shape at the boundary, which carries data base64.
Trait Implementations§
Source§impl Clone for ToolOutputBlock
impl Clone for ToolOutputBlock
Source§impl Debug for ToolOutputBlock
impl Debug for ToolOutputBlock
impl Eq for ToolOutputBlock
Source§impl PartialEq for ToolOutputBlock
impl PartialEq for ToolOutputBlock
impl StructuralPartialEq for ToolOutputBlock
Auto Trait Implementations§
impl Freeze for ToolOutputBlock
impl RefUnwindSafe for ToolOutputBlock
impl Send for ToolOutputBlock
impl Sync for ToolOutputBlock
impl Unpin for ToolOutputBlock
impl UnsafeUnpin for ToolOutputBlock
impl UnwindSafe for ToolOutputBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.