Class ConversationItemWithReference.Content
-
- All Implemented Interfaces:
public final class ConversationItemWithReference.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItemWithReference.Content.BuilderA builder for Content.
public final classConversationItemWithReference.Content.TypeThe 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_referencecontent types inresponse.createevents).final Optional<String>audio()Base64-encoded audio bytes, used for input_audiocontent type.final Optional<String>text()The text content, used for input_textandtextcontent types.final Optional<String>transcript()The transcript of the audio, used for input_audiocontent 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.BuildertoBuilder()final ConversationItemWithReference.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationItemWithReference.Content.Builderbuilder()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_referencecontent types inresponse.createevents). These can reference both client and server created items.
-
transcript
final Optional<String> transcript()
The transcript of the audio, used for
input_audiocontent 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.
-
-
-
-