Class BetaManagedAgentsSystemMessageEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSystemMessageEventA mid-conversation system message event. Carries system-role content that is appended to the session as a
role: "system"turn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSystemMessageEvent.BuilderA builder for BetaManagedAgentsSystemMessageEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final List<BetaManagedAgentsSystemContentBlock>content()System content blocks. final Optional<OffsetDateTime>processedAt()Timestamp when this system message was processed. 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<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaManagedAgentsSystemContentBlock>>_content()Returns the raw JSON value of content. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSystemMessageEvent.BuildertoBuilder()final BetaManagedAgentsSystemMessageEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSystemMessageEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSystemMessageEvent. -
-
Method Detail
-
content
final List<BetaManagedAgentsSystemContentBlock> content()
System content blocks. Text-only.
-
processedAt
final Optional<OffsetDateTime> processedAt()
Timestamp when this system message was processed.
-
_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).
-
_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<BetaManagedAgentsSystemContentBlock>> _content()
Returns the raw JSON value of content.
Unlike content, 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 BetaManagedAgentsSystemMessageEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSystemMessageEvent 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 BetaManagedAgentsSystemMessageEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSystemMessageEvent.
The following fields are required:
.id() .content()
-
-
-
-