pub enum AnthropicSystem {
Text(String),
Blocks(Vec<ContentBlock>),
}Expand description
System prompt: either a plain string or an array of content blocks.
Variants§
Text(String)
Blocks(Vec<ContentBlock>)
Trait Implementations§
Source§impl Clone for AnthropicSystem
impl Clone for AnthropicSystem
Source§fn clone(&self) -> AnthropicSystem
fn clone(&self) -> AnthropicSystem
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 AnthropicSystem
impl Debug for AnthropicSystem
Source§impl<'de> Deserialize<'de> for AnthropicSystem
impl<'de> Deserialize<'de> for AnthropicSystem
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 AnthropicSystem
impl RefUnwindSafe for AnthropicSystem
impl Send for AnthropicSystem
impl Sync for AnthropicSystem
impl Unpin for AnthropicSystem
impl UnsafeUnpin for AnthropicSystem
impl UnwindSafe for AnthropicSystem
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