Class ResponseInputItem.Message
-
- All Implemented Interfaces:
public final class ResponseInputItem.Message
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developer
orsystem
role take precedence over instructions given with theuser
role.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputItem.Message.Builder
A builder for Message.
public final class
ResponseInputItem.Message.Role
The role of the message input. One of
user
,system
, ordeveloper
.public final class
ResponseInputItem.Message.Status
The status of item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.public final class
ResponseInputItem.Message.Type
The type of the message input. Always set to
message
.
-
Method Summary
Modifier and Type Method Description final List<ResponseInputContent>
content()
A list of one or many input items to the model, containing different content types. final ResponseInputItem.Message.Role
role()
The role of the message input. final Optional<ResponseInputItem.Message.Status>
status()
The status of item. final Optional<ResponseInputItem.Message.Type>
type()
The type of the message input. final JsonField<List<ResponseInputContent>>
_content()
A list of one or many input items to the model, containing different content types. final JsonField<ResponseInputItem.Message.Role>
_role()
The role of the message input. final JsonField<ResponseInputItem.Message.Status>
_status()
The status of item. final JsonField<ResponseInputItem.Message.Type>
_type()
The type of the message input. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputItem.Message
validate()
final ResponseInputItem.Message.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputItem.Message.Builder
builder()
Returns a mutable builder for constructing an instance of Message. -
-
Method Detail
-
content
final List<ResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
-
role
final ResponseInputItem.Message.Role role()
The role of the message input. One of
user
,system
, ordeveloper
.
-
status
final Optional<ResponseInputItem.Message.Status> status()
The status of item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
type
final Optional<ResponseInputItem.Message.Type> type()
The type of the message input. Always set to
message
.
-
_content
final JsonField<List<ResponseInputContent>> _content()
A list of one or many input items to the model, containing different content types.
-
_role
final JsonField<ResponseInputItem.Message.Role> _role()
The role of the message input. One of
user
,system
, ordeveloper
.
-
_status
final JsonField<ResponseInputItem.Message.Status> _status()
The status of item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
_type
final JsonField<ResponseInputItem.Message.Type> _type()
The type of the message input. Always set to
message
.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ResponseInputItem.Message validate()
-
toBuilder
final ResponseInputItem.Message.Builder toBuilder()
-
builder
final static ResponseInputItem.Message.Builder builder()
Returns a mutable builder for constructing an instance of Message.
The following fields are required:
.content() .role()
-
-
-
-