pub enum ResponseInstructions {
String(String),
InputItemList(Vec<InputItem>),
}Expand description
A system (or developer) message inserted into the model’s context.
When using along with previous_response_id, the instructions from a previous
response will not be carried over to the next response. This makes it simple
to swap out system (or developer) messages in new responses.
JSON schema
{
"description": "A system (or developer) message inserted into the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
"oneOf": [
{
"description": "A text input to the model, equivalent to a text input with the\n`developer` role.\n",
"type": "string"
},
{
"title": "Input item list",
"description": "A list of one or many input items to the model, containing\ndifferent content types.\n",
"type": "array",
"items": {
"$ref": "#/components/schemas/InputItem"
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ResponseInstructions
impl Clone for ResponseInstructions
Source§fn clone(&self) -> ResponseInstructions
fn clone(&self) -> ResponseInstructions
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 ResponseInstructions
impl Debug for ResponseInstructions
Source§impl<'de> Deserialize<'de> for ResponseInstructions
impl<'de> Deserialize<'de> for ResponseInstructions
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 ResponseInstructions
impl RefUnwindSafe for ResponseInstructions
impl Send for ResponseInstructions
impl Sync for ResponseInstructions
impl Unpin for ResponseInstructions
impl UnsafeUnpin for ResponseInstructions
impl UnwindSafe for ResponseInstructions
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