Class ConversationItemWithReference.Content
-
- All Implemented Interfaces:
public final class ConversationItemWithReference.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ConversationItemWithReference.Content.Builder
A builder for Content.
public final class
ConversationItemWithReference.Content.Type
The content type (
input_text
,input_audio
,item_reference
,text
).
-
Method Summary
Modifier and Type Method Description final Optional<String>
id()
ID of a previous conversation item to reference (for item_reference
content types inresponse.create
events).final Optional<String>
audio()
Base64-encoded audio bytes, used for input_audio
content type.final Optional<String>
text()
The text content, used for input_text
andtext
content types.final Optional<String>
transcript()
The transcript of the audio, used for input_audio
content type.final Optional<ConversationItemWithReference.Content.Type>
type()
The content type ( input_text
,input_audio
,item_reference
,text
).final JsonField<String>
_id()
Returns the raw JSON value of id. 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<ConversationItemWithReference.Content.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final ConversationItemWithReference.Content.Builder
toBuilder()
final ConversationItemWithReference.Content
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ConversationItemWithReference.Content.Builder
builder()
Returns a mutable builder for constructing an instance of Content. -
-
Method Detail
-
id
final Optional<String> id()
ID of a previous conversation item to reference (for
item_reference
content types inresponse.create
events). These can reference both client and server created items.
-
transcript
final Optional<String> transcript()
The transcript of the audio, used for
input_audio
content type.
-
type
final Optional<ConversationItemWithReference.Content.Type> type()
The content type (
input_text
,input_audio
,item_reference
,text
).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_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<ConversationItemWithReference.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 ConversationItemWithReference.Content.Builder toBuilder()
-
validate
final ConversationItemWithReference.Content validate()
-
builder
final static ConversationItemWithReference.Content.Builder builder()
Returns a mutable builder for constructing an instance of Content.
-
-
-
-