Class BetaResponseInputItem.Message
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.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 classBetaResponseInputItem.Message.BuilderA builder for Message.
public final classBetaResponseInputItem.Message.RoleThe role of the message input. One of
user,system, ordeveloper.public final classBetaResponseInputItem.Message.AgentThe agent that produced this item.
public final classBetaResponseInputItem.Message.StatusThe status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.public final classBetaResponseInputItem.Message.TypeThe type of the message input. Always set to
message.
-
Method Summary
Modifier and Type Method Description final List<BetaResponseInputContent>content()A list of one or many input items to the model, containing different content types. final BetaResponseInputItem.Message.Rolerole()The role of the message input. final Optional<BetaResponseInputItem.Message.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.Message.Status>status()The status of item. final Optional<BetaResponseInputItem.Message.Type>type()The type of the message input. final JsonField<List<BetaResponseInputContent>>_content()Returns the raw JSON value of content. final JsonField<BetaResponseInputItem.Message.Role>_role()Returns the raw JSON value of role. final JsonField<BetaResponseInputItem.Message.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.Message.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseInputItem.Message.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.Message.BuildertoBuilder()final BetaResponseInputItem.Messagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputItem.Message.Builderbuilder()Returns a mutable builder for constructing an instance of Message. -
-
Method Detail
-
content
final List<BetaResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
-
role
final BetaResponseInputItem.Message.Role role()
The role of the message input. One of
user,system, ordeveloper.
-
agent
final Optional<BetaResponseInputItem.Message.Agent> agent()
The agent that produced this item.
-
status
final Optional<BetaResponseInputItem.Message.Status> status()
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
type
final Optional<BetaResponseInputItem.Message.Type> type()
The type of the message input. Always set to
message.
-
_content
final JsonField<List<BetaResponseInputContent>> _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<BetaResponseInputItem.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.
-
_agent
final JsonField<BetaResponseInputItem.Message.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.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<BetaResponseInputItem.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 BetaResponseInputItem.Message.Builder toBuilder()
-
validate
final BetaResponseInputItem.Message validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseInputItem.Message.Builder builder()
Returns a mutable builder for constructing an instance of Message.
The following fields are required:
.content() .role()
-
-
-
-