pub struct RealtimeResponseCreateParams {
    pub modalities: Vec<String>,
    pub instructions: String,
    pub voice: VoiceIdsShared,
    pub output_audio_format: String,
    pub tools: Vec<RealtimeResponseCreateParams_Tools>,
    pub tool_choice: String,
    pub temperature: f64,
    pub max_response_output_tokens: RealtimeResponseCreateParams_MaxResponseOutputTokens,
    pub conversation: RealtimeResponseCreateParams_Conversation,
    pub metadata: Option<Metadata>,
    pub input: Vec<RealtimeConversationItemWithReference>,
}Expand description
Create a new Realtime response with these parameters
Fields§
§modalities: Vec<String>The set of modalities the model can respond with.
instructions: StringThe default system instructions (i.e.
voice: VoiceIdsSharedThe voice the model uses to respond.
output_audio_format: StringThe format of output audio.
tools: Vec<RealtimeResponseCreateParams_Tools>Tools (functions) available to the model.
tool_choice: StringHow the model chooses tools.
temperature: f64Sampling temperature for the model, limited to [0.6, 1.2].
max_response_output_tokens: RealtimeResponseCreateParams_MaxResponseOutputTokens§conversation: RealtimeResponseCreateParams_Conversation§metadata: Option<Metadata>§input: Vec<RealtimeConversationItemWithReference>Input items to include in the prompt for the model.
Trait Implementations§
Source§impl Clone for RealtimeResponseCreateParams
 
impl Clone for RealtimeResponseCreateParams
Source§fn clone(&self) -> RealtimeResponseCreateParams
 
fn clone(&self) -> RealtimeResponseCreateParams
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 RealtimeResponseCreateParams
impl RefUnwindSafe for RealtimeResponseCreateParams
impl Send for RealtimeResponseCreateParams
impl Sync for RealtimeResponseCreateParams
impl Unpin for RealtimeResponseCreateParams
impl UnwindSafe for RealtimeResponseCreateParams
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