pub struct RealtimeResponseCreateParams {
pub modalities: Option<Vec<String>>,
pub instructions: Option<String>,
pub voice: Option<VoiceIdsShared>,
pub output_audio_format: Option<String>,
pub tools: Option<Vec<RealtimeResponseCreateParams_Tools>>,
pub tool_choice: Option<String>,
pub temperature: Option<f64>,
pub max_response_output_tokens: Option<RealtimeResponseCreateParams_MaxResponseOutputTokens>,
pub conversation: Option<RealtimeResponseCreateParams_Conversation>,
pub metadata: Option<Metadata>,
pub input: Option<Vec<RealtimeConversationItemWithReference>>,
}
Expand description
Create a new Realtime response with these parameters
Fields§
§modalities: Option<Vec<String>>
The set of modalities the model can respond with.
instructions: Option<String>
The default system instructions (i.e.
voice: Option<VoiceIdsShared>
The voice the model uses to respond.
output_audio_format: Option<String>
The format of output audio.
tools: Option<Vec<RealtimeResponseCreateParams_Tools>>
Tools (functions) available to the model.
tool_choice: Option<String>
How the model chooses tools.
temperature: Option<f64>
Sampling temperature for the model, limited to [0.6, 1.2].
max_response_output_tokens: Option<RealtimeResponseCreateParams_MaxResponseOutputTokens>
§conversation: Option<RealtimeResponseCreateParams_Conversation>
§metadata: Option<Metadata>
§input: Option<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 moreSource§impl Debug for RealtimeResponseCreateParams
impl Debug for RealtimeResponseCreateParams
Source§impl Default for RealtimeResponseCreateParams
impl Default for RealtimeResponseCreateParams
Source§fn default() -> RealtimeResponseCreateParams
fn default() -> RealtimeResponseCreateParams
Returns the “default value” for a type. Read more
Auto 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