Class BetaEasyInputMessage
-
- All Implemented Interfaces:
public final class BetaEasyInputMessageA message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole. Messages with theassistantrole are presumed to have been generated by the model in previous interactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaEasyInputMessage.BuilderA builder for BetaEasyInputMessage.
public final classBetaEasyInputMessage.ContentText, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
public final classBetaEasyInputMessage.RoleThe role of the message input. One of
user,assistant,system, ordeveloper.public final classBetaEasyInputMessage.PhaseLabels an
assistantmessage as intermediate commentary (commentary) or the final answer (final_answer). For models likegpt-5.3-codexand beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.public final classBetaEasyInputMessage.TypeThe type of the message input. Always
message.
-
Method Summary
Modifier and Type Method Description final BetaEasyInputMessage.Contentcontent()Text, image, or audio input to the model, used to generate a response. final BetaEasyInputMessage.Rolerole()The role of the message input. final Optional<BetaEasyInputMessage.Phase>phase()Labels an assistantmessage as intermediate commentary (commentary) or the final answer (final_answer).final Optional<BetaEasyInputMessage.Type>type()The type of the message input. final JsonField<BetaEasyInputMessage.Content>_content()Returns the raw JSON value of content. final JsonField<BetaEasyInputMessage.Role>_role()Returns the raw JSON value of role. final JsonField<BetaEasyInputMessage.Phase>_phase()Returns the raw JSON value of phase. final JsonField<BetaEasyInputMessage.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaEasyInputMessage.BuildertoBuilder()final BetaEasyInputMessagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaEasyInputMessage.Builderbuilder()Returns a mutable builder for constructing an instance of BetaEasyInputMessage. -
-
Method Detail
-
content
final BetaEasyInputMessage.Content content()
Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
-
role
final BetaEasyInputMessage.Role role()
The role of the message input. One of
user,assistant,system, ordeveloper.
-
phase
final Optional<BetaEasyInputMessage.Phase> phase()
Labels an
assistantmessage as intermediate commentary (commentary) or the final answer (final_answer). For models likegpt-5.3-codexand beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.
-
type
final Optional<BetaEasyInputMessage.Type> type()
The type of the message input. Always
message.
-
_content
final JsonField<BetaEasyInputMessage.Content> _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<BetaEasyInputMessage.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_phase
final JsonField<BetaEasyInputMessage.Phase> _phase()
Returns the raw JSON value of phase.
Unlike phase, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaEasyInputMessage.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 BetaEasyInputMessage.Builder toBuilder()
-
validate
final BetaEasyInputMessage 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 BetaEasyInputMessage.Builder builder()
Returns a mutable builder for constructing an instance of BetaEasyInputMessage.
The following fields are required:
.content() .role()
-
-
-
-