pub struct RealtimeResponse {
pub id: Option<String>,
pub audio: Option<Audio>,
pub conversation_id: Option<String>,
pub max_output_tokens: Option<String>,
pub metadata: Option<Value>,
pub object: Option<String>,
pub output: Option<Vec<ConversationItem>>,
pub output_modalities: Option<Vec<Value>>,
pub status: Option<RealtimeResponseStatus>,
pub status_details: Option<RealtimeResponseStatus>,
pub usage: Option<RealtimeResponseUsage>,
}Expand description
The response resource.
Fields§
§id: Option<String>The unique ID of the response, will look like resp_1234.
audio: Option<Audio>Configuration for audio output.
conversation_id: Option<String>Which conversation the response is added to, determined by the conversation
max_output_tokens: Option<String>Maximum number of output tokens for a single assistant response, inclusive of
metadata: Option<Value>Set of 16 key-value pairs that can be attached to an object.
object: Option<String>The object type, must be realtime.response.
output: Option<Vec<ConversationItem>>The list of output items generated by the response.
output_modalities: Option<Vec<Value>>The set of modalities the model used to respond, currently the only possible
status: Option<RealtimeResponseStatus>The final status of the response (completed, cancelled, failed, or
status_details: Option<RealtimeResponseStatus>Additional details about the status.
usage: Option<RealtimeResponseUsage>Usage statistics for the Response, this will correspond to billing.
Trait Implementations§
Source§impl Clone for RealtimeResponse
impl Clone for RealtimeResponse
Source§fn clone(&self) -> RealtimeResponse
fn clone(&self) -> RealtimeResponse
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 RealtimeResponse
impl Debug for RealtimeResponse
Source§impl<'de> Deserialize<'de> for RealtimeResponse
impl<'de> Deserialize<'de> for RealtimeResponse
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 RealtimeResponse
impl RefUnwindSafe for RealtimeResponse
impl Send for RealtimeResponse
impl Sync for RealtimeResponse
impl Unpin for RealtimeResponse
impl UnsafeUnpin for RealtimeResponse
impl UnwindSafe for RealtimeResponse
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