pub struct StreamingCompleteEvent {
pub message_id: Uuid,
pub metadata: Option<Value>,
pub file_citations: Vec<FileCitation>,
pub link_citations: Vec<LinkCitation>,
pub references: Vec<LinkReference>,
}Expand description
Signals the assistant message is fully persisted and the stream is closing.
Fields§
§message_id: UuidID of the completed assistant message.
metadata: Option<Value>Final plugin-defined metadata (model used, finish_reason, token usage,
etc.). Omitted from the wire when None.
file_citations: Vec<FileCitation>Document citations for the completed assistant text part. Persisted
with the text part on finalize (see FR-023).
link_citations: Vec<LinkCitation>Web-page citations for the completed assistant text part.
references: Vec<LinkReference>URL references for the completed assistant text part.
Trait Implementations§
Source§impl Clone for StreamingCompleteEvent
impl Clone for StreamingCompleteEvent
Source§fn clone(&self) -> StreamingCompleteEvent
fn clone(&self) -> StreamingCompleteEvent
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 StreamingCompleteEvent
impl Debug for StreamingCompleteEvent
Source§impl<'de> Deserialize<'de> for StreamingCompleteEvent
impl<'de> Deserialize<'de> for StreamingCompleteEvent
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 StreamingCompleteEvent
impl RefUnwindSafe for StreamingCompleteEvent
impl Send for StreamingCompleteEvent
impl Sync for StreamingCompleteEvent
impl Unpin for StreamingCompleteEvent
impl UnsafeUnpin for StreamingCompleteEvent
impl UnwindSafe for StreamingCompleteEvent
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