Class ResponseOutputItemAddedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputItemAddedEvent.Builder
A builder for ResponseOutputItemAddedEvent.
-
-
Method Summary
-
-
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)
The item to add to the 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.
-
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()
-
-
-
-