Class RealtimeConversationItemAssistantMessage.Content
-
- All Implemented Interfaces:
public final class RealtimeConversationItemAssistantMessage.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeConversationItemAssistantMessage.Content.Builder
A builder for Content.
public final class
RealtimeConversationItemAssistantMessage.Content.Type
The content type,
output_text
oroutput_audio
depending on the sessionoutput_modalities
configuration.
-
Method Summary
Modifier and Type Method Description final Optional<String>
audio()
Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. final Optional<String>
text()
The text content. final Optional<String>
transcript()
The transcript of the audio content, this will always be present if the output type is audio
.final Optional<RealtimeConversationItemAssistantMessage.Content.Type>
type()
The content type, output_text
oroutput_audio
depending on the sessionoutput_modalities
configuration.final JsonField<String>
_audio()
Returns the raw JSON value of audio. final JsonField<String>
_text()
Returns the raw JSON value of text. final JsonField<String>
_transcript()
Returns the raw JSON value of transcript. final JsonField<RealtimeConversationItemAssistantMessage.Content.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final RealtimeConversationItemAssistantMessage.Content.Builder
toBuilder()
final RealtimeConversationItemAssistantMessage.Content
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeConversationItemAssistantMessage.Content.Builder
builder()
Returns a mutable builder for constructing an instance of Content. -
-
Method Detail
-
audio
final Optional<String> audio()
Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.
-
transcript
final Optional<String> transcript()
The transcript of the audio content, this will always be present if the output type is
audio
.
-
type
final Optional<RealtimeConversationItemAssistantMessage.Content.Type> type()
The content type,
output_text
oroutput_audio
depending on the sessionoutput_modalities
configuration.
-
_audio
final JsonField<String> _audio()
Returns the raw JSON value of audio.
Unlike audio, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_transcript
final JsonField<String> _transcript()
Returns the raw JSON value of transcript.
Unlike transcript, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<RealtimeConversationItemAssistantMessage.Content.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeConversationItemAssistantMessage.Content.Builder toBuilder()
-
validate
final RealtimeConversationItemAssistantMessage.Content validate()
-
builder
final static RealtimeConversationItemAssistantMessage.Content.Builder builder()
Returns a mutable builder for constructing an instance of Content.
-
-
-
-