Class ConversationItemTruncateEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationItemTruncateEvent.Builder
A builder for ConversationItemTruncateEvent.
-
-
Method Summary
-
-
Method Detail
-
audioEndMs
final ConversationItemTruncateEvent.Builder audioEndMs(Long audioEndMs)
Inclusive duration up to which audio is truncated, in milliseconds. If the audio_end_ms is greater than the actual audio duration, the server will respond with an error.
-
audioEndMs
final ConversationItemTruncateEvent.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 ConversationItemTruncateEvent.Builder contentIndex(Long contentIndex)
The index of the content part to truncate. Set this to 0.
-
contentIndex
final ConversationItemTruncateEvent.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.
-
itemId
final ConversationItemTruncateEvent.Builder itemId(String itemId)
The ID of the assistant message item to truncate. Only assistant message items can be truncated.
-
itemId
final ConversationItemTruncateEvent.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 ConversationItemTruncateEvent.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.truncate")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ConversationItemTruncateEvent.Builder eventId(String eventId)
Optional client-generated ID used to identify this event.
-
eventId
final ConversationItemTruncateEvent.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.
-
additionalProperties
final ConversationItemTruncateEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemTruncateEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemTruncateEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemTruncateEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemTruncateEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemTruncateEvent build()
Returns an immutable instance of ConversationItemTruncateEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.audioEndMs() .contentIndex() .itemId()
-
-
-
-