pub struct Citations {
pub sources: Vec<CitationSource>,
pub spans: Vec<CitationSpan>,
}Expand description
Provider-agnostic citations linking spans of the assistant’s response to their supporting sources.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§sources: Vec<CitationSource>Deduplicated set of sources referenced by the citation spans.
spans: Vec<CitationSpan>Spans of generated text annotated with the sources that support them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Citations
impl<'de> Deserialize<'de> for Citations
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 Citations
impl RefUnwindSafe for Citations
impl Send for Citations
impl Sync for Citations
impl Unpin for Citations
impl UnsafeUnpin for Citations
impl UnwindSafe for Citations
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