Class RealtimeConversationItemAssistantMessage
-
- All Implemented Interfaces:
public final class RealtimeConversationItemAssistantMessage
An assistant message item in a Realtime conversation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeConversationItemAssistantMessage.Builder
A builder for RealtimeConversationItemAssistantMessage.
public final class
RealtimeConversationItemAssistantMessage.Content
public final class
RealtimeConversationItemAssistantMessage.Object
Identifier for the API object being returned - always
realtime.item
. Optional when creating a new item.public final class
RealtimeConversationItemAssistantMessage.Status
The status of the item. Has no effect on the conversation.
-
Method Summary
-
-
Method Detail
-
content
final List<RealtimeConversationItemAssistantMessage.Content> content()
The content of the message.
-
_role
final JsonValue _role()
The role of the message sender. Always
assistant
.Expected to always return the following:
JsonValue.from("assistant")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
The type of the item. Always
message
.Expected to always return the following:
JsonValue.from("message")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
id
final Optional<String> id()
The unique ID of the item. This may be provided by the client or generated by the server.
-
object_
final Optional<RealtimeConversationItemAssistantMessage.Object> object_()
Identifier for the API object being returned - always
realtime.item
. Optional when creating a new item.
-
status
final Optional<RealtimeConversationItemAssistantMessage.Status> status()
The status of the item. Has no effect on the conversation.
-
_content
final JsonField<List<RealtimeConversationItemAssistantMessage.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_object_
final JsonField<RealtimeConversationItemAssistantMessage.Object> _object_()
Returns the raw JSON value of object_.
Unlike object_, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<RealtimeConversationItemAssistantMessage.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeConversationItemAssistantMessage.Builder toBuilder()
-
validate
final RealtimeConversationItemAssistantMessage validate()
-
builder
final static RealtimeConversationItemAssistantMessage.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeConversationItemAssistantMessage.
The following fields are required:
.content()
-
-
-
-