Class RealtimeConversationItemAssistantMessage.Content
-
- All Implemented Interfaces:
public final class RealtimeConversationItemAssistantMessage.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeConversationItemAssistantMessage.Content.BuilderA builder for Content.
public final classRealtimeConversationItemAssistantMessage.Content.TypeThe content type,
output_textoroutput_audiodepending on the sessionoutput_modalitiesconfiguration.
-
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_textoroutput_audiodepending on the sessionoutput_modalitiesconfiguration.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.BuildertoBuilder()final RealtimeConversationItemAssistantMessage.Contentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeConversationItemAssistantMessage.Content.Builderbuilder()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_textoroutput_audiodepending on the sessionoutput_modalitiesconfiguration.
-
_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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeConversationItemAssistantMessage.Content.Builder builder()
Returns a mutable builder for constructing an instance of Content.
-
-
-
-