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()Agent configuration update. final Optional<BetaManagedAgentsBudgetLimit>budget()Enforced spend ceiling for the session. 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<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. 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()
Agent configuration update. Only
toolsandmcp_serversare updatable mid-session. Only valid for sessions created from an agent or deployment reference. The session must not be running.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
Enforced spend ceiling for the session. Set an object to replace the budget of a session that was created with one, or
nullto remove it; omit to preserve. A budget cannot be added to a session created without one (rejected with reasonbudget_create_only), and a removed budget cannot be re-added. Allowed in any non-terminated status. Loweringmax_list_costto at or below the session's consumed list cost is rejected with reasonbudget_not_raised, and every model the session can run must have a public list price or the request is rejected with reasonmodel_not_budgetable.
-
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.
-
_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<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.
-
-
-
-