pub struct CitableSource {
pub content: String,
pub id: String,
pub path: Option<String>,
pub title: Option<String>,
pub url: Option<String>,
}Expand description
A source supplied by a tool that should be made available to the model as citable content.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§content: StringThe source text made available to the model as citable content.
id: StringStable identifier for this source within the tool result. Used for deduplication and may be used by future provider integrations to correlate response citations back to the originating source.
path: Option<String>File path relative to the agent’s workspace root, when the source is a file.
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 CitableSource
impl Clone for CitableSource
Source§fn clone(&self) -> CitableSource
fn clone(&self) -> CitableSource
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 CitableSource
impl Debug for CitableSource
Source§impl Default for CitableSource
impl Default for CitableSource
Source§fn default() -> CitableSource
fn default() -> CitableSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CitableSource
impl<'de> Deserialize<'de> for CitableSource
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 CitableSource
impl RefUnwindSafe for CitableSource
impl Send for CitableSource
impl Sync for CitableSource
impl Unpin for CitableSource
impl UnsafeUnpin for CitableSource
impl UnwindSafe for CitableSource
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