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
-
-
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()
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<ResponseInputItem.Message.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<ResponseInputItem.Message.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<ResponseInputItem.Message.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()
-
toBuilder
final ResponseInputItem.Message.Builder toBuilder()
-
validate
final ResponseInputItem.Message validate()
-
builder
final static ResponseInputItem.Message.Builder builder()
Returns a mutable builder for constructing an instance of Message.
The following fields are required:
.content() .role()
-
-
-
-