pub struct RealtimeSessionCreateResponse {
pub client_secret: RealtimeSessionCreateResponse_ClientSecret,
pub modalities: Option<Vec<String>>,
pub instructions: Option<String>,
pub voice: Option<VoiceIdsShared>,
pub input_audio_format: Option<String>,
pub output_audio_format: Option<String>,
pub input_audio_transcription: Option<RealtimeSessionCreateResponse_InputAudioTranscription>,
pub turn_detection: Option<RealtimeSessionCreateResponse_TurnDetection>,
pub tools: Option<Vec<RealtimeSessionCreateResponse_Tools>>,
pub tool_choice: Option<String>,
pub temperature: Option<f64>,
pub max_response_output_tokens: Option<RealtimeSessionCreateResponse_MaxResponseOutputTokens>,
}
Expand description
A new Realtime session configuration, with an ephermeral key.
Fields§
§client_secret: RealtimeSessionCreateResponse_ClientSecret
§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.
input_audio_format: Option<String>
The format of input audio.
output_audio_format: Option<String>
The format of output audio.
input_audio_transcription: Option<RealtimeSessionCreateResponse_InputAudioTranscription>
§turn_detection: Option<RealtimeSessionCreateResponse_TurnDetection>
§tools: Option<Vec<RealtimeSessionCreateResponse_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<RealtimeSessionCreateResponse_MaxResponseOutputTokens>
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateResponse
impl Clone for RealtimeSessionCreateResponse
Source§fn clone(&self) -> RealtimeSessionCreateResponse
fn clone(&self) -> RealtimeSessionCreateResponse
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 RealtimeSessionCreateResponse
impl RefUnwindSafe for RealtimeSessionCreateResponse
impl Send for RealtimeSessionCreateResponse
impl Sync for RealtimeSessionCreateResponse
impl Unpin for RealtimeSessionCreateResponse
impl UnwindSafe for RealtimeSessionCreateResponse
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