Class ResponseInputItem.Message
-
- All Implemented Interfaces:
public final class ResponseInputItem.MessageA message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.Message.BuilderA builder for Message.
public final classResponseInputItem.Message.RoleThe role of the message input. One of
user,system, ordeveloper.public final classResponseInputItem.Message.StatusThe status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.public final classResponseInputItem.Message.TypeThe 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.Rolerole()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.Messagevalidate()final ResponseInputItem.Message.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.Message.Builderbuilder()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()
-
-
-
-