Class ResponseCreateParams.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class ResponseCreateParams.BuilderA builder for ResponseCreateParams. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        bodyfinal ResponseCreateParams.Builder body(ResponseCreateParams.Body body) Sets the entire request body. This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead: 
 - 
                                        backgroundfinal ResponseCreateParams.Builder background(Boolean background) Whether to run the model response in the background. Learn more. 
 - 
                                        backgroundfinal ResponseCreateParams.Builder background(Boolean background) Alias for Builder.background. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        backgroundfinal ResponseCreateParams.Builder background(Optional<Boolean> background) Alias for calling Builder.background with background.orElse(null).
 - 
                                        backgroundfinal ResponseCreateParams.Builder background(JsonField<Boolean> background) Sets Builder.background to an arbitrary JSON value. You should usually call Builder.background with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        conversationfinal ResponseCreateParams.Builder conversation(ResponseCreateParams.Conversation conversation) The conversation that this response belongs to. Items from this conversation are prepended to input_itemsfor this response request. Input items and output items from this response are automatically added to this conversation after this response completes.
 - 
                                        conversationfinal ResponseCreateParams.Builder conversation(Optional<ResponseCreateParams.Conversation> conversation) Alias for calling Builder.conversation with conversation.orElse(null).
 - 
                                        conversationfinal ResponseCreateParams.Builder conversation(JsonField<ResponseCreateParams.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 ResponseCreateParams.Builder conversation(String id) Alias for calling conversation with Conversation.ofId(id).
 - 
                                        conversationfinal ResponseCreateParams.Builder conversation(ResponseConversationParam responseConversationParam) Alias for calling conversation with Conversation.ofResponseConversationParam(responseConversationParam).
 - 
                                        includefinal ResponseCreateParams.Builder include(List<ResponseIncludable> include) Specify additional output data to include in the model response. Currently supported values are: - web_search_call.action.sources: Include the sources of the web search tool call.
- code_interpreter_call.outputs: Includes the outputs of python code execution in code interpreter tool call items.
- computer_call_output.output.image_url: Include image urls from the computer call output.
- file_search_call.results: Include the search results of the file search tool call.
- message.input_image.image_url: Include image urls from the input message.
- message.output_text.logprobs: Include logprobs with assistant messages.
- reasoning.encrypted_content: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the- storeparameter is set to- false, or when an organization is enrolled in the zero data retention program).
 
 - 
                                        includefinal ResponseCreateParams.Builder include(Optional<List<ResponseIncludable>> include) Alias for calling Builder.include with include.orElse(null).
 - 
                                        includefinal ResponseCreateParams.Builder include(JsonField<List<ResponseIncludable>> include) Sets Builder.include to an arbitrary JSON value. You should usually call Builder.include with a well-typed List<ResponseIncludable>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addIncludefinal ResponseCreateParams.Builder addInclude(ResponseIncludable include) Adds a single ResponseIncludable to Builder.include. 
 - 
                                        inputfinal ResponseCreateParams.Builder input(ResponseCreateParams.Input input) Text, image, or file inputs to the model, used to generate a response. Learn more: 
 - 
                                        inputfinal ResponseCreateParams.Builder input(JsonField<ResponseCreateParams.Input> input) Sets Builder.input to an arbitrary JSON value. You should usually call Builder.input with a well-typed Input value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        inputfinal ResponseCreateParams.Builder input(String text) Alias for calling input with Input.ofText(text).
 - 
                                        inputOfResponsefinal ResponseCreateParams.Builder inputOfResponse(List<ResponseInputItem> response) Alias for calling input with Input.ofResponse(response).
 - 
                                        instructionsfinal ResponseCreateParams.Builder instructions(String instructions) A system (or developer) message inserted into the model's context. When using along with previous_response_id, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.
 - 
                                        instructionsfinal ResponseCreateParams.Builder instructions(Optional<String> instructions) Alias for calling Builder.instructions with instructions.orElse(null).
 - 
                                        instructionsfinal ResponseCreateParams.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 ResponseCreateParams.Builder maxOutputTokens(Long maxOutputTokens) An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens. 
 - 
                                        maxOutputTokensfinal ResponseCreateParams.Builder maxOutputTokens(Long maxOutputTokens) Alias for Builder.maxOutputTokens. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        maxOutputTokensfinal ResponseCreateParams.Builder maxOutputTokens(Optional<Long> maxOutputTokens) Alias for calling Builder.maxOutputTokens with maxOutputTokens.orElse(null).
 - 
                                        maxOutputTokensfinal ResponseCreateParams.Builder maxOutputTokens(JsonField<Long> maxOutputTokens) Sets Builder.maxOutputTokens to an arbitrary JSON value. You should usually call Builder.maxOutputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        maxToolCallsfinal ResponseCreateParams.Builder maxToolCalls(Long maxToolCalls) The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored. 
 - 
                                        maxToolCallsfinal ResponseCreateParams.Builder maxToolCalls(Long maxToolCalls) Alias for Builder.maxToolCalls. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        maxToolCallsfinal ResponseCreateParams.Builder maxToolCalls(Optional<Long> maxToolCalls) Alias for calling Builder.maxToolCalls with maxToolCalls.orElse(null).
 - 
                                        maxToolCallsfinal ResponseCreateParams.Builder maxToolCalls(JsonField<Long> maxToolCalls) Sets Builder.maxToolCalls to an arbitrary JSON value. You should usually call Builder.maxToolCalls with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        metadatafinal ResponseCreateParams.Builder metadata(ResponseCreateParams.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 ResponseCreateParams.Builder metadata(Optional<ResponseCreateParams.Metadata> metadata) Alias for calling Builder.metadata with metadata.orElse(null).
 - 
                                        metadatafinal ResponseCreateParams.Builder metadata(JsonField<ResponseCreateParams.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. 
 - 
                                        modelfinal ResponseCreateParams.Builder model(ResponsesModel model) Model ID used to generate the response, like gpt-4ooro3. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the model guide to browse and compare available models.
 - 
                                        modelfinal ResponseCreateParams.Builder model(JsonField<ResponsesModel> model) Sets Builder.model to an arbitrary JSON value. You should usually call Builder.model with a well-typed ResponsesModel value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        modelfinal ResponseCreateParams.Builder model(String string) Alias for calling model with ResponsesModel.ofString(string).
 - 
                                        modelfinal ResponseCreateParams.Builder model(ChatModel chat) Alias for calling model with ResponsesModel.ofChat(chat).
 - 
                                        modelfinal ResponseCreateParams.Builder model(ResponsesModel.ResponsesOnlyModel only) Alias for calling model with ResponsesModel.ofOnly(only).
 - 
                                        parallelToolCallsfinal ResponseCreateParams.Builder parallelToolCalls(Boolean parallelToolCalls) Whether to allow the model to run tool calls in parallel. 
 - 
                                        parallelToolCallsfinal ResponseCreateParams.Builder parallelToolCalls(Boolean parallelToolCalls) Alias for Builder.parallelToolCalls. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        parallelToolCallsfinal ResponseCreateParams.Builder parallelToolCalls(Optional<Boolean> parallelToolCalls) Alias for calling Builder.parallelToolCalls with parallelToolCalls.orElse(null).
 - 
                                        parallelToolCallsfinal ResponseCreateParams.Builder parallelToolCalls(JsonField<Boolean> parallelToolCalls) Sets Builder.parallelToolCalls to an arbitrary JSON value. You should usually call Builder.parallelToolCalls with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        previousResponseIdfinal ResponseCreateParams.Builder previousResponseId(String previousResponseId) The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about conversation state. Cannot be used in conjunction with conversation.
 - 
                                        previousResponseIdfinal ResponseCreateParams.Builder previousResponseId(Optional<String> previousResponseId) Alias for calling Builder.previousResponseId with previousResponseId.orElse(null).
 - 
                                        previousResponseIdfinal ResponseCreateParams.Builder previousResponseId(JsonField<String> previousResponseId) Sets Builder.previousResponseId to an arbitrary JSON value. You should usually call Builder.previousResponseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        promptfinal ResponseCreateParams.Builder prompt(ResponsePrompt prompt) Reference to a prompt template and its variables. Learn more. 
 - 
                                        promptfinal ResponseCreateParams.Builder prompt(Optional<ResponsePrompt> prompt) Alias for calling Builder.prompt with prompt.orElse(null).
 - 
                                        promptfinal ResponseCreateParams.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. 
 - 
                                        promptCacheKeyfinal ResponseCreateParams.Builder promptCacheKey(String promptCacheKey) Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the userfield. Learn more.
 - 
                                        promptCacheKeyfinal ResponseCreateParams.Builder promptCacheKey(JsonField<String> promptCacheKey) Sets Builder.promptCacheKey to an arbitrary JSON value. You should usually call Builder.promptCacheKey with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        reasoningfinal ResponseCreateParams.Builder reasoning(Reasoning reasoning) gpt-5 and o-series models only Configuration options for reasoning models. 
 - 
                                        reasoningfinal ResponseCreateParams.Builder reasoning(Optional<Reasoning> reasoning) Alias for calling Builder.reasoning with reasoning.orElse(null).
 - 
                                        reasoningfinal ResponseCreateParams.Builder reasoning(JsonField<Reasoning> reasoning) Sets Builder.reasoning to an arbitrary JSON value. You should usually call Builder.reasoning with a well-typed Reasoning value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        safetyIdentifierfinal ResponseCreateParams.Builder safetyIdentifier(String safetyIdentifier) A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. Learn more. 
 - 
                                        safetyIdentifierfinal ResponseCreateParams.Builder safetyIdentifier(JsonField<String> safetyIdentifier) Sets Builder.safetyIdentifier to an arbitrary JSON value. You should usually call Builder.safetyIdentifier with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        serviceTierfinal ResponseCreateParams.Builder serviceTier(ResponseCreateParams.ServiceTier serviceTier) Specifies the processing type used for serving the request. - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'. 
- If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. 
- If set to 'flex' or 'priority', then the request will be processed with the corresponding service tier. 
- When not set, the default behavior is 'auto'. 
 When the service_tierparameter is set, the response body will include theservice_tiervalue based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
 - 
                                        serviceTierfinal ResponseCreateParams.Builder serviceTier(Optional<ResponseCreateParams.ServiceTier> serviceTier) Alias for calling Builder.serviceTier with serviceTier.orElse(null).
 - 
                                        serviceTierfinal ResponseCreateParams.Builder serviceTier(JsonField<ResponseCreateParams.ServiceTier> serviceTier) Sets Builder.serviceTier to an arbitrary JSON value. You should usually call Builder.serviceTier with a well-typed ServiceTier value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        storefinal ResponseCreateParams.Builder store(Boolean store) Whether to store the generated model response for later retrieval via API. 
 - 
                                        storefinal ResponseCreateParams.Builder store(Boolean store) Alias for Builder.store. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        storefinal ResponseCreateParams.Builder store(Optional<Boolean> store) Alias for calling Builder.store with store.orElse(null).
 - 
                                        storefinal ResponseCreateParams.Builder store(JsonField<Boolean> store) Sets Builder.store to an arbitrary JSON value. You should usually call Builder.store with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        streamOptionsfinal ResponseCreateParams.Builder streamOptions(ResponseCreateParams.StreamOptions streamOptions) Options for streaming responses. Only set this when you set stream: true.
 - 
                                        streamOptionsfinal ResponseCreateParams.Builder streamOptions(Optional<ResponseCreateParams.StreamOptions> streamOptions) Alias for calling Builder.streamOptions with streamOptions.orElse(null).
 - 
                                        streamOptionsfinal ResponseCreateParams.Builder streamOptions(JsonField<ResponseCreateParams.StreamOptions> streamOptions) Sets Builder.streamOptions to an arbitrary JSON value. You should usually call Builder.streamOptions with a well-typed StreamOptions value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        temperaturefinal ResponseCreateParams.Builder temperature(Double temperature) What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_pbut not both.
 - 
                                        temperaturefinal ResponseCreateParams.Builder temperature(Double temperature) Alias for Builder.temperature. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        temperaturefinal ResponseCreateParams.Builder temperature(Optional<Double> temperature) Alias for calling Builder.temperature with temperature.orElse(null).
 - 
                                        temperaturefinal ResponseCreateParams.Builder temperature(JsonField<Double> temperature) Sets Builder.temperature to an arbitrary JSON value. You should usually call Builder.temperature with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        textfinal ResponseCreateParams.Builder text(ResponseTextConfig text) Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more: 
 - 
                                        textfinal ResponseCreateParams.Builder text(JsonField<ResponseTextConfig> text) Sets Builder.text to an arbitrary JSON value. You should usually call Builder.text with a well-typed ResponseTextConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        text@JvmOverloads() final <T extends Any> StructuredResponseCreateParams.Builder<T> text(Class<T> responseType, JsonSchemaLocalValidation localValidation) Sets the text configuration's format to a JSON schema derived from the structure of the given class. This changes the builder to a type-safe StructuredResponseCreateParams.Builder that will build a StructuredResponseCreateParams instance when build()is called.Use this method or the text(StructuredResponseTextConfig<T>)method, but not both.- Parameters:
- responseType- A class from which a JSON schema will be derived to define the text configuration's format.
- localValidation- JsonSchemaLocalValidation.YES (the default) to validate the JSON schema locally when it is generated by this method to confirm that it adheres to the requirements and restrictions on JSON schemas imposed by the OpenAI specification; or JsonSchemaLocalValidation.NO to skip local validation and rely only on remote validation.
 
 - 
                                        text@JvmOverloads() final <T extends Any> StructuredResponseCreateParams.Builder<T> text(Class<T> responseType) Sets the text configuration's format to a JSON schema derived from the structure of the given class. This changes the builder to a type-safe StructuredResponseCreateParams.Builder that will build a StructuredResponseCreateParams instance when build()is called.Use this method or the text(StructuredResponseTextConfig<T>)method, but not both.- Parameters:
- responseType- A class from which a JSON schema will be derived to define the text configuration's format.
 
 - 
                                        textfinal <T extends Any> StructuredResponseCreateParams.Builder<T> text(StructuredResponseTextConfig<T> text) Sets the text configuration to a StructuredResponseTextConfig where the format was set to a JSON schema derived from the structure of a class. This changes the builder to a type-safe StructuredResponseCreateParams.Builder that will build a StructuredResponseCreateParams instance when build()is called.Use this method or the text(Class<T>)method, but not both.- Parameters:
- text- A text configuration in which the JSON schema defining the format was derived from the structure of a class.
 
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ResponseCreateParams.ToolChoice toolChoice) How the model should select which tool (or tools) to use when generating a response. See the toolsparameter to see how to specify which tools the model can call.
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(JsonField<ResponseCreateParams.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 ResponseCreateParams.Builder toolChoice(ToolChoiceOptions options) Alias for calling toolChoice with ToolChoice.ofOptions(options).
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ToolChoiceAllowed allowed) Alias for calling toolChoice with ToolChoice.ofAllowed(allowed).
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ToolChoiceTypes types) Alias for calling toolChoice with ToolChoice.ofTypes(types).
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ToolChoiceFunction function) Alias for calling toolChoice with ToolChoice.ofFunction(function).
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ToolChoiceMcp mcp) Alias for calling toolChoice with ToolChoice.ofMcp(mcp).
 - 
                                        toolChoicefinal ResponseCreateParams.Builder toolChoice(ToolChoiceCustom custom) Alias for calling toolChoice with ToolChoice.ofCustom(custom).
 - 
                                        toolsfinal ResponseCreateParams.Builder tools(List<Tool> tools) An array of tools the model may call while generating a response. You can specify which tool to use by setting the tool_choiceparameter.We support the following categories of tools: - Built-in tools: Tools that are provided by OpenAI that extend the model's capabilities, like web search or file search. Learn more about built-in tools. 
