pub enum Instructions {
    String(String),
    Array(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.
Variants§
String(String)
A text input to the model, equivalent to a text input with the
developer role.
Array(Vec<InputItem>)
A list of one or many input items to the model, containing different content types.
Trait Implementations§
Source§impl Clone for Instructions
 
impl Clone for Instructions
Source§fn clone(&self) -> Instructions
 
fn clone(&self) -> Instructions
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 Instructions
 
impl Debug for Instructions
Source§impl<'de> Deserialize<'de> for Instructions
 
impl<'de> Deserialize<'de> for Instructions
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 PartialEq for Instructions
 
impl PartialEq for Instructions
Source§impl Serialize for Instructions
 
impl Serialize for Instructions
impl StructuralPartialEq for Instructions
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
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