Class ResponseInputMessageItem
-
- All Implemented Interfaces:
public final class ResponseInputMessageItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputMessageItem.Builder
A builder for ResponseInputMessageItem.
public final class
ResponseInputMessageItem.Role
The role of the message input. One of
user
,system
, ordeveloper
.public final class
ResponseInputMessageItem.Status
The status of item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.public final class
ResponseInputMessageItem.Type
The type of the message input. Always set to
message
.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the message input. final List<ResponseInputContent>
content()
A list of one or many input items to the model, containing different content types. final ResponseInputMessageItem.Role
role()
The role of the message input. final Optional<ResponseInputMessageItem.Status>
status()
The status of item. final Optional<ResponseInputMessageItem.Type>
type()
The type of the message input. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<List<ResponseInputContent>>
_content()
Returns the raw JSON value of content. final JsonField<ResponseInputMessageItem.Role>
_role()
Returns the raw JSON value of role. final JsonField<ResponseInputMessageItem.Status>
_status()
Returns the raw JSON value of status. final JsonField<ResponseInputMessageItem.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputMessageItem
validate()
final ResponseInputMessageItem.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputMessageItem.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseInputMessageItem. -
-
Method Detail
-
content
final List<ResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
-
role
final ResponseInputMessageItem.Role role()
The role of the message input. One of
user
,system
, ordeveloper
.
-
status
final Optional<ResponseInputMessageItem.Status> status()
The status of item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
type
final Optional<ResponseInputMessageItem.Type> type()
The type of the message input. Always set to
message
.
-
_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.
-
_content
final JsonField<List<ResponseInputContent>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<ResponseInputMessageItem.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseInputMessageItem.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ResponseInputMessageItem.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()
-
validate
final ResponseInputMessageItem validate()
-
toBuilder
final ResponseInputMessageItem.Builder toBuilder()
-
builder
final static ResponseInputMessageItem.Builder builder()
Returns a mutable builder for constructing an instance of ResponseInputMessageItem.
The following fields are required:
.id() .content() .role()
-
-
-
-