pub enum CreateMessagesRequestSystem {
String(String),
Array(Vec<MessagesTextBlock>),
}Expand description
The system prompt. Can be a string or an array of system content blocks (for prompt caching).
JSON schema
{
"description": "The system prompt. Can be a string or an array of system content\nblocks (for prompt caching).\n",
"oneOf": [
{
"description": "System prompt as a string.",
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/MessagesTextBlock"
}
}
]
}Variants§
String(String)
Array(Vec<MessagesTextBlock>)
Trait Implementations§
Source§impl Clone for CreateMessagesRequestSystem
impl Clone for CreateMessagesRequestSystem
Source§fn clone(&self) -> CreateMessagesRequestSystem
fn clone(&self) -> CreateMessagesRequestSystem
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 CreateMessagesRequestSystem
impl Debug for CreateMessagesRequestSystem
Source§impl<'de> Deserialize<'de> for CreateMessagesRequestSystem
impl<'de> Deserialize<'de> for CreateMessagesRequestSystem
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<Vec<MessagesTextBlock>> for CreateMessagesRequestSystem
impl From<Vec<MessagesTextBlock>> for CreateMessagesRequestSystem
Source§fn from(value: Vec<MessagesTextBlock>) -> Self
fn from(value: Vec<MessagesTextBlock>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateMessagesRequestSystem
impl RefUnwindSafe for CreateMessagesRequestSystem
impl Send for CreateMessagesRequestSystem
impl Sync for CreateMessagesRequestSystem
impl Unpin for CreateMessagesRequestSystem
impl UnsafeUnpin for CreateMessagesRequestSystem
impl UnwindSafe for CreateMessagesRequestSystem
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