Class ItemCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class ItemCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
Modifier and Type Method Description final ItemCreateParams.Body.Builder
items(List<ResponseInputItem> items)
The items to add to the conversation. final ItemCreateParams.Body.Builder
items(JsonField<List<ResponseInputItem>> items)
Sets Builder.items to an arbitrary JSON value. final ItemCreateParams.Body.Builder
addItem(ResponseInputItem item)
Adds a single ResponseInputItem to items. final ItemCreateParams.Body.Builder
addItem(EasyInputMessage easyInputMessage)
Alias for calling addItem with ResponseInputItem.ofEasyInputMessage(easyInputMessage)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.Message message)
Alias for calling addItem with ResponseInputItem.ofMessage(message)
.final ItemCreateParams.Body.Builder
addItem(ResponseOutputMessage responseOutputMessage)
Alias for calling addItem with ResponseInputItem.ofResponseOutputMessage(responseOutputMessage)
.final ItemCreateParams.Body.Builder
addItem(ResponseFileSearchToolCall fileSearchCall)
Alias for calling addItem with ResponseInputItem.ofFileSearchCall(fileSearchCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseComputerToolCall computerCall)
Alias for calling addItem with ResponseInputItem.ofComputerCall(computerCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.ComputerCallOutput computerCallOutput)
Alias for calling addItem with ResponseInputItem.ofComputerCallOutput(computerCallOutput)
.final ItemCreateParams.Body.Builder
addItem(ResponseFunctionWebSearch webSearchCall)
Alias for calling addItem with ResponseInputItem.ofWebSearchCall(webSearchCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseFunctionToolCall functionCall)
Alias for calling addItem with ResponseInputItem.ofFunctionCall(functionCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.FunctionCallOutput functionCallOutput)
Alias for calling addItem with ResponseInputItem.ofFunctionCallOutput(functionCallOutput)
.final ItemCreateParams.Body.Builder
addItem(ResponseReasoningItem reasoning)
Alias for calling addItem with ResponseInputItem.ofReasoning(reasoning)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.ImageGenerationCall imageGenerationCall)
Alias for calling addItem with ResponseInputItem.ofImageGenerationCall(imageGenerationCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling addItem with ResponseInputItem.ofCodeInterpreterCall(codeInterpreterCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.LocalShellCall localShellCall)
Alias for calling addItem with ResponseInputItem.ofLocalShellCall(localShellCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.LocalShellCallOutput localShellCallOutput)
Alias for calling addItem with ResponseInputItem.ofLocalShellCallOutput(localShellCallOutput)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.McpListTools mcpListTools)
Alias for calling addItem with ResponseInputItem.ofMcpListTools(mcpListTools)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling addItem with ResponseInputItem.ofMcpApprovalRequest(mcpApprovalRequest)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling addItem with ResponseInputItem.ofMcpApprovalResponse(mcpApprovalResponse)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.McpCall mcpCall)
Alias for calling addItem with ResponseInputItem.ofMcpCall(mcpCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseCustomToolCallOutput customToolCallOutput)
Alias for calling addItem with ResponseInputItem.ofCustomToolCallOutput(customToolCallOutput)
.final ItemCreateParams.Body.Builder
addItem(ResponseCustomToolCall customToolCall)
Alias for calling addItem with ResponseInputItem.ofCustomToolCall(customToolCall)
.final ItemCreateParams.Body.Builder
addItem(ResponseInputItem.ItemReference itemReference)
Alias for calling addItem with ResponseInputItem.ofItemReference(itemReference)
.final ItemCreateParams.Body.Builder
addItemReferenceItem(String id)
Alias for calling addItem with the following: ResponseInputItem.ItemReference.builder() .type(ResponseInputItem.ItemReference.Type.ITEM_REFERENCE) .id(id) .build()
final ItemCreateParams.Body.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ItemCreateParams.Body.Builder
putAdditionalProperty(String key, JsonValue value)
final ItemCreateParams.Body.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ItemCreateParams.Body.Builder
removeAdditionalProperty(String key)
final ItemCreateParams.Body.Builder
removeAllAdditionalProperties(Set<String> keys)
final ItemCreateParams.Body
build()
Returns an immutable instance of Body. -
-
Method Detail
-
items
final ItemCreateParams.Body.Builder items(List<ResponseInputItem> items)
The items to add to the conversation. You may add up to 20 items at a time.
-
items
final ItemCreateParams.Body.Builder items(JsonField<List<ResponseInputItem>> items)
Sets Builder.items to an arbitrary JSON value.
You should usually call Builder.items with a well-typed
List<ResponseInputItem>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem item)
Adds a single ResponseInputItem to items.
-
addItem
final ItemCreateParams.Body.Builder addItem(EasyInputMessage easyInputMessage)
Alias for calling addItem with
ResponseInputItem.ofEasyInputMessage(easyInputMessage)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.Message message)
Alias for calling addItem with
ResponseInputItem.ofMessage(message)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseOutputMessage responseOutputMessage)
Alias for calling addItem with
ResponseInputItem.ofResponseOutputMessage(responseOutputMessage)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseFileSearchToolCall fileSearchCall)
Alias for calling addItem with
ResponseInputItem.ofFileSearchCall(fileSearchCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseComputerToolCall computerCall)
Alias for calling addItem with
ResponseInputItem.ofComputerCall(computerCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.ComputerCallOutput computerCallOutput)
Alias for calling addItem with
ResponseInputItem.ofComputerCallOutput(computerCallOutput)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseFunctionWebSearch webSearchCall)
Alias for calling addItem with
ResponseInputItem.ofWebSearchCall(webSearchCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseFunctionToolCall functionCall)
Alias for calling addItem with
ResponseInputItem.ofFunctionCall(functionCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.FunctionCallOutput functionCallOutput)
Alias for calling addItem with
ResponseInputItem.ofFunctionCallOutput(functionCallOutput)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseReasoningItem reasoning)
Alias for calling addItem with
ResponseInputItem.ofReasoning(reasoning)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.ImageGenerationCall imageGenerationCall)
Alias for calling addItem with
ResponseInputItem.ofImageGenerationCall(imageGenerationCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling addItem with
ResponseInputItem.ofCodeInterpreterCall(codeInterpreterCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.LocalShellCall localShellCall)
Alias for calling addItem with
ResponseInputItem.ofLocalShellCall(localShellCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.LocalShellCallOutput localShellCallOutput)
Alias for calling addItem with
ResponseInputItem.ofLocalShellCallOutput(localShellCallOutput)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.McpListTools mcpListTools)
Alias for calling addItem with
ResponseInputItem.ofMcpListTools(mcpListTools)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling addItem with
ResponseInputItem.ofMcpApprovalRequest(mcpApprovalRequest)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling addItem with
ResponseInputItem.ofMcpApprovalResponse(mcpApprovalResponse)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.McpCall mcpCall)
Alias for calling addItem with
ResponseInputItem.ofMcpCall(mcpCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseCustomToolCallOutput customToolCallOutput)
Alias for calling addItem with
ResponseInputItem.ofCustomToolCallOutput(customToolCallOutput)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseCustomToolCall customToolCall)
Alias for calling addItem with
ResponseInputItem.ofCustomToolCall(customToolCall)
.
-
addItem
final ItemCreateParams.Body.Builder addItem(ResponseInputItem.ItemReference itemReference)
Alias for calling addItem with
ResponseInputItem.ofItemReference(itemReference)
.
-
addItemReferenceItem
final ItemCreateParams.Body.Builder addItemReferenceItem(String id)
Alias for calling addItem with the following:
ResponseInputItem.ItemReference.builder() .type(ResponseInputItem.ItemReference.Type.ITEM_REFERENCE) .id(id) .build()
-
additionalProperties
final ItemCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ItemCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ItemCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ItemCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ItemCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ItemCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.items()
-
-
-
-