- MCP Tools: Integrations with third-party systems via custom MCP servers or predefined connectors such as Google Drive and SharePoint. Learn more about MCP Tools. 
- Function calls (custom tools): Functions that are defined by you, enabling the model to call your own code with strongly typed arguments and outputs. Learn more about function calling. You can also use custom tools to call your own code. 
 
 - 
                                        toolsfinal ResponseCreateParams.Builder tools(JsonField<List<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 ResponseCreateParams.Builder addTool(Tool tool) 
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(FunctionTool function) Alias for calling addTool with Tool.ofFunction(function).
 - 
                                        addTool@JvmOverloads() final ResponseCreateParams.Builder addTool(Class<?> functionParametersType, JsonSchemaLocalValidation localValidation) Adds a single FunctionTool where the JSON schema describing the function parameters is derived from the fields of a given class. Local validation of that JSON schema can be performed to check if the schema is likely to pass remote validation by the AI model. By default, local validation is enabled; disable it by setting localValidation to JsonSchemaLocalValidation.NO. 
 - 
                                        addTool@JvmOverloads() final ResponseCreateParams.Builder addTool(Class<?> functionParametersType) Adds a single FunctionTool where the JSON schema describing the function parameters is derived from the fields of a given class. Local validation of that JSON schema can be performed to check if the schema is likely to pass remote validation by the AI model. By default, local validation is enabled; disable it by setting localValidation to JsonSchemaLocalValidation.NO. 
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(FileSearchTool fileSearch) Alias for calling addTool with Tool.ofFileSearch(fileSearch).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(ComputerTool computerUsePreview) Alias for calling addTool with Tool.ofComputerUsePreview(computerUsePreview).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(WebSearchTool webSearch) Alias for calling addTool with Tool.ofWebSearch(webSearch).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(Tool.Mcp mcp) Alias for calling addTool with Tool.ofMcp(mcp).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(Tool.CodeInterpreter codeInterpreter) Alias for calling addTool with Tool.ofCodeInterpreter(codeInterpreter).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(Tool.ImageGeneration imageGeneration) Alias for calling addTool with Tool.ofImageGeneration(imageGeneration).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(CustomTool custom) Alias for calling addTool with Tool.ofCustom(custom).
 - 
                                        addToolfinal ResponseCreateParams.Builder addTool(WebSearchPreviewTool webSearchPreview) Alias for calling addTool with Tool.ofWebSearchPreview(webSearchPreview).
 - 
                                        addFileSearchToolfinal ResponseCreateParams.Builder addFileSearchTool(List<String> vectorStoreIds) Alias for calling addTool with the following: FileSearchTool.builder() .vectorStoreIds(vectorStoreIds) .build()
 - 
                                        addMcpToolfinal ResponseCreateParams.Builder addMcpTool(String serverLabel) Alias for calling addTool with the following: Tool.Mcp.builder() .serverLabel(serverLabel) .build()
 - 
                                        addCodeInterpreterToolfinal ResponseCreateParams.Builder addCodeInterpreterTool(Tool.CodeInterpreter.Container container) Alias for calling addTool with the following: Tool.CodeInterpreter.builder() .container(container) .build()
 - 
                                        addCodeInterpreterToolfinal ResponseCreateParams.Builder addCodeInterpreterTool(String string) Alias for calling addCodeInterpreterTool with Tool.CodeInterpreter.Container.ofString(string).
 - 
                                        addCodeInterpreterToolfinal ResponseCreateParams.Builder addCodeInterpreterTool(Tool.CodeInterpreter.Container.CodeInterpreterToolAuto codeInterpreterToolAuto) Alias for calling addCodeInterpreterTool with Tool.CodeInterpreter.Container.ofCodeInterpreterToolAuto(codeInterpreterToolAuto).
 - 
                                        addToolLocalShellfinal ResponseCreateParams.Builder addToolLocalShell() Alias for calling addTool with Tool.ofLocalShell().
 - 
                                        addCustomToolfinal ResponseCreateParams.Builder addCustomTool(String name) Alias for calling addTool with the following: CustomTool.builder() .name(name) .build()
 - 
                                        topLogprobsfinal ResponseCreateParams.Builder topLogprobs(Long topLogprobs) An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. 
 - 
                                        topLogprobsfinal ResponseCreateParams.Builder topLogprobs(Long topLogprobs) Alias for Builder.topLogprobs. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        topLogprobsfinal ResponseCreateParams.Builder topLogprobs(Optional<Long> topLogprobs) Alias for calling Builder.topLogprobs with topLogprobs.orElse(null).
 - 
                                        topLogprobsfinal ResponseCreateParams.Builder topLogprobs(JsonField<Long> topLogprobs) Sets Builder.topLogprobs to an arbitrary JSON value. You should usually call Builder.topLogprobs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        topPfinal ResponseCreateParams.Builder topP(Double topP) An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperaturebut not both.
 - 
                                        topPfinal ResponseCreateParams.Builder topP(Double topP) Alias for Builder.topP. This unboxed primitive overload exists for backwards compatibility. 
 - 
                                        topPfinal ResponseCreateParams.Builder topP(Optional<Double> topP) Alias for calling Builder.topP with topP.orElse(null).
 - 
                                        topPfinal ResponseCreateParams.Builder topP(JsonField<Double> topP) Sets Builder.topP to an arbitrary JSON value. You should usually call Builder.topP with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        truncationfinal ResponseCreateParams.Builder truncation(ResponseCreateParams.Truncation truncation) The truncation strategy to use for the model response. - auto: If the input to this Response exceeds the model's context window size, the model will truncate the response to fit the context window by dropping items from the beginning of the conversation.
- disabled(default): If the input size will exceed the context window size for a model, the request will fail with a 400 error.
 
 - 
                                        truncationfinal ResponseCreateParams.Builder truncation(Optional<ResponseCreateParams.Truncation> truncation) Alias for calling Builder.truncation with truncation.orElse(null).
 - 
                                        truncationfinal ResponseCreateParams.Builder truncation(JsonField<ResponseCreateParams.Truncation> truncation) Sets Builder.truncation to an arbitrary JSON value. You should usually call Builder.truncation with a well-typed Truncation value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        user@Deprecated(message = "deprecated") final ResponseCreateParams.Builder user(String user) This field is being replaced by safety_identifierandprompt_cache_key. Useprompt_cache_keyinstead to maintain caching optimizations. A stable identifier for your end-users. Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. Learn more.
 - 
                                        user@Deprecated(message = "deprecated") final ResponseCreateParams.Builder user(JsonField<String> user) Sets Builder.user to an arbitrary JSON value. You should usually call Builder.user with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        additionalBodyPropertiesfinal ResponseCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties) 
 - 
                                        putAdditionalBodyPropertyfinal ResponseCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalBodyPropertiesfinal ResponseCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties) 
 - 
                                        removeAdditionalBodyPropertyfinal ResponseCreateParams.Builder removeAdditionalBodyProperty(String key) 
 - 
                                        removeAllAdditionalBodyPropertiesfinal ResponseCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys) 
 - 
                                        additionalHeadersfinal ResponseCreateParams.Builder additionalHeaders(Headers additionalHeaders) 
 - 
                                        additionalHeadersfinal ResponseCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders) 
 - 
                                        putAdditionalHeaderfinal ResponseCreateParams.Builder putAdditionalHeader(String name, String value) 
 - 
                                        putAdditionalHeadersfinal ResponseCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values) 
 - 
                                        putAllAdditionalHeadersfinal ResponseCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders) 
 - 
                                        putAllAdditionalHeadersfinal ResponseCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders) 
 - 
                                        replaceAdditionalHeadersfinal ResponseCreateParams.Builder replaceAdditionalHeaders(String name, String value) 
 - 
                                        replaceAdditionalHeadersfinal ResponseCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values) 
 - 
                                        replaceAllAdditionalHeadersfinal ResponseCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders) 
 - 
                                        replaceAllAdditionalHeadersfinal ResponseCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders) 
 - 
                                        removeAdditionalHeadersfinal ResponseCreateParams.Builder removeAdditionalHeaders(String name) 
 - 
                                        removeAllAdditionalHeadersfinal ResponseCreateParams.Builder removeAllAdditionalHeaders(Set<String> names) 
 - 
                                        additionalQueryParamsfinal ResponseCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams) 
 - 
                                        additionalQueryParamsfinal ResponseCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams) 
 - 
                                        putAdditionalQueryParamfinal ResponseCreateParams.Builder putAdditionalQueryParam(String key, String value) 
 - 
                                        putAdditionalQueryParamsfinal ResponseCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values) 
 - 
                                        putAllAdditionalQueryParamsfinal ResponseCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams) 
 - 
                                        putAllAdditionalQueryParamsfinal ResponseCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams) 
 - 
                                        replaceAdditionalQueryParamsfinal ResponseCreateParams.Builder replaceAdditionalQueryParams(String key, String value) 
 - 
                                        replaceAdditionalQueryParamsfinal ResponseCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values) 
 - 
                                        replaceAllAdditionalQueryParamsfinal ResponseCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams) 
 - 
                                        replaceAllAdditionalQueryParamsfinal ResponseCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams) 
 - 
                                        removeAdditionalQueryParamsfinal ResponseCreateParams.Builder removeAdditionalQueryParams(String key) 
 - 
                                        removeAllAdditionalQueryParamsfinal ResponseCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys) 
 - 
                                        buildfinal ResponseCreateParams build() Returns an immutable instance of ResponseCreateParams. Further updates to this Builder will not mutate the returned instance. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-