Class SessionCreateResponse
- 
                    
                    - All Implemented Interfaces:
 
 public final class SessionCreateResponseA new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classSessionCreateResponse.BuilderA builder for SessionCreateResponse. public final classSessionCreateResponse.ClientSecretEphemeral key returned by the API. public final classSessionCreateResponse.InputAudioTranscriptionConfiguration for input audio transcription, defaults to off and can be set to nullto turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously and should be treated as rough guidance rather than the representation understood by the model.public final classSessionCreateResponse.MaxResponseOutputTokensMaximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or inffor the maximum available tokens for a given model. Defaults toinf.public final classSessionCreateResponse.Modalitypublic final classSessionCreateResponse.Toolpublic final classSessionCreateResponse.TracingConfiguration options for tracing. Set to null to disable tracing. Once tracing is enabled for a session, the configuration cannot be modified. autowill create a trace for the session with default values for the workflow name, group id, and metadata.public final classSessionCreateResponse.TurnDetectionConfiguration for turn detection. Can be set to nullto turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.public final classSessionCreateResponse.VoiceThe voice the model uses to respond. Voice cannot be changed during the session once the model has responded with audio at least once. Current voice options are alloy,ash,ballad,coral,echo,sage,shimmer, andverse.
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final SessionCreateResponse.ClientSecretclientSecret()Ephemeral key returned by the API. final Optional<String>inputAudioFormat()The format of input audio. final Optional<SessionCreateResponse.InputAudioTranscription>inputAudioTranscription()Configuration for input audio transcription, defaults to off and can be set to nullto turn off once on.final Optional<String>instructions()The default system instructions (i.e. final Optional<SessionCreateResponse.MaxResponseOutputTokens>maxResponseOutputTokens()Maximum number of output tokens for a single assistant response, inclusive of tool calls. final Optional<List<SessionCreateResponse.Modality>>modalities()The set of modalities the model can respond with. final Optional<String>outputAudioFormat()The format of output audio. final Optional<Double>speed()The speed of the model's spoken response. final Optional<Double>temperature()Sampling temperature for the model, limited to 0.6, 1. final Optional<String>toolChoice()How the model chooses tools. final Optional<List<SessionCreateResponse.Tool>>tools()Tools (functions) available to the model. final Optional<SessionCreateResponse.Tracing>tracing()Configuration options for tracing. final Optional<SessionCreateResponse.TurnDetection>turnDetection()Configuration for turn detection. final Optional<SessionCreateResponse.Voice>voice()The voice the model uses to respond. final JsonField<SessionCreateResponse.ClientSecret>_clientSecret()Returns the raw JSON value of clientSecret. final JsonField<String>_inputAudioFormat()Returns the raw JSON value of inputAudioFormat. final JsonField<SessionCreateResponse.InputAudioTranscription>_inputAudioTranscription()Returns the raw JSON value of inputAudioTranscription. final JsonField<String>_instructions()Returns the raw JSON value of instructions. final JsonField<SessionCreateResponse.MaxResponseOutputTokens>_maxResponseOutputTokens()Returns the raw JSON value of maxResponseOutputTokens. final JsonField<List<SessionCreateResponse.Modality>>_modalities()Returns the raw JSON value of modalities. final JsonField<String>_outputAudioFormat()Returns the raw JSON value of outputAudioFormat. final JsonField<Double>_speed()Returns the raw JSON value of speed. final JsonField<Double>_temperature()Returns the raw JSON value of temperature. final JsonField<String>_toolChoice()Returns the raw JSON value of toolChoice. final JsonField<List<SessionCreateResponse.Tool>>_tools()Returns the raw JSON value of tools. final JsonField<SessionCreateResponse.Tracing>_tracing()Returns the raw JSON value of tracing. final JsonField<SessionCreateResponse.TurnDetection>_turnDetection()Returns the raw JSON value of turnDetection. final JsonField<SessionCreateResponse.Voice>_voice()Returns the raw JSON value of voice. final Map<String, JsonValue>_additionalProperties()final SessionCreateResponse.BuildertoBuilder()final SessionCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of SessionCreateResponse. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        clientSecretfinal SessionCreateResponse.ClientSecret clientSecret() Ephemeral key returned by the API. 
 - 
                                        inputAudioFormatfinal Optional<String> inputAudioFormat() The format of input audio. Options are pcm16,g711_ulaw, org711_alaw.
 - 
                                        inputAudioTranscriptionfinal Optional<SessionCreateResponse.InputAudioTranscription> inputAudioTranscription() Configuration for input audio transcription, defaults to off and can be set to nullto turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously and should be treated as rough guidance rather than the representation understood by the model.
 - 
                                        instructionsfinal Optional<String> instructions() The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior. Note that the server sets default instructions which will be used if this field is not set and are visible in the session.createdevent at the start of the session.
 - 
                                        maxResponseOutputTokensfinal Optional<SessionCreateResponse.MaxResponseOutputTokens> maxResponseOutputTokens() Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or inffor the maximum available tokens for a given model. Defaults toinf.
 - 
                                        modalitiesfinal Optional<List<SessionCreateResponse.Modality>> modalities() The set of modalities the model can respond with. To disable audio, set this to "text". 
 - 
                                        outputAudioFormatfinal Optional<String> outputAudioFormat() The format of output audio. Options are pcm16,g711_ulaw, org711_alaw.
 - 
                                        speedfinal Optional<Double> speed() The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress. 
 - 
                                        temperaturefinal Optional<Double> temperature() Sampling temperature for the model, limited to 0.6, 1.2. Defaults to 0.8. 
 - 
                                        toolChoicefinal Optional<String> toolChoice() How the model chooses tools. Options are auto,none,required, or specify a function.
 - 
                                        toolsfinal Optional<List<SessionCreateResponse.Tool>> tools() Tools (functions) available to the model. 
 - 
                                        tracingfinal Optional<SessionCreateResponse.Tracing> tracing() Configuration options for tracing. Set to null to disable tracing. Once tracing is enabled for a session, the configuration cannot be modified. autowill create a trace for the session with default values for the workflow name, group id, and metadata.
 - 
                                        turnDetectionfinal Optional<SessionCreateResponse.TurnDetection> turnDetection() Configuration for turn detection. Can be set to nullto turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
 - 
                                        voicefinal Optional<SessionCreateResponse.Voice> voice() The voice the model uses to respond. Voice cannot be changed during the session once the model has responded with audio at least once. Current voice options are alloy,ash,ballad,coral,echo,sage,shimmer, andverse.
 - 
                                        _clientSecretfinal JsonField<SessionCreateResponse.ClientSecret> _clientSecret() Returns the raw JSON value of clientSecret. Unlike clientSecret, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputAudioFormatfinal JsonField<String> _inputAudioFormat() Returns the raw JSON value of inputAudioFormat. Unlike inputAudioFormat, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputAudioTranscriptionfinal JsonField<SessionCreateResponse.InputAudioTranscription> _inputAudioTranscription() Returns the raw JSON value of inputAudioTranscription. Unlike inputAudioTranscription, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _instructionsfinal JsonField<String> _instructions() Returns the raw JSON value of instructions. Unlike instructions, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _maxResponseOutputTokensfinal JsonField<SessionCreateResponse.MaxResponseOutputTokens> _maxResponseOutputTokens() Returns the raw JSON value of maxResponseOutputTokens. Unlike maxResponseOutputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _modalitiesfinal JsonField<List<SessionCreateResponse.Modality>> _modalities() Returns the raw JSON value of modalities. Unlike modalities, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputAudioFormatfinal JsonField<String> _outputAudioFormat() Returns the raw JSON value of outputAudioFormat. Unlike outputAudioFormat, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _speedfinal JsonField<Double> _speed() Returns the raw JSON value of speed. Unlike speed, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _temperaturefinal JsonField<Double> _temperature() Returns the raw JSON value of temperature. Unlike temperature, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _toolChoicefinal JsonField<String> _toolChoice() Returns the raw JSON value of toolChoice. Unlike toolChoice, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _toolsfinal JsonField<List<SessionCreateResponse.Tool>> _tools() Returns the raw JSON value of tools. Unlike tools, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _tracingfinal JsonField<SessionCreateResponse.Tracing> _tracing() Returns the raw JSON value of tracing. Unlike tracing, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _turnDetectionfinal JsonField<SessionCreateResponse.TurnDetection> _turnDetection() Returns the raw JSON value of turnDetection. Unlike turnDetection, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _voicefinal JsonField<SessionCreateResponse.Voice> _voice() Returns the raw JSON value of voice. Unlike voice, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal SessionCreateResponse.Builder toBuilder() 
 - 
                                        validatefinal SessionCreateResponse validate() 
 - 
                                        builderfinal static SessionCreateResponse.Builder builder() Returns a mutable builder for constructing an instance of SessionCreateResponse. The following fields are required: .clientSecret()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-