Class ResponseCreateEvent.Response
- 
                    
                    - All Implemented Interfaces:
 
 public final class ResponseCreateEvent.ResponseCreate a new Realtime response with these parameters 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classResponseCreateEvent.Response.BuilderA builder for Response. public final classResponseCreateEvent.Response.ConversationControls which conversation the response is added to. Currently supports autoandnone, withautoas the default value. Theautovalue means that the contents of the response will be added to the default conversation. Set this tononeto create an out-of-band response which will not add items to default conversation.public final classResponseCreateEvent.Response.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 classResponseCreateEvent.Response.MetadataSet of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters. public final classResponseCreateEvent.Response.Modalitypublic final classResponseCreateEvent.Response.OutputAudioFormatThe format of output audio. Options are pcm16,g711_ulaw, org711_alaw.public final classResponseCreateEvent.Response.Toolpublic final classResponseCreateEvent.Response.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 Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        conversationfinal Optional<ResponseCreateEvent.Response.Conversation> conversation() Controls which conversation the response is added to. Currently supports autoandnone, withautoas the default value. Theautovalue means that the contents of the response will be added to the default conversation. Set this tononeto create an out-of-band response which will not add items to default conversation.
 - 
                                        inputfinal Optional<List<ConversationItemWithReference>> input() Input items to include in the prompt for the model. Using this field creates a new context for this Response instead of using the default conversation. An empty array []will clear the context for this Response. Note that this can include references to items from the default conversation.
 - 
                                        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<ResponseCreateEvent.Response.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.
 - 
                                        metadatafinal Optional<ResponseCreateEvent.Response.Metadata> metadata() Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters. 
 - 
                                        modalitiesfinal Optional<List<ResponseCreateEvent.Response.Modality>> modalities() The set of modalities the model can respond with. To disable audio, set this to "text". 
 - 
                                        outputAudioFormatfinal Optional<ResponseCreateEvent.Response.OutputAudioFormat> outputAudioFormat() The format of output audio. Options are pcm16,g711_ulaw, org711_alaw.
 - 
                                        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, like{"type": "function", "function": {"name": "my_function"}}.
 - 
                                        toolsfinal Optional<List<ResponseCreateEvent.Response.Tool>> tools() Tools (functions) available to the model. 
 - 
                                        voicefinal Optional<ResponseCreateEvent.Response.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.
 - 
                                        _conversationfinal JsonField<ResponseCreateEvent.Response.Conversation> _conversation() Returns the raw JSON value of conversation. Unlike conversation, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputfinal JsonField<List<ConversationItemWithReference>> _input() Returns the raw JSON value of input. Unlike input, 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<ResponseCreateEvent.Response.MaxResponseOutputTokens> _maxResponseOutputTokens() Returns the raw JSON value of maxResponseOutputTokens. Unlike maxResponseOutputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _metadatafinal JsonField<ResponseCreateEvent.Response.Metadata> _metadata() Returns the raw JSON value of metadata. Unlike metadata, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _modalitiesfinal JsonField<List<ResponseCreateEvent.Response.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<ResponseCreateEvent.Response.OutputAudioFormat> _outputAudioFormat() Returns the raw JSON value of outputAudioFormat. Unlike outputAudioFormat, 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<ResponseCreateEvent.Response.Tool>> _tools() Returns the raw JSON value of tools. Unlike tools, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _voicefinal JsonField<ResponseCreateEvent.Response.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 ResponseCreateEvent.Response.Builder toBuilder() 
 - 
                                        validatefinal ResponseCreateEvent.Response validate() 
 - 
                                        builderfinal static ResponseCreateEvent.Response.Builder builder() Returns a mutable builder for constructing an instance of Response. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-