pub struct CitationSpan {
pub end_index: i64,
pub references: Vec<CitationReference>,
pub start_index: i64,
}Expand description
A contiguous span of generated assistant text and the source references that support it.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§end_index: i64End offset of the cited span within the final assistant message content (UTF-16 code units, zero-based, exclusive).
references: Vec<CitationReference>The sources that support this span of generated text.
start_index: i64Start offset of the cited span within the final assistant message content (UTF-16 code units, zero-based, inclusive).
Trait Implementations§
Source§impl Clone for CitationSpan
impl Clone for CitationSpan
Source§fn clone(&self) -> CitationSpan
fn clone(&self) -> CitationSpan
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 CitationSpan
impl Debug for CitationSpan
Source§impl Default for CitationSpan
impl Default for CitationSpan
Source§fn default() -> CitationSpan
fn default() -> CitationSpan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CitationSpan
impl<'de> Deserialize<'de> for CitationSpan
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 CitationSpan
impl RefUnwindSafe for CitationSpan
impl Send for CitationSpan
impl Sync for CitationSpan
impl Unpin for CitationSpan
impl UnsafeUnpin for CitationSpan
impl UnwindSafe for CitationSpan
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