pub enum RapToolResultContent {
Text {
text: String,
},
Image {
data: String,
media_type: String,
},
}Expand description
A single item of structured tool-result content.
A RapToolResult carries either a plain text result or a structured
content list (which may include images) for runtimes and models that
support multimodal inputs.
Variants§
Trait Implementations§
Source§impl Clone for RapToolResultContent
impl Clone for RapToolResultContent
Source§impl Debug for RapToolResultContent
impl Debug for RapToolResultContent
Source§impl<'de> Deserialize<'de> for RapToolResultContent
impl<'de> Deserialize<'de> for RapToolResultContent
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
Auto Trait Implementations§
impl Freeze for RapToolResultContent
impl RefUnwindSafe for RapToolResultContent
impl Send for RapToolResultContent
impl Sync for RapToolResultContent
impl Unpin for RapToolResultContent
impl UnsafeUnpin for RapToolResultContent
impl UnwindSafe for RapToolResultContent
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