Class BetaManagedAgentsUserMessageEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserMessageEventA user message event in the session conversation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserMessageEvent.BuilderA builder for BetaManagedAgentsUserMessageEvent.
public final classBetaManagedAgentsUserMessageEvent.ContentContent block in a user message. Can be
text,image, ordocument.public final classBetaManagedAgentsUserMessageEvent.Type
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final List<BetaManagedAgentsUserMessageEvent.Content>content()Array of content blocks comprising the user message. final BetaManagedAgentsUserMessageEvent.Typetype()final Optional<OffsetDateTime>processedAt()A timestamp in RFC 3339 format final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaManagedAgentsUserMessageEvent.Content>>_content()Returns the raw JSON value of content. final JsonField<BetaManagedAgentsUserMessageEvent.Type>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserMessageEvent.BuildertoBuilder()final BetaManagedAgentsUserMessageEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserMessageEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserMessageEvent. -
-
Method Detail
-
content
final List<BetaManagedAgentsUserMessageEvent.Content> content()
Array of content blocks comprising the user message.
-
type
final BetaManagedAgentsUserMessageEvent.Type type()
-
processedAt
final Optional<OffsetDateTime> processedAt()
A timestamp in RFC 3339 format
-
_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<BetaManagedAgentsUserMessageEvent.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsUserMessageEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsUserMessageEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsUserMessageEvent 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 BetaManagedAgentsUserMessageEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserMessageEvent.
The following fields are required:
.id() .content() .type()
-
-
-
-