Class ConversationItemInputAudioTranscriptionCompletedEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationItemInputAudioTranscriptionCompletedEvent.Builder
A builder for ConversationItemInputAudioTranscriptionCompletedEvent.
-
-
Method Summary
-
-
Method Detail
-
contentIndex
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder contentIndex(Long contentIndex)
The index of the content part containing the audio.
-
contentIndex
final ConversationItemInputAudioTranscriptionCompletedEvent.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 ConversationItemInputAudioTranscriptionCompletedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationItemInputAudioTranscriptionCompletedEvent.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 ConversationItemInputAudioTranscriptionCompletedEvent.Builder itemId(String itemId)
The ID of the user message item containing the audio.
-
itemId
final ConversationItemInputAudioTranscriptionCompletedEvent.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.
-
transcript
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder transcript(String transcript)
The transcribed text.
-
transcript
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder transcript(JsonField<String> transcript)
Sets Builder.transcript to an arbitrary JSON value.
You should usually call Builder.transcript 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 ConversationItemInputAudioTranscriptionCompletedEvent.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.input_audio_transcription.completed")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
logprobs
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder logprobs(List<ConversationItemInputAudioTranscriptionCompletedEvent.Logprob> logprobs)
The log probabilities of the transcription.
-
logprobs
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder logprobs(Optional<List<ConversationItemInputAudioTranscriptionCompletedEvent.Logprob>> logprobs)
Alias for calling Builder.logprobs with
logprobs.orElse(null)
.
-
logprobs
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder logprobs(JsonField<List<ConversationItemInputAudioTranscriptionCompletedEvent.Logprob>> logprobs)
Sets Builder.logprobs to an arbitrary JSON value.
You should usually call Builder.logprobs with a well-typed
List<Logprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLogprob
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder addLogprob(ConversationItemInputAudioTranscriptionCompletedEvent.Logprob logprob)
-
additionalProperties
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemInputAudioTranscriptionCompletedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemInputAudioTranscriptionCompletedEvent build()
Returns an immutable instance of ConversationItemInputAudioTranscriptionCompletedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .eventId() .itemId() .transcript()
-
-
-
-