Class BetaManagedAgentsUserMessageEventParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserMessageEventParamsParameters for sending a user message to the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserMessageEventParams.BuilderA builder for BetaManagedAgentsUserMessageEventParams.
public final classBetaManagedAgentsUserMessageEventParams.ContentContent block in a user message. Can be
text,image, ordocument.
-
Method Summary
Modifier and Type Method Description final List<BetaManagedAgentsUserMessageEventParams.Content>content()Array of content blocks for the user message. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user.message")final JsonField<List<BetaManagedAgentsUserMessageEventParams.Content>>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserMessageEventParams.BuildertoBuilder()final BetaManagedAgentsUserMessageEventParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserMessageEventParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserMessageEventParams. final static BetaManagedAgentsUserMessageEventParamsof(List<BetaManagedAgentsUserMessageEventParams.Content> content)Returns an immutable instance of BetaManagedAgentsUserMessageEventParams with the required content set to the given value. -
-
Method Detail
-
content
final List<BetaManagedAgentsUserMessageEventParams.Content> content()
Array of content blocks for the user message.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("user.message")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<List<BetaManagedAgentsUserMessageEventParams.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsUserMessageEventParams.Builder toBuilder()
-
validate
final BetaManagedAgentsUserMessageEventParams 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 BetaManagedAgentsUserMessageEventParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserMessageEventParams.
The following fields are required:
.content()
-
of
final static BetaManagedAgentsUserMessageEventParams of(List<BetaManagedAgentsUserMessageEventParams.Content> content)
Returns an immutable instance of BetaManagedAgentsUserMessageEventParams with the required content set to the given value.
-
-
-
-