pub enum CitationProvider {
Anthropic,
Openai,
Client,
Unknown,
}Expand description
The system that produced a citation.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Anthropic
Citation produced by an Anthropic (Claude) model response.
Openai
Citation produced by an OpenAI model response.
Client
Citation synthesized client-side by the runtime from tool output.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for CitationProvider
impl Clone for CitationProvider
Source§fn clone(&self) -> CitationProvider
fn clone(&self) -> CitationProvider
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 CitationProvider
impl Debug for CitationProvider
Source§impl Default for CitationProvider
impl Default for CitationProvider
Source§fn default() -> CitationProvider
fn default() -> CitationProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CitationProvider
impl<'de> Deserialize<'de> for CitationProvider
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
impl Eq for CitationProvider
Source§impl PartialEq for CitationProvider
impl PartialEq for CitationProvider
Source§fn eq(&self, other: &CitationProvider) -> bool
fn eq(&self, other: &CitationProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CitationProvider
impl Serialize for CitationProvider
impl StructuralPartialEq for CitationProvider
Auto Trait Implementations§
impl Freeze for CitationProvider
impl RefUnwindSafe for CitationProvider
impl Send for CitationProvider
impl Sync for CitationProvider
impl Unpin for CitationProvider
impl UnsafeUnpin for CitationProvider
impl UnwindSafe for CitationProvider
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