pub struct RealtimeResponse {Show 13 fields
pub id: String,
pub object: String,
pub status: String,
pub status_details: RealtimeResponse_StatusDetails,
pub output: Vec<RealtimeConversationItem>,
pub metadata: Option<Metadata>,
pub usage: RealtimeResponse_Usage,
pub conversation_id: String,
pub voice: VoiceIdsShared,
pub modalities: Vec<String>,
pub output_audio_format: String,
pub temperature: f64,
pub max_output_tokens: RealtimeResponse_MaxOutputTokens,
}Expand description
The response resource.
Fields§
§id: StringThe unique ID of the response.
object: StringThe object type, must be realtime.response.
status: StringThe final status of the response (completed, cancelled, failed, or
incomplete).
status_details: RealtimeResponse_StatusDetails§output: Vec<RealtimeConversationItem>The list of output items generated by the response.
metadata: Option<Metadata>§usage: RealtimeResponse_Usage§conversation_id: StringWhich conversation the response is added to, determined by the
conversation field in the response.create event.
voice: VoiceIdsSharedThe voice the model used to respond.
modalities: Vec<String>The set of modalities the model used to respond.
output_audio_format: StringThe format of output audio.
temperature: f64Sampling temperature for the model, limited to [0.6, 1.2].
max_output_tokens: RealtimeResponse_MaxOutputTokensTrait 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 moreAuto 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