Class ResponseOutputItemAddedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputItemAddedEvent.BuilderA builder for ResponseOutputItemAddedEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem item)The output item that was added. final ResponseOutputItemAddedEvent.Builderitem(JsonField<ResponseOutputItem> item)Sets Builder.item to an arbitrary JSON value. final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputMessage message)Alias for calling item with ResponseOutputItem.ofMessage(message).final ResponseOutputItemAddedEvent.Builderitem(ResponseFileSearchToolCall fileSearchCall)Alias for calling item with ResponseOutputItem.ofFileSearchCall(fileSearchCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseFunctionToolCall functionCall)Alias for calling item with ResponseOutputItem.ofFunctionCall(functionCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseFunctionWebSearch webSearchCall)Alias for calling item with ResponseOutputItem.ofWebSearchCall(webSearchCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseComputerToolCall computerCall)Alias for calling item with ResponseOutputItem.ofComputerCall(computerCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseReasoningItem reasoning)Alias for calling item with ResponseOutputItem.ofReasoning(reasoning).final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem.ImageGenerationCall imageGenerationCall)Alias for calling item with ResponseOutputItem.ofImageGenerationCall(imageGenerationCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseCodeInterpreterToolCall codeInterpreterCall)Alias for calling item with ResponseOutputItem.ofCodeInterpreterCall(codeInterpreterCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem.LocalShellCall localShellCall)Alias for calling item with ResponseOutputItem.ofLocalShellCall(localShellCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem.McpCall mcpCall)Alias for calling item with ResponseOutputItem.ofMcpCall(mcpCall).final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem.McpListTools mcpListTools)Alias for calling item with ResponseOutputItem.ofMcpListTools(mcpListTools).final ResponseOutputItemAddedEvent.Builderitem(ResponseOutputItem.McpApprovalRequest mcpApprovalRequest)Alias for calling item with ResponseOutputItem.ofMcpApprovalRequest(mcpApprovalRequest).final ResponseOutputItemAddedEvent.Builderitem(ResponseCustomToolCall customToolCall)Alias for calling item with ResponseOutputItem.ofCustomToolCall(customToolCall).final ResponseOutputItemAddedEvent.BuilderoutputIndex(Long outputIndex)The index of the output item that was added. final ResponseOutputItemAddedEvent.BuilderoutputIndex(JsonField<Long> outputIndex)Sets Builder.outputIndex to an arbitrary JSON value. final ResponseOutputItemAddedEvent.BuildersequenceNumber(Long sequenceNumber)The sequence number of this event. final ResponseOutputItemAddedEvent.BuildersequenceNumber(JsonField<Long> sequenceNumber)Sets Builder.sequenceNumber to an arbitrary JSON value. final ResponseOutputItemAddedEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ResponseOutputItemAddedEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ResponseOutputItemAddedEvent.BuilderputAdditionalProperty(String key, JsonValue value)final ResponseOutputItemAddedEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ResponseOutputItemAddedEvent.BuilderremoveAdditionalProperty(String key)final ResponseOutputItemAddedEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final ResponseOutputItemAddedEventbuild()Returns an immutable instance of ResponseOutputItemAddedEvent. -
-
Method Detail
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem item)
The output item that was added.
-
item
final ResponseOutputItemAddedEvent.Builder item(JsonField<ResponseOutputItem> item)
Sets Builder.item to an arbitrary JSON value.
You should usually call Builder.item with a well-typed ResponseOutputItem value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputMessage message)
Alias for calling item with
ResponseOutputItem.ofMessage(message).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseFileSearchToolCall fileSearchCall)
Alias for calling item with
ResponseOutputItem.ofFileSearchCall(fileSearchCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseFunctionToolCall functionCall)
Alias for calling item with
ResponseOutputItem.ofFunctionCall(functionCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseFunctionWebSearch webSearchCall)
Alias for calling item with
ResponseOutputItem.ofWebSearchCall(webSearchCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseComputerToolCall computerCall)
Alias for calling item with
ResponseOutputItem.ofComputerCall(computerCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseReasoningItem reasoning)
Alias for calling item with
ResponseOutputItem.ofReasoning(reasoning).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem.ImageGenerationCall imageGenerationCall)
Alias for calling item with
ResponseOutputItem.ofImageGenerationCall(imageGenerationCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling item with
ResponseOutputItem.ofCodeInterpreterCall(codeInterpreterCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem.LocalShellCall localShellCall)
Alias for calling item with
ResponseOutputItem.ofLocalShellCall(localShellCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem.McpCall mcpCall)
Alias for calling item with
ResponseOutputItem.ofMcpCall(mcpCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem.McpListTools mcpListTools)
Alias for calling item with
ResponseOutputItem.ofMcpListTools(mcpListTools).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseOutputItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling item with
ResponseOutputItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
item
final ResponseOutputItemAddedEvent.Builder item(ResponseCustomToolCall customToolCall)
Alias for calling item with
ResponseOutputItem.ofCustomToolCall(customToolCall).
-
outputIndex
final ResponseOutputItemAddedEvent.Builder outputIndex(Long outputIndex)
The index of the output item that was added.
-
outputIndex
final ResponseOutputItemAddedEvent.Builder outputIndex(JsonField<Long> outputIndex)
Sets Builder.outputIndex to an arbitrary JSON value.
You should usually call Builder.outputIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final ResponseOutputItemAddedEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final ResponseOutputItemAddedEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseOutputItemAddedEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("response.output_item.added")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseOutputItemAddedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseOutputItemAddedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseOutputItemAddedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseOutputItemAddedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseOutputItemAddedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseOutputItemAddedEvent build()
Returns an immutable instance of ResponseOutputItemAddedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.item() .outputIndex() .sequenceNumber()
-
-
-
-