Class ConversationItemAdded.Builder
-
- All Implemented Interfaces:
public final class ConversationItemAdded.Builder
A builder for ConversationItemAdded.
-
-
Method Summary
Modifier and Type Method Description final ConversationItemAdded.Builder
eventId(String eventId)
The unique ID of the server event. final ConversationItemAdded.Builder
eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value. final ConversationItemAdded.Builder
item(ConversationItem item)
A single item within a Realtime conversation. final ConversationItemAdded.Builder
item(JsonField<ConversationItem> item)
Sets Builder.item to an arbitrary JSON value. final ConversationItemAdded.Builder
item(RealtimeConversationItemSystemMessage realtimeConversationItemSystemMessage)
Alias for calling item with ConversationItem.ofRealtimeConversationItemSystemMessage(realtimeConversationItemSystemMessage)
.final ConversationItemAdded.Builder
item(RealtimeConversationItemUserMessage realtimeConversationItemUserMessage)
Alias for calling item with ConversationItem.ofRealtimeConversationItemUserMessage(realtimeConversationItemUserMessage)
.final ConversationItemAdded.Builder
item(RealtimeConversationItemAssistantMessage realtimeConversationItemAssistantMessage)
Alias for calling item with ConversationItem.ofRealtimeConversationItemAssistantMessage(realtimeConversationItemAssistantMessage)
.final ConversationItemAdded.Builder
item(RealtimeConversationItemFunctionCall functionCall)
Alias for calling item with ConversationItem.ofFunctionCall(functionCall)
.final ConversationItemAdded.Builder
item(RealtimeConversationItemFunctionCallOutput functionCallOutput)
Alias for calling item with ConversationItem.ofFunctionCallOutput(functionCallOutput)
.final ConversationItemAdded.Builder
item(RealtimeMcpApprovalResponse mcpApprovalResponse)
Alias for calling item with ConversationItem.ofMcpApprovalResponse(mcpApprovalResponse)
.final ConversationItemAdded.Builder
item(RealtimeMcpListTools mcpListTools)
Alias for calling item with ConversationItem.ofMcpListTools(mcpListTools)
.final ConversationItemAdded.Builder
item(RealtimeMcpToolCall mcpCall)
Alias for calling item with ConversationItem.ofMcpCall(mcpCall)
.final ConversationItemAdded.Builder
item(RealtimeMcpApprovalRequest mcpApprovalRequest)
Alias for calling item with ConversationItem.ofMcpApprovalRequest(mcpApprovalRequest)
.final ConversationItemAdded.Builder
realtimeConversationItemSystemMessageItem(List<RealtimeConversationItemSystemMessage.Content> content)
Alias for calling item with the following: RealtimeConversationItemSystemMessage.builder() .content(content) .build()
final ConversationItemAdded.Builder
realtimeConversationItemUserMessageItem(List<RealtimeConversationItemUserMessage.Content> content)
Alias for calling item with the following: RealtimeConversationItemUserMessage.builder() .content(content) .build()
final ConversationItemAdded.Builder
realtimeConversationItemAssistantMessageItem(List<RealtimeConversationItemAssistantMessage.Content> content)
Alias for calling item with the following: RealtimeConversationItemAssistantMessage.builder() .content(content) .build()
final ConversationItemAdded.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ConversationItemAdded.Builder
previousItemId(String previousItemId)
The ID of the item that precedes this one, if any. final ConversationItemAdded.Builder
previousItemId(Optional<String> previousItemId)
Alias for calling Builder.previousItemId with previousItemId.orElse(null)
.final ConversationItemAdded.Builder
previousItemId(JsonField<String> previousItemId)
Sets Builder.previousItemId to an arbitrary JSON value. final ConversationItemAdded.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ConversationItemAdded.Builder
putAdditionalProperty(String key, JsonValue value)
final ConversationItemAdded.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ConversationItemAdded.Builder
removeAdditionalProperty(String key)
final ConversationItemAdded.Builder
removeAllAdditionalProperties(Set<String> keys)
final ConversationItemAdded
build()
Returns an immutable instance of ConversationItemAdded. -
-
Method Detail
-
eventId
final ConversationItemAdded.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationItemAdded.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 ConversationItemAdded.Builder item(ConversationItem item)
A single item within a Realtime conversation.
-
item
final ConversationItemAdded.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 ConversationItemAdded.Builder item(RealtimeConversationItemSystemMessage realtimeConversationItemSystemMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemSystemMessage(realtimeConversationItemSystemMessage)
.
-
item
final ConversationItemAdded.Builder item(RealtimeConversationItemUserMessage realtimeConversationItemUserMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemUserMessage(realtimeConversationItemUserMessage)
.
-
item
final ConversationItemAdded.Builder item(RealtimeConversationItemAssistantMessage realtimeConversationItemAssistantMessage)
Alias for calling item with
ConversationItem.ofRealtimeConversationItemAssistantMessage(realtimeConversationItemAssistantMessage)
.
-
item
final ConversationItemAdded.Builder item(RealtimeConversationItemFunctionCall functionCall)
Alias for calling item with
ConversationItem.ofFunctionCall(functionCall)
.
-
item
final ConversationItemAdded.Builder item(RealtimeConversationItemFunctionCallOutput functionCallOutput)
Alias for calling item with
ConversationItem.ofFunctionCallOutput(functionCallOutput)
.
-
item
final ConversationItemAdded.Builder item(RealtimeMcpApprovalResponse mcpApprovalResponse)
Alias for calling item with
ConversationItem.ofMcpApprovalResponse(mcpApprovalResponse)
.
-
item
final ConversationItemAdded.Builder item(RealtimeMcpListTools mcpListTools)
Alias for calling item with
ConversationItem.ofMcpListTools(mcpListTools)
.
-
item
final ConversationItemAdded.Builder item(RealtimeMcpToolCall mcpCall)
Alias for calling item with
ConversationItem.ofMcpCall(mcpCall)
.
-
item
final ConversationItemAdded.Builder item(RealtimeMcpApprovalRequest mcpApprovalRequest)
Alias for calling item with
ConversationItem.ofMcpApprovalRequest(mcpApprovalRequest)
.
-
realtimeConversationItemSystemMessageItem
final ConversationItemAdded.Builder realtimeConversationItemSystemMessageItem(List<RealtimeConversationItemSystemMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemSystemMessage.builder() .content(content) .build()
-
realtimeConversationItemUserMessageItem
final ConversationItemAdded.Builder realtimeConversationItemUserMessageItem(List<RealtimeConversationItemUserMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemUserMessage.builder() .content(content) .build()
-
realtimeConversationItemAssistantMessageItem
final ConversationItemAdded.Builder realtimeConversationItemAssistantMessageItem(List<RealtimeConversationItemAssistantMessage.Content> content)
Alias for calling item with the following:
RealtimeConversationItemAssistantMessage.builder() .content(content) .build()
-
type
final ConversationItemAdded.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("conversation.item.added")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
previousItemId
final ConversationItemAdded.Builder previousItemId(String previousItemId)
The ID of the item that precedes this one, if any. This is used to maintain ordering when items are inserted.
-
previousItemId
final ConversationItemAdded.Builder previousItemId(Optional<String> previousItemId)
Alias for calling Builder.previousItemId with
previousItemId.orElse(null)
.
-
previousItemId
final ConversationItemAdded.Builder previousItemId(JsonField<String> previousItemId)
Sets Builder.previousItemId to an arbitrary JSON value.
You should usually call Builder.previousItemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationItemAdded.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemAdded.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemAdded.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemAdded.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemAdded.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemAdded build()
Returns an immutable instance of ConversationItemAdded.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.eventId() .item()
-
-
-
-