Class BetaManagedAgentsSystemMessageEventParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSystemMessageEventParamsPrivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a
role: "system"turn rather than replacing the top-level system prompt. At most one per request: it must be the final event and immediately follow theuser.message,user.tool_result, oruser.custom_tool_resultit accompanies. Only supported on models that accept mid-conversation system messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSystemMessageEventParams.BuilderA builder for BetaManagedAgentsSystemMessageEventParams.
-
Method Summary
Modifier and Type Method Description final List<BetaManagedAgentsSystemContentBlock>content()System content blocks to append. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("system.message")final JsonField<List<BetaManagedAgentsSystemContentBlock>>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSystemMessageEventParams.BuildertoBuilder()final BetaManagedAgentsSystemMessageEventParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSystemMessageEventParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSystemMessageEventParams. final static BetaManagedAgentsSystemMessageEventParamsof(List<BetaManagedAgentsSystemContentBlock> content)Returns an immutable instance of BetaManagedAgentsSystemMessageEventParams with the required content set to the given value. -
-
Method Detail
-
content
final List<BetaManagedAgentsSystemContentBlock> content()
System content blocks to append. Text-only.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("system.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<BetaManagedAgentsSystemContentBlock>> _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 BetaManagedAgentsSystemMessageEventParams.Builder toBuilder()
-
validate
final BetaManagedAgentsSystemMessageEventParams 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 BetaManagedAgentsSystemMessageEventParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSystemMessageEventParams.
The following fields are required:
.content()
-
of
final static BetaManagedAgentsSystemMessageEventParams of(List<BetaManagedAgentsSystemContentBlock> content)
Returns an immutable instance of BetaManagedAgentsSystemMessageEventParams with the required content set to the given value.
-
-
-
-