pub struct StreamingCitationEvent {
pub message_id: Uuid,
pub part_number: i32,
pub file_citations: Vec<FileCitation>,
pub link_citations: Vec<LinkCitation>,
pub references: Vec<LinkReference>,
}Expand description
Mid-stream citations/references attached to a part
(StreamingEvent::Citation). Unlike the batch set carried on Complete,
these arrive incrementally; they target the part at part_number.
Fields§
§message_id: UuidID of the assistant message these citations belong to.
part_number: i32Target part index (defaults to the primary text part, 0).
file_citations: Vec<FileCitation>Document citations to append to the target part.
link_citations: Vec<LinkCitation>Web-page citations to append to the target part.
references: Vec<LinkReference>URL references to append to the target part.
Trait Implementations§
Source§impl Clone for StreamingCitationEvent
impl Clone for StreamingCitationEvent
Source§fn clone(&self) -> StreamingCitationEvent
fn clone(&self) -> StreamingCitationEvent
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 StreamingCitationEvent
impl Debug for StreamingCitationEvent
Source§impl<'de> Deserialize<'de> for StreamingCitationEvent
impl<'de> Deserialize<'de> for StreamingCitationEvent
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 StreamingCitationEvent
impl RefUnwindSafe for StreamingCitationEvent
impl Send for StreamingCitationEvent
impl Sync for StreamingCitationEvent
impl Unpin for StreamingCitationEvent
impl UnsafeUnpin for StreamingCitationEvent
impl UnwindSafe for StreamingCitationEvent
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