Class ResponseOutputItemAddedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputItemAddedEvent.BuilderA builder for ResponseOutputItemAddedEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseOutputItemAddedEvent.BuildereventId(String eventId)The unique ID of the server event. final ResponseOutputItemAddedEvent.BuildereventId(JsonField<String> eventId)Sets Builder.eventId to an arbitrary JSON value. final ResponseOutputItemAddedEvent.Builderitem(ConversationItem item)A single item within a Realtime conversation. final ResponseOutputItemAddedEvent.Builderitem(JsonField<ConversationItem> item)Sets Builder.item to an arbitrary JSON value. final ResponseOutputItemAddedEvent.Builderitem(RealtimeConversationItemSystemMessage realtimeConversationItemSystemMessage)Alias for calling item with ConversationItem.ofRealtimeConversationItemSystemMessage(realtimeConversationItemSystemMessage).final ResponseOutputItemAddedEvent.Builderitem(RealtimeConversationItemUserMessage realtimeConversationItemUserMessage)Alias for calling item with ConversationItem.ofRealtimeConversationItemUserMessage(realtimeConversationItemUserMessage).final ResponseOutputItemAddedEvent.Builderitem(RealtimeConversationItemAssistantMessage realtimeConversationItemAssistantMessage)Alias for calling item with ConversationItem.ofRealtimeConversationItemAssistantMessage(realtimeConversationItemAssistantMessage).final ResponseOutputItemAddedEvent.Builderitem(RealtimeConversationItemFunctionCall functionCall)Alias for calling item with ConversationItem.ofFunctionCall(functionCall).final ResponseOutputItemAddedEvent.Builderitem(RealtimeConversationItemFunctionCallOutput functionCallOutput)Alias for calling item with ConversationItem.ofFunctionCallOutput(functionCallOutput).final ResponseOutputItemAddedEvent.Builderitem(RealtimeMcpApprovalResponse mcpApprovalResponse)Alias for calling item with ConversationItem.ofMcpApprovalResponse(mcpApprovalResponse).final ResponseOutputItemAddedEvent.Builderitem(RealtimeMcpListTools mcpListTools)Alias for calling item with ConversationItem.ofMcpListTools(mcpListTools).final ResponseOutputItemAddedEvent.Builderitem(RealtimeMcpToolCall mcpCall)Alias for calling item with ConversationItem.ofMcpCall(mcpCall).final ResponseOutputItemAddedEvent.Builderitem(RealtimeMcpApprovalRequest mcpApprovalRequest)Alias for calling item with ConversationItem.ofMcpApprovalRequest(mcpApprovalRequest).final ResponseOutputItemAddedEvent.BuilderrealtimeConversationItemSystemMessageItem(List<RealtimeConversationItemSystemMessage.Content> content)Alias for calling item with the following: RealtimeConversationItemSystemMessage.builder() .content(content) .build()final ResponseOutputItemAddedEvent.BuilderrealtimeConversationItemUserMessageItem(List<RealtimeConversationItemUserMessage.Content> content)Alias for calling item with the following: RealtimeConversationItemUserMessage.builder() .content(content) .build()final ResponseOutputItemAddedEvent.BuilderrealtimeConversationItemAssistantMessageItem(List<RealtimeConversationItemAssistantMessage.Content> content)Alias for calling item with the following: RealtimeConversationItemAssistantMessage.builder() .content(content) .build()final ResponseOutputItemAddedEvent.BuilderoutputIndex(Long outputIndex)The index of the output item in the Response. final ResponseOutputItemAddedEvent.BuilderoutputIndex(JsonField<Long> outputIndex)Sets Builder.outputIndex to an arbitrary JSON value. final ResponseOutputItemAddedEvent.BuilderresponseId(String responseId)The ID of the Response to which the item belongs. final ResponseOutputItemAddedEvent.BuilderresponseId(JsonField<String> responseId)Sets Builder.responseId 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
-
eventId
final ResponseOutputItemAddedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ResponseOutputItemAddedEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
item
final ResponseOutputItemAddedEvent.Builder item(ConversationItem item)
A single item within a Realtime conversation.
-
item
final ResponseOutputItemAddedEvent.Builder item(JsonField<ConversationItem> item)
Sets Builder.item to an arbitrary JSON value.
You should usually call Builder.item with a well-typed ConversationItem value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeConversationItemSystemMessage realtimeConversationItemSystemMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemSystemMessage(realtimeConversationItemSystemMessage).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeConversationItemUserMessage realtimeConversationItemUserMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemUserMessage(realtimeConversationItemUserMessage).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeConversationItemAssistantMessage realtimeConversationItemAssistantMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemAssistantMessage(realtimeConversationItemAssistantMessage).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeConversationItemFunctionCall functionCall)
Alias for calling item with
ConversationItem.ofFunctionCall(functionCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeConversationItemFunctionCallOutput functionCallOutput)
Alias for calling item with
ConversationItem.ofFunctionCallOutput(functionCallOutput).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeMcpApprovalResponse mcpApprovalResponse)
Alias for calling item with
ConversationItem.ofMcpApprovalResponse(mcpApprovalResponse).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeMcpListTools mcpListTools)
Alias for calling item with
ConversationItem.ofMcpListTools(mcpListTools).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeMcpToolCall mcpCall)
Alias for calling item with
ConversationItem.ofMcpCall(mcpCall).
-
item
final ResponseOutputItemAddedEvent.Builder item(RealtimeMcpApprovalRequest mcpApprovalRequest)
Alias for calling item with
ConversationItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
realtimeConversationItemSystemMessageItem
final ResponseOutputItemAddedEvent.Builder realtimeConversationItemSystemMessageItem(List<RealtimeConversationItemSystemMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemSystemMessage.builder() .content(content) .build()
-
realtimeConversationItemUserMessageItem
final ResponseOutputItemAddedEvent.Builder realtimeConversationItemUserMessageItem(List<RealtimeConversationItemUserMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemUserMessage.builder() .content(content) .build()
-
realtimeConversationItemAssistantMessageItem
final ResponseOutputItemAddedEvent.Builder realtimeConversationItemAssistantMessageItem(List<RealtimeConversationItemAssistantMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemAssistantMessage.builder() .content(content) .build()
-
outputIndex
final ResponseOutputItemAddedEvent.Builder outputIndex(Long outputIndex)
The index of the output item in the Response.
-
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.
-
responseId
final ResponseOutputItemAddedEvent.Builder responseId(String responseId)
The ID of the Response to which the item belongs.
-
responseId
final ResponseOutputItemAddedEvent.Builder responseId(JsonField<String> responseId)
Sets Builder.responseId to an arbitrary JSON value.
You should usually call Builder.responseId with a well-typed String 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:
.eventId() .item() .outputIndex() .responseId()
-
-
-
-