Class BetaManagedAgentsSessionUpdatedEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionUpdatedEventEmitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionUpdatedEvent.BuilderA builder for BetaManagedAgentsSessionUpdatedEvent.
public final classBetaManagedAgentsSessionUpdatedEvent.MetadataThe session's full metadata bag after the update. Present when the update set non-empty metadata; absent when metadata was unchanged or cleared to empty.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final OffsetDateTimeprocessedAt()Timestamp when the update was applied. final Optional<BetaManagedAgentsSessionAgent>agent()The session's effective agent configuration after the update. final Optional<BetaManagedAgentsBudgetLimit>budget()The session's budget after the update: the new budget when set or replaced, or null when the update removed it. final Optional<BetaManagedAgentsSessionUpdatedEvent.Metadata>metadata()The session's full metadata bag after the update. final Optional<String>title()The session's new title. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session.updated")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsSessionAgent>_agent()Returns the raw JSON value of agent. final JsonField<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. final JsonField<BetaManagedAgentsSessionUpdatedEvent.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_title()Returns the raw JSON value of title. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionUpdatedEvent.BuildertoBuilder()final BetaManagedAgentsSessionUpdatedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionUpdatedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionUpdatedEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
Timestamp when the update was applied.
-
agent
final Optional<BetaManagedAgentsSessionAgent> agent()
The session's effective agent configuration after the update. Present only when the update changed
agent(tools or mcp_servers); when present it is the full materialised snapshot, not a diff.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
The session's budget after the update: the new budget when set or replaced, or null when the update removed it. Present only when the update changed the budget.
-
metadata
final Optional<BetaManagedAgentsSessionUpdatedEvent.Metadata> metadata()
The session's full metadata bag after the update. Present when the update set non-empty metadata; absent when metadata was unchanged or cleared to empty.
-
title
final Optional<String> title()
The session's new title. Present only when the update changed it.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("session.updated")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.
-
_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.
-
_agent
final JsonField<BetaManagedAgentsSessionAgent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_budget
final JsonField<BetaManagedAgentsBudgetLimit> _budget()
Returns the raw JSON value of budget.
Unlike budget, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<BetaManagedAgentsSessionUpdatedEvent.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionUpdatedEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionUpdatedEvent 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 BetaManagedAgentsSessionUpdatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionUpdatedEvent.
The following fields are required:
.id() .processedAt()
-
-
-
-