Class SessionUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class SessionUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
agent
final SessionUpdateParams.Body.Builder agent(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.
-
agent
final SessionUpdateParams.Body.Builder agent(JsonField<BetaManagedAgentsSessionAgentUpdate> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed BetaManagedAgentsSessionAgentUpdate value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
budget
final SessionUpdateParams.Body.Builder budget(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.
-
budget
final SessionUpdateParams.Body.Builder budget(Optional<BetaManagedAgentsBudgetLimit> budget)
Alias for calling Builder.budget with
budget.orElse(null).
-
budget
final SessionUpdateParams.Body.Builder budget(JsonField<BetaManagedAgentsBudgetLimit> budget)
Sets Builder.budget to an arbitrary JSON value.
You should usually call Builder.budget with a well-typed BetaManagedAgentsBudgetLimit value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final SessionUpdateParams.Body.Builder metadata(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.
-
metadata
final SessionUpdateParams.Body.Builder metadata(Optional<SessionUpdateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final SessionUpdateParams.Body.Builder metadata(JsonField<SessionUpdateParams.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final SessionUpdateParams.Body.Builder title(String title)
Human-readable session title.
-
title
final SessionUpdateParams.Body.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final SessionUpdateParams.Body.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultIds
final SessionUpdateParams.Body.Builder vaultIds(List<String> vaultIds)
Vault IDs (
vlt_*) to attach to the session. Not yet supported; requests setting this field are rejected. Reserved for future use.
-
vaultIds
final SessionUpdateParams.Body.Builder vaultIds(JsonField<List<String>> vaultIds)
Sets Builder.vaultIds to an arbitrary JSON value.
You should usually call Builder.vaultIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SessionUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
limitBudget
final SessionUpdateParams.Body.Builder limitBudget(BetaMonetaryAmount maxListCost)
Alias for calling budget with the following:
BetaManagedAgentsBudgetLimit.builder() .maxListCost(maxListCost) .build()
-
addVaultId
final SessionUpdateParams.Body.Builder addVaultId(String vaultId)
-
putAdditionalProperty
final SessionUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SessionUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SessionUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SessionUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SessionUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-