Class RealtimeResponseCreateParams.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class RealtimeResponseCreateParams.BuilderA builder for RealtimeResponseCreateParams. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        audiofinal RealtimeResponseCreateParams.Builder audio(RealtimeResponseCreateAudioOutput audio) Configuration for audio input and output. 
 - 
                                        audiofinal RealtimeResponseCreateParams.Builder audio(JsonField<RealtimeResponseCreateAudioOutput> audio) Sets Builder.audio to an arbitrary JSON value. You should usually call Builder.audio with a well-typed RealtimeResponseCreateAudioOutput value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        conversationfinal RealtimeResponseCreateParams.Builder conversation(RealtimeResponseCreateParams.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.
 - 
                                        conversationfinal RealtimeResponseCreateParams.Builder conversation(JsonField<RealtimeResponseCreateParams.Conversation> conversation) Sets Builder.conversation to an arbitrary JSON value. You should usually call Builder.conversation with a well-typed Conversation value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        conversationfinal RealtimeResponseCreateParams.Builder conversation(String value) Sets conversation to an arbitrary String. You should usually call conversation with a well-typed Conversation constant instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        inputfinal RealtimeResponseCreateParams.Builder input(List<ConversationItem> 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 that previously appeared in the session using their id.
 - 
                                        inputfinal RealtimeResponseCreateParams.Builder input(JsonField<List<ConversationItem>> input) Sets Builder.input to an arbitrary JSON value. You should usually call Builder.input with a well-typed List<ConversationItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(ConversationItem input) Adds a single ConversationItem to Builder.input. 
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeConversationItemSystemMessage realtimeConversationItemSystemMessage) Alias for calling addInput with ConversationItem.ofRealtimeConversationItemSystemMessage(realtimeConversationItemSystemMessage).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeConversationItemUserMessage realtimeConversationItemUserMessage) Alias for calling addInput with ConversationItem.ofRealtimeConversationItemUserMessage(realtimeConversationItemUserMessage).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeConversationItemAssistantMessage realtimeConversationItemAssistantMessage) Alias for calling addInput with ConversationItem.ofRealtimeConversationItemAssistantMessage(realtimeConversationItemAssistantMessage).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeConversationItemFunctionCall functionCall) Alias for calling addInput with ConversationItem.ofFunctionCall(functionCall).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeConversationItemFunctionCallOutput functionCallOutput) Alias for calling addInput with ConversationItem.ofFunctionCallOutput(functionCallOutput).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeMcpApprovalResponse mcpApprovalResponse) Alias for calling addInput with ConversationItem.ofMcpApprovalResponse(mcpApprovalResponse).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeMcpListTools mcpListTools) Alias for calling addInput with ConversationItem.ofMcpListTools(mcpListTools).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeMcpToolCall mcpCall) Alias for calling addInput with ConversationItem.ofMcpCall(mcpCall).
 - 
                                        addInputfinal RealtimeResponseCreateParams.Builder addInput(RealtimeMcpApprovalRequest mcpApprovalRequest) Alias for calling addInput with ConversationItem.ofMcpApprovalRequest(mcpApprovalRequest).
 - 
                                        addRealtimeConversationItemSystemMessageInputfinal RealtimeResponseCreateParams.Builder addRealtimeConversationItemSystemMessageInput(List<RealtimeConversationItemSystemMessage.Content> content) Alias for calling addInput with the following: RealtimeConversationItemSystemMessage.builder() .content(content) .build()
 - 
                                        addRealtimeConversationItemUserMessageInputfinal RealtimeResponseCreateParams.Builder addRealtimeConversationItemUserMessageInput(List<RealtimeConversationItemUserMessage.Content> content) Alias for calling addInput with the following: RealtimeConversationItemUserMessage.builder() .content(content) .build()
 - 
                                        addRealtimeConversationItemAssistantMessageInputfinal RealtimeResponseCreateParams.Builder addRealtimeConversationItemAssistantMessageInput(List<RealtimeConversationItemAssistantMessage.Content> content) Alias for calling addInput with the following: RealtimeConversationItemAssistantMessage.builder() .content(content) .build()
 - 
                                        instructionsfinal RealtimeResponseCreateParams.Builder instructions(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.
 - 
                                        instructionsfinal RealtimeResponseCreateParams.Builder instructions(JsonField<String> instructions) Sets Builder.instructions to an arbitrary JSON value. You should usually call Builder.instructions with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        maxOutputTokensfinal RealtimeResponseCreateParams.Builder maxOutputTokens(RealtimeResponseCreateParams.MaxOutputTokens maxOutputTokens) 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.
 - 
                                        maxOutputTokensfinal RealtimeResponseCreateParams.Builder maxOutputTokens(JsonField<RealtimeResponseCreateParams.MaxOutputTokens> maxOutputTokens) Sets Builder.maxOutputTokens to an arbitrary JSON value. You should usually call Builder.maxOutputTokens with a well-typed MaxOutputTokens value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        maxOutputTokensfinal RealtimeResponseCreateParams.Builder maxOutputTokens(Long integer) Alias for calling maxOutputTokens with MaxOutputTokens.ofInteger(integer).
 - 
                                        maxOutputTokensInffinal RealtimeResponseCreateParams.Builder maxOutputTokensInf() Alias for calling maxOutputTokens with MaxOutputTokens.ofInf().
 - 
                                        metadatafinal RealtimeResponseCreateParams.Builder metadata(RealtimeResponseCreateParams.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. 
 - 
                                        metadatafinal RealtimeResponseCreateParams.Builder metadata(Optional<RealtimeResponseCreateParams.Metadata> metadata) Alias for calling Builder.metadata with metadata.orElse(null).
 - 
                                        metadatafinal RealtimeResponseCreateParams.Builder metadata(JsonField<RealtimeResponseCreateParams.Metadata> metadata) Sets Builder.metadata to an arbitrary JSON value. You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        outputModalitiesfinal RealtimeResponseCreateParams.Builder outputModalities(List<RealtimeResponseCreateParams.OutputModality> outputModalities) The set of modalities the model used to respond, currently the only possible values are [\"audio\"],[\"text\"]. Audio output always include a text transcript. Setting the output to modetextwill disable audio output from the model.
 - 
                                        outputModalitiesfinal RealtimeResponseCreateParams.Builder outputModalities(JsonField<List<RealtimeResponseCreateParams.OutputModality>> outputModalities) Sets Builder.outputModalities to an arbitrary JSON value. You should usually call Builder.outputModalities with a well-typed List<OutputModality>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addOutputModalityfinal RealtimeResponseCreateParams.Builder addOutputModality(RealtimeResponseCreateParams.OutputModality outputModality) Adds a single OutputModality to outputModalities. 
 - 
                                        promptfinal RealtimeResponseCreateParams.Builder prompt(ResponsePrompt prompt) Reference to a prompt template and its variables. Learn more. 
 - 
                                        promptfinal RealtimeResponseCreateParams.Builder prompt(Optional<ResponsePrompt> prompt) Alias for calling Builder.prompt with prompt.orElse(null).
 - 
                                        promptfinal RealtimeResponseCreateParams.Builder prompt(JsonField<ResponsePrompt> prompt) Sets Builder.prompt to an arbitrary JSON value. You should usually call Builder.prompt with a well-typed ResponsePrompt value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        toolChoicefinal RealtimeResponseCreateParams.Builder toolChoice(RealtimeResponseCreateParams.ToolChoice toolChoice) How the model chooses tools. Provide one of the string modes or force a specific function/MCP tool. 
 - 
                                        toolChoicefinal RealtimeResponseCreateParams.Builder toolChoice(JsonField<RealtimeResponseCreateParams.ToolChoice> toolChoice) Sets Builder.toolChoice to an arbitrary JSON value. You should usually call Builder.toolChoice with a well-typed ToolChoice value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        toolChoicefinal RealtimeResponseCreateParams.Builder toolChoice(ToolChoiceOptions options) Alias for calling toolChoice with ToolChoice.ofOptions(options).
 - 
                                        toolChoicefinal RealtimeResponseCreateParams.Builder toolChoice(ToolChoiceFunction function) Alias for calling toolChoice with ToolChoice.ofFunction(function).
 - 
                                        toolChoicefinal RealtimeResponseCreateParams.Builder toolChoice(ToolChoiceMcp mcp) Alias for calling toolChoice with ToolChoice.ofMcp(mcp).
 - 
                                        toolsfinal RealtimeResponseCreateParams.Builder tools(List<RealtimeResponseCreateParams.Tool> tools) Tools available to the model. 
 - 
                                        toolsfinal RealtimeResponseCreateParams.Builder tools(JsonField<List<RealtimeResponseCreateParams.Tool>> tools) Sets Builder.tools to an arbitrary JSON value. You should usually call Builder.tools with a well-typed List<Tool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addToolfinal RealtimeResponseCreateParams.Builder addTool(RealtimeResponseCreateParams.Tool tool) 
 - 
                                        addToolfinal RealtimeResponseCreateParams.Builder addTool(RealtimeFunctionTool realtimeFunction) Alias for calling addTool with Tool.ofRealtimeFunction(realtimeFunction).
 - 
                                        addToolfinal RealtimeResponseCreateParams.Builder addTool(RealtimeResponseCreateMcpTool realtimeResponseCreateMcp) Alias for calling addTool with Tool.ofRealtimeResponseCreateMcp(realtimeResponseCreateMcp).
 - 
                                        additionalPropertiesfinal RealtimeResponseCreateParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal RealtimeResponseCreateParams.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal RealtimeResponseCreateParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal RealtimeResponseCreateParams.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal RealtimeResponseCreateParams.Builder removeAllAdditionalProperties(Set<String> keys) 
 - 
                                        buildfinal RealtimeResponseCreateParams build() Returns an immutable instance of RealtimeResponseCreateParams. Further updates to this Builder will not mutate the returned instance. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-