Class RealtimeConversationItemAssistantMessage.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemAssistantMessage.Builder
A builder for RealtimeConversationItemAssistantMessage.
-
-
Method Summary
-
-
Method Detail
-
content
final RealtimeConversationItemAssistantMessage.Builder content(List<RealtimeConversationItemAssistantMessage.Content> content)
The content of the message.
-
content
final RealtimeConversationItemAssistantMessage.Builder content(JsonField<List<RealtimeConversationItemAssistantMessage.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final RealtimeConversationItemAssistantMessage.Builder addContent(RealtimeConversationItemAssistantMessage.Content content)
Adds a single Content to Builder.content.
-
role
final RealtimeConversationItemAssistantMessage.Builder role(JsonValue role)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("assistant")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeConversationItemAssistantMessage.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("message")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final RealtimeConversationItemAssistantMessage.Builder id(String id)
The unique ID of the item. This may be provided by the client or generated by the server.
-
id
final RealtimeConversationItemAssistantMessage.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.
-
object_
final RealtimeConversationItemAssistantMessage.Builder object_(RealtimeConversationItemAssistantMessage.Object object_)
Identifier for the API object being returned - always
realtime.item
. Optional when creating a new item.
-
object_
final RealtimeConversationItemAssistantMessage.Builder object_(JsonField<RealtimeConversationItemAssistantMessage.Object> object_)
Sets Builder.object_ to an arbitrary JSON value.
You should usually call Builder.object_ with a well-typed Object value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final RealtimeConversationItemAssistantMessage.Builder status(RealtimeConversationItemAssistantMessage.Status status)
The status of the item. Has no effect on the conversation.
-
status
final RealtimeConversationItemAssistantMessage.Builder status(JsonField<RealtimeConversationItemAssistantMessage.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeConversationItemAssistantMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemAssistantMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemAssistantMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemAssistantMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemAssistantMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemAssistantMessage build()
Returns an immutable instance of RealtimeConversationItemAssistantMessage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-