pub struct TextContentBlock {
pub block_type: String,
pub id: Option<String>,
pub text: String,
pub annotations: Option<Vec<Annotation>>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Text output from a LLM.
This typically represents the main text content of a message.
Fields§
§block_type: StringType of the content block. Always “text”.
id: Option<String>Content block identifier.
text: StringBlock text.
annotations: Option<Vec<Annotation>>Citations and other annotations.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for TextContentBlock
impl Clone for TextContentBlock
Source§fn clone(&self) -> TextContentBlock
fn clone(&self) -> TextContentBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 TextContentBlock
impl Debug for TextContentBlock
Source§impl<'de> Deserialize<'de> for TextContentBlock
impl<'de> Deserialize<'de> for TextContentBlock
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 TextContentBlock
impl PartialEq for TextContentBlock
Source§impl Serialize for TextContentBlock
impl Serialize for TextContentBlock
impl StructuralPartialEq for TextContentBlock
Auto Trait Implementations§
impl Freeze for TextContentBlock
impl RefUnwindSafe for TextContentBlock
impl Send for TextContentBlock
impl Sync for TextContentBlock
impl Unpin for TextContentBlock
impl UnwindSafe for TextContentBlock
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