pub enum ResponseInstructions {
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 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 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Source§impl PartialEq for ResponseInstructions
impl PartialEq for ResponseInstructions
Source§impl Serialize for ResponseInstructions
impl Serialize for ResponseInstructions
impl StructuralPartialEq for ResponseInstructions
Auto Trait Implementations§
impl Freeze for ResponseInstructions
impl RefUnwindSafe for ResponseInstructions
impl Send for ResponseInstructions
impl Sync for ResponseInstructions
impl Unpin 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