Class SessionUpdateParams.Body
-
- All Implemented Interfaces:
public final class SessionUpdateParams.BodyRequest parameters for updating a
session. Omit a field to preserve its current value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsSessionAgentUpdate>agent()Mid-session agent configuration update. final Optional<SessionUpdateParams.Metadata>metadata()Metadata patch. final Optional<String>title()Human-readable session title. final Optional<List<String>>vaultIds()Vault IDs ( vlt_*) to attach to the session.final JsonField<BetaManagedAgentsSessionAgentUpdate>_agent()Returns the raw JSON value of agent. final JsonField<SessionUpdateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final Map<String, JsonValue>_additionalProperties()final SessionUpdateParams.Body.BuildertoBuilder()final SessionUpdateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
agent
final Optional<BetaManagedAgentsSessionAgentUpdate> agent()
Mid-session agent configuration update. Only
toolsandmcp_serversare updatable. Full replacement: the provided array becomes the new value. To preserve existing entries, GET the session, modify the array, and POST it back.
-
metadata
final Optional<SessionUpdateParams.Metadata> metadata()
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve.
-
vaultIds
final Optional<List<String>> vaultIds()
Vault IDs (
vlt_*) to attach to the session. Not yet supported; requests setting this field are rejected. Reserved for future use.
-
_agent
final JsonField<BetaManagedAgentsSessionAgentUpdate> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<SessionUpdateParams.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.
-
_vaultIds
final JsonField<List<String>> _vaultIds()
Returns the raw JSON value of vaultIds.
Unlike vaultIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionUpdateParams.Body.Builder toBuilder()
-
validate
final SessionUpdateParams.Body 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 SessionUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-