Class RealtimeConversationItemUserMessage.Content.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemUserMessage.Content.Builder
A builder for Content.
-
-
Method Summary
-
-
Method Detail
-
audio
final RealtimeConversationItemUserMessage.Content.Builder audio(String audio)
Base64-encoded audio bytes (for
input_audio
), these will be parsed as the format specified in the session input audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.
-
audio
final RealtimeConversationItemUserMessage.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.
-
detail
final RealtimeConversationItemUserMessage.Content.Builder detail(RealtimeConversationItemUserMessage.Content.Detail detail)
The detail level of the image (for
input_image
).auto
will default tohigh
.
-
detail
final RealtimeConversationItemUserMessage.Content.Builder detail(JsonField<RealtimeConversationItemUserMessage.Content.Detail> detail)
Sets Builder.detail to an arbitrary JSON value.
You should usually call Builder.detail with a well-typed Detail value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
imageUrl
final RealtimeConversationItemUserMessage.Content.Builder imageUrl(String imageUrl)
Base64-encoded image bytes (for
input_image
) as a data URI. For exampledata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
. Supported formats are PNG and JPEG.
-
imageUrl
final RealtimeConversationItemUserMessage.Content.Builder imageUrl(JsonField<String> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl 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 RealtimeConversationItemUserMessage.Content.Builder text(String text)
The text content (for
input_text
).
-
text
final RealtimeConversationItemUserMessage.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 RealtimeConversationItemUserMessage.Content.Builder transcript(String transcript)
Transcript of the audio (for
input_audio
). This is not sent to the model, but will be attached to the message item for reference.
-
transcript
final RealtimeConversationItemUserMessage.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 RealtimeConversationItemUserMessage.Content.Builder type(RealtimeConversationItemUserMessage.Content.Type type)
The content type (
input_text
,input_audio
, orinput_image
).
-
type
final RealtimeConversationItemUserMessage.Content.Builder type(JsonField<RealtimeConversationItemUserMessage.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 RealtimeConversationItemUserMessage.Content.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemUserMessage.Content.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemUserMessage.Content.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemUserMessage.Content.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemUserMessage.Content.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemUserMessage.Content build()
Returns an immutable instance of Content.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-