Class AgentUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class AgentUpdateParams implements Params
Update Agent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAgentUpdateParams.BuilderA builder for AgentUpdateParams.
public final classAgentUpdateParams.BodyRequest parameters for updating an
agent. Omit a field to preserve its current value.public final classAgentUpdateParams.MetadataMetadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.
public final classAgentUpdateParams.ModelModel identifier. Accepts the model string, e.g.
claude-opus-5-5, or amodel_configobject for additional configuration control. Omit to preserve. Cannot be cleared.public final classAgentUpdateParams.ToolUnion type for tool configurations in the tools array.
-
Method Summary
Modifier and Type Method Description final Optional<String>agentId()Unique identifier of the agent to update. final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send managed-agents-2026-04-01in this header.final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Optional<String>description()Description. final Optional<BetaManagedAgentsExecutionIdentityParams>executionIdentity()Execution principal for runs of this agent. final Optional<List<BetaManagedAgentsUrlMcpServerParams>>mcpServers()MCP servers. final Optional<AgentUpdateParams.Metadata>metadata()Metadata patch. final Optional<AgentUpdateParams.Model>model()Model identifier. final Optional<BetaManagedAgentsMultiagentParams>multiagent()Multiagent orchestration configuration. final Optional<String>name()Human-readable name. final Optional<List<BetaManagedAgentsSkillParams>>skills()Skills. final Optional<String>system()System prompt. final Optional<List<AgentUpdateParams.Tool>>tools()Tool configurations available to the agent. final Optional<Integer>version()The agent's current version, used to prevent concurrent overwrites. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<BetaManagedAgentsExecutionIdentityParams>_executionIdentity()Returns the raw JSON value of executionIdentity. final JsonField<List<BetaManagedAgentsUrlMcpServerParams>>_mcpServers()Returns the raw JSON value of mcpServers. final JsonField<AgentUpdateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<AgentUpdateParams.Model>_model()Returns the raw JSON value of model. final JsonField<BetaManagedAgentsMultiagentParams>_multiagent()Returns the raw JSON value of multiagent. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<BetaManagedAgentsSkillParams>>_skills()Returns the raw JSON value of skills. final JsonField<String>_system()Returns the raw JSON value of system. final JsonField<List<AgentUpdateParams.Tool>>_tools()Returns the raw JSON value of tools. final JsonField<Integer>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final AgentUpdateParams.BuildertoBuilder()final AgentUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static AgentUpdateParamsnone()final static AgentUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of AgentUpdateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header.
-
workspaceId
final Optional<String> workspaceId()
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
description
final Optional<String> description()
Description. Omit to preserve; send empty string or null to clear.
-
executionIdentity
final Optional<BetaManagedAgentsExecutionIdentityParams> executionIdentity()
Execution principal for runs of this agent. Full replacement. Omit to preserve; send null or
{"type": "service_account"}to restore the default.
-
mcpServers
final Optional<List<BetaManagedAgentsUrlMcpServerParams>> mcpServers()
MCP servers. Full replacement. Omit to preserve; send empty array or
nullto clear. Names must be unique. Maximum 20. Every server must be referenced by anmcp_toolsetin the agent's resultingtools; unreferenced servers are rejected. See the MCP connector guide.
-
metadata
final Optional<AgentUpdateParams.Metadata> metadata()
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.
-
model
final Optional<AgentUpdateParams.Model> model()
Model identifier. Accepts the model string, e.g.
claude-opus-5-5, or amodel_configobject for additional configuration control. Omit to preserve. Cannot be cleared.
-
multiagent
final Optional<BetaManagedAgentsMultiagentParams> multiagent()
Multiagent orchestration configuration. Full replacement. Omit to preserve; send null to clear.
-
name
final Optional<String> name()
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
-
skills
final Optional<List<BetaManagedAgentsSkillParams>> skills()
Skills. Full replacement. Omit to preserve; send empty array or null to clear.
-
system
final Optional<String> system()
System prompt. Omit to preserve; send empty string or null to clear.
-
tools
final Optional<List<AgentUpdateParams.Tool>> tools()
Tool configurations available to the agent. Full replacement. Omit to preserve; send empty array or null to clear. Maximum of 256 tools across all toolsets allowed.
-
version
final Optional<Integer> version()
The agent's current version, used to prevent concurrent overwrites. Obtain this value from a create or retrieve response. Must be at least 1 if specified. When supplied, the request fails if it does not match the server's current version; omit to apply the update unconditionally.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_executionIdentity
final JsonField<BetaManagedAgentsExecutionIdentityParams> _executionIdentity()
Returns the raw JSON value of executionIdentity.
Unlike executionIdentity, this method doesn't throw if the JSON field has an unexpected type.
-
_mcpServers
final JsonField<List<BetaManagedAgentsUrlMcpServerParams>> _mcpServers()
Returns the raw JSON value of mcpServers.
Unlike mcpServers, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<AgentUpdateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<AgentUpdateParams.Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_multiagent
final JsonField<BetaManagedAgentsMultiagentParams> _multiagent()
Returns the raw JSON value of multiagent.
Unlike multiagent, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_skills
final JsonField<List<BetaManagedAgentsSkillParams>> _skills()
Returns the raw JSON value of skills.
Unlike skills, this method doesn't throw if the JSON field has an unexpected type.
-
_system
final JsonField<String> _system()
Returns the raw JSON value of system.
Unlike system, this method doesn't throw if the JSON field has an unexpected type.
-
_tools
final JsonField<List<AgentUpdateParams.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<Integer> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final AgentUpdateParams.Builder toBuilder()
-
_body
final AgentUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static AgentUpdateParams none()
-
builder
final static AgentUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of AgentUpdateParams.
-
-
-
-