Class ConversationItemTruncatedEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationItemTruncatedEvent.Builder
A builder for ConversationItemTruncatedEvent.
-
-
Method Summary
-
-
Method Detail
-
audioEndMs
final ConversationItemTruncatedEvent.Builder audioEndMs(Long audioEndMs)
The duration up to which the audio was truncated, in milliseconds.
-
audioEndMs
final ConversationItemTruncatedEvent.Builder audioEndMs(JsonField<Long> audioEndMs)
Sets Builder.audioEndMs to an arbitrary JSON value.
You should usually call Builder.audioEndMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentIndex
final ConversationItemTruncatedEvent.Builder contentIndex(Long contentIndex)
The index of the content part that was truncated.
-
contentIndex
final ConversationItemTruncatedEvent.Builder contentIndex(JsonField<Long> contentIndex)
Sets Builder.contentIndex to an arbitrary JSON value.
You should usually call Builder.contentIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ConversationItemTruncatedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationItemTruncatedEvent.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.
-
itemId
final ConversationItemTruncatedEvent.Builder itemId(String itemId)
The ID of the assistant message item that was truncated.
-
itemId
final ConversationItemTruncatedEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId 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 ConversationItemTruncatedEvent.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.truncated")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationItemTruncatedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemTruncatedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemTruncatedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemTruncatedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemTruncatedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemTruncatedEvent build()
Returns an immutable instance of ConversationItemTruncatedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.audioEndMs() .contentIndex() .eventId() .itemId()
-
-
-
-