pub enum SystemParam {
String(String),
Blocks(Vec<TextBlockParam>),
}Expand description
System prompt parameter
Can be either a simple string or an array of text blocks with cache control.
Variants§
String(String)
Simple string system prompt
Blocks(Vec<TextBlockParam>)
Array of text blocks with optional cache control
Trait Implementations§
Source§impl Clone for SystemParam
impl Clone for SystemParam
Source§fn clone(&self) -> SystemParam
fn clone(&self) -> SystemParam
Returns a duplicate of the value. Read more
1.0.0 · 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 SystemParam
impl Debug for SystemParam
Source§impl<'de> Deserialize<'de> for SystemParam
impl<'de> Deserialize<'de> for SystemParam
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
Source§impl From<&str> for SystemParam
impl From<&str> for SystemParam
Source§impl From<String> for SystemParam
impl From<String> for SystemParam
Source§impl PartialEq for SystemParam
impl PartialEq for SystemParam
Source§impl Serialize for SystemParam
impl Serialize for SystemParam
impl Eq for SystemParam
impl StructuralPartialEq for SystemParam
Auto Trait Implementations§
impl Freeze for SystemParam
impl RefUnwindSafe for SystemParam
impl Send for SystemParam
impl Sync for SystemParam
impl Unpin for SystemParam
impl UnwindSafe for SystemParam
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