Class ConversationItemWithReference.Content.Builder
-
- All Implemented Interfaces:
public final class ConversationItemWithReference.Content.Builder
A builder for Content.
-
-
Method Summary
-
-
Method Detail
-
id
final ConversationItemWithReference.Content.Builder id(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.
-
id
final ConversationItemWithReference.Content.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
audio
final ConversationItemWithReference.Content.Builder audio(String audio)
Base64-encoded audio bytes, used for
input_audio
content type.
-
audio
final ConversationItemWithReference.Content.Builder audio(JsonField<String> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final ConversationItemWithReference.Content.Builder text(String text)
The text content, used for
input_text
andtext
content types.
-
text
final ConversationItemWithReference.Content.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text 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 ConversationItemWithReference.Content.Builder transcript(String transcript)
The transcript of the audio, used for
input_audio
content type.
-
transcript
final ConversationItemWithReference.Content.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 ConversationItemWithReference.Content.Builder type(ConversationItemWithReference.Content.Type type)
The content type (
input_text
,input_audio
,item_reference
,text
).
-
type
final ConversationItemWithReference.Content.Builder type(JsonField<ConversationItemWithReference.Content.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationItemWithReference.Content.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemWithReference.Content.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemWithReference.Content.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemWithReference.Content.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemWithReference.Content.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemWithReference.Content build()
Returns an immutable instance of Content.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-