pub struct CitationSource {
pub id: String,
pub path: Option<String>,
pub provider: CitationProvider,
pub title: Option<String>,
pub url: Option<String>,
}Expand description
A source that backs one or more cited spans in the assistant’s response.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§id: StringStable, turn-scoped identifier for this source, referenced by CitationReference.sourceId.
path: Option<String>File path relative to the agent’s workspace root, when the source is a file.
provider: CitationProviderThe system that produced this citation.
title: Option<String>Human-readable title of the source.
url: Option<String>URL of the source, when it is a web resource.
Trait Implementations§
Source§impl Clone for CitationSource
impl Clone for CitationSource
Source§fn clone(&self) -> CitationSource
fn clone(&self) -> CitationSource
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 CitationSource
impl Debug for CitationSource
Source§impl Default for CitationSource
impl Default for CitationSource
Source§fn default() -> CitationSource
fn default() -> CitationSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CitationSource
impl<'de> Deserialize<'de> for CitationSource
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 CitationSource
impl RefUnwindSafe for CitationSource
impl Send for CitationSource
impl Sync for CitationSource
impl Unpin for CitationSource
impl UnsafeUnpin for CitationSource
impl UnwindSafe for CitationSource
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