Class: Anthropic::Models::Beta::AgentUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/agent_update_params.rb

Overview

Defined Under Namespace

Modules: Model, Tool

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(agent_id:, version:, description: nil, mcp_servers: nil, metadata: nil, model: nil, name: nil, skills: nil, system_: nil, tools: nil, betas: nil, request_options: {}) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::Beta::AgentUpdateParams for more details.

Parameters:



# File 'lib/anthropic/models/beta/agent_update_params.rb', line 99


Instance Attribute Details

#agent_idString

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 14

required :agent_id, String

#betasArray<String, Symbol, Anthropic::Models::AnthropicBeta>?

Optional header to specify the beta version(s) you want to use.

Returns:



97
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 97

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#descriptionString?

Description. Up to 2048 characters. Omit to preserve; send empty string or null to clear.

Returns:

  • (String, nil)


29
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 29

optional :description, String, nil?: true

#mcp_serversArray<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?

MCP servers. Full replacement. Omit to preserve; send empty array or null to clear. Names must be unique. Maximum 20.



36
37
38
39
40
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 36

optional :mcp_servers,
-> {
  Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams]
},
nil?: true

#metadataHash{Symbol=>String, nil}?

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.

Returns:

  • (Hash{Symbol=>String, nil}, nil)


48
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 48

optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true

#modelSymbol, ...

Model identifier. Accepts the model string, e.g. claude-opus-4-6, or a model_config object for additional configuration control. Omit to preserve. Cannot be cleared.



57
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 57

optional :model, union: -> { Anthropic::Beta::AgentUpdateParams::Model }

#nameString?

Human-readable name. 1-256 characters. Omit to preserve. Cannot be cleared.

Returns:

  • (String, nil)


63
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 63

optional :name, String

#skillsArray<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>?

Skills. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 20.



70
71
72
73
74
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 70

optional :skills,
-> {
  Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSkillParams]
},
nil?: true

#system_String?

System prompt. Up to 100,000 characters. Omit to preserve; send empty string or null to clear.

Returns:

  • (String, nil)


81
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 81

optional :system_, String, api_name: :system, nil?: true

#toolsArray<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>?

Tool configurations available to the agent. Full replacement. Omit to preserve; send empty array or null to clear. Maximum of 128 tools across all toolsets allowed.



89
90
91
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 89

optional :tools,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::AgentUpdateParams::Tool] },
nil?: true

#versionInteger

The agent's current version, used to prevent concurrent overwrites. Obtain this value from a create or retrieve response. The request fails if this does not match the server's current version.

Returns:

  • (Integer)


22
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 22

required :version, Integer

Class Method Details

.variantsArray(Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel, Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams)



# File 'lib/anthropic/models/beta/agent_update_params.rb', line 140