pub enum AssistantBlock {
Text {
text: String,
},
Resource {
resource_id: String,
media_type: String,
},
Data {
slot: String,
value: Value,
},
Citation {
resource_id: String,
label: String,
uri: String,
excerpt: Option<String>,
},
}Expand description
Provider-neutral structured assistant output. Provider adapters normalize native annotations/content into this closed set at the response boundary.
Variants§
Text
Plain text.
Resource
Reference to an attached resource resolved by the host.
Fields
Data
Product-typed structured data rendered by a registered UI slot.
Citation
Citation of a retrieved resource.
Trait Implementations§
Source§impl Clone for AssistantBlock
impl Clone for AssistantBlock
Source§fn clone(&self) -> AssistantBlock
fn clone(&self) -> AssistantBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantBlock
impl Debug for AssistantBlock
Source§impl<'de> Deserialize<'de> for AssistantBlock
impl<'de> Deserialize<'de> for AssistantBlock
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
Source§impl PartialEq for AssistantBlock
impl PartialEq for AssistantBlock
Source§impl Serialize for AssistantBlock
impl Serialize for AssistantBlock
impl StructuralPartialEq for AssistantBlock
Auto Trait Implementations§
impl Freeze for AssistantBlock
impl RefUnwindSafe for AssistantBlock
impl Send for AssistantBlock
impl Sync for AssistantBlock
impl Unpin for AssistantBlock
impl UnsafeUnpin for AssistantBlock
impl UnwindSafe for AssistantBlock
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