Class BetaResponseInputMessageItem
-
- All Implemented Interfaces:
public final class BetaResponseInputMessageItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputMessageItem.BuilderA builder for BetaResponseInputMessageItem.
public final classBetaResponseInputMessageItem.RoleThe role of the message input. One of
user,system, ordeveloper.public final classBetaResponseInputMessageItem.AgentThe agent that produced this item.
public final classBetaResponseInputMessageItem.StatusThe status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the message input. final List<BetaResponseInputContent>content()A list of one or many input items to the model, containing different content types. final BetaResponseInputMessageItem.Rolerole()The role of the message input. final JsonValue_type()The type of the message input. final Optional<BetaResponseInputMessageItem.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputMessageItem.Status>status()The status of item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaResponseInputContent>>_content()Returns the raw JSON value of content. final JsonField<BetaResponseInputMessageItem.Role>_role()Returns the raw JSON value of role. final JsonField<BetaResponseInputMessageItem.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputMessageItem.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputMessageItem.BuildertoBuilder()final BetaResponseInputMessageItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputMessageItem.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseInputMessageItem. -
-
Method Detail
-
content
final List<BetaResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
-
role
final BetaResponseInputMessageItem.Role role()
The role of the message input. One of
user,system, ordeveloper.
-
_type
final JsonValue _type()
The type of the message input. Always set to
message.Expected to always return the following:
JsonValue.from("message")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseInputMessageItem.Agent> agent()
The agent that produced this item.
-
status
final Optional<BetaResponseInputMessageItem.Status> status()
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_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<BetaResponseInputMessageItem.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<BetaResponseInputMessageItem.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<BetaResponseInputMessageItem.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputMessageItem.Builder toBuilder()
-
validate
final BetaResponseInputMessageItem 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 BetaResponseInputMessageItem.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseInputMessageItem.
The following fields are required:
.id() .content() .role()
-
-
-
-