pub enum ResponseInput {
String(String),
Array(Vec<ResponseInputItem>),
}Expand description
Text, image, or file inputs to the model. Either a single text prompt or a list of input items representing a (possibly batched) conversation.
JSON schema
{
"description": "Text, image, or file inputs to the model. Either a single text prompt or a list of input items representing a (possibly batched) conversation.\n",
"oneOf": [
{
"description": "A text input to the model, equivalent to a user message.",
"type": "string"
},
{
"description": "A list of input items.",
"type": "array",
"items": {
"$ref": "#/definitions/ResponseInputItem"
}
}
]
}Variants§
String(String)
Array(Vec<ResponseInputItem>)
Trait Implementations§
Source§impl Clone for ResponseInput
impl Clone for ResponseInput
Source§fn clone(&self) -> ResponseInput
fn clone(&self) -> ResponseInput
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 ResponseInput
impl Debug for ResponseInput
Source§impl<'de> Deserialize<'de> for ResponseInput
impl<'de> Deserialize<'de> for ResponseInput
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<ResponseInputItem>> for ResponseInput
impl From<Vec<ResponseInputItem>> for ResponseInput
Source§fn from(value: Vec<ResponseInputItem>) -> Self
fn from(value: Vec<ResponseInputItem>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseInput
impl RefUnwindSafe for ResponseInput
impl Send for ResponseInput
impl Sync for ResponseInput
impl Unpin for ResponseInput
impl UnsafeUnpin for ResponseInput
impl UnwindSafe for ResponseInput
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