pub struct RealtimeResponse {Show 13 fields
pub id: Option<String>,
pub object: Option<String>,
pub status: Option<String>,
pub status_details: Option<RealtimeResponse_StatusDetails>,
pub output: Option<Vec<RealtimeConversationItem>>,
pub metadata: Option<Metadata>,
pub usage: Option<RealtimeResponse_Usage>,
pub conversation_id: Option<String>,
pub voice: Option<VoiceIdsShared>,
pub modalities: Option<Vec<String>>,
pub output_audio_format: Option<String>,
pub temperature: Option<f64>,
pub max_output_tokens: Option<RealtimeResponse_MaxOutputTokens>,
}
Expand description
The response resource.
Fields§
§id: Option<String>
The unique ID of the response.
object: Option<String>
The object type, must be realtime.response
.
status: Option<String>
The final status of the response (completed
, cancelled
, failed
, or
incomplete
).
status_details: Option<RealtimeResponse_StatusDetails>
§output: Option<Vec<RealtimeConversationItem>>
The list of output items generated by the response.
metadata: Option<Metadata>
§usage: Option<RealtimeResponse_Usage>
§conversation_id: Option<String>
Which conversation the response is added to, determined by the
conversation
field in the response.create
event.
voice: Option<VoiceIdsShared>
The voice the model used to respond.
modalities: Option<Vec<String>>
The set of modalities the model used to respond.
output_audio_format: Option<String>
The format of output audio.
temperature: Option<f64>
Sampling temperature for the model, limited to [0.6, 1.2].
max_output_tokens: Option<RealtimeResponse_MaxOutputTokens>
Trait Implementations§
Source§impl Clone for RealtimeResponse
impl Clone for RealtimeResponse
Source§fn clone(&self) -> RealtimeResponse
fn clone(&self) -> RealtimeResponse
Returns a copy 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 RealtimeResponse
impl Debug for RealtimeResponse
Source§impl Default for RealtimeResponse
impl Default for RealtimeResponse
Source§fn default() -> RealtimeResponse
fn default() -> RealtimeResponse
Returns the “default value” for a type. 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 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