pub enum ConnectorContent {
Text(String),
Image {
data: String,
mime_type: String,
},
Resource {
uri: String,
text: Option<String>,
},
Other(String),
}Expand description
One piece of a tool result.
Variants§
Text(String)
Image
Base64 image data.
Resource
Other(String)
Something we don’t show (audio, resource links…): its type.
Trait Implementations§
Source§impl Clone for ConnectorContent
impl Clone for ConnectorContent
Source§impl Debug for ConnectorContent
impl Debug for ConnectorContent
impl Eq for ConnectorContent
Source§impl PartialEq for ConnectorContent
impl PartialEq for ConnectorContent
impl StructuralPartialEq for ConnectorContent
Auto Trait Implementations§
impl Forget for ConnectorContent
impl Freeze for ConnectorContent
impl Move for ConnectorContent
impl RefUnwindSafe for ConnectorContent
impl Send for ConnectorContent
impl Sync for ConnectorContent
impl Unpin for ConnectorContent
impl UnsafeUnpin for ConnectorContent
impl UnwindSafe for ConnectorContent
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.