Class: Anthropic::Models::Beta::AgentUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::AgentUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/agent_update_params.rb,
sig/anthropic/models/beta/agent_update_params.rbs
Overview
Defined Under Namespace
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Anthropic
Instance Attribute Summary collapse
- #agent_id ⇒ String
-
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#description ⇒ String?
Description.
-
#mcp_servers ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?
MCP servers.
-
#metadata ⇒ Hash{Symbol=>String, nil}?
Metadata patch.
-
#model ⇒ Symbol, ...
Model identifier.
-
#multiagent ⇒ Anthropic::Models::Beta::BetaManagedAgentsMultiagentParams?
A coordinator topology: the session's primary thread orchestrates work by spawning session threads, each running an agent drawn from the
agentsroster. -
#name ⇒ String?
Human-readable name.
-
#skills ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>?
Skills.
-
#system_ ⇒ String?
System prompt.
-
#tools ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>?
Tool configurations available to the agent.
-
#version ⇒ Integer?
The agent's current version, used to prevent concurrent overwrites.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_id:, description: nil, mcp_servers: nil, metadata: nil, model: nil, multiagent: nil, name: nil, skills: nil, system_: nil, tools: nil, version: nil, betas: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see AgentUpdateParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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:, description: nil, mcp_servers: nil, metadata: nil, model: nil, multiagent: nil, name: nil, skills: nil, system_: nil, tools: nil, version: nil, betas: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Anthropic::Models::Beta::AgentUpdateParams for more details.
|
|
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 107
|
Instance Attribute Details
#agent_id ⇒ String
14 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 14 required :agent_id, String |
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
105 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 105 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#description ⇒ String?
Description. Omit to preserve; send empty string or null to clear.
20 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 20 optional :description, String, nil?: true |
#mcp_servers ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?
MCP servers. Full replacement. Omit to preserve; send empty array or null to
clear. Names must be unique. Maximum 20. Every server must be referenced by an
mcp_toolset in the agent's resulting tools; unreferenced servers are
rejected. See the
MCP connector guide.
30 31 32 33 34 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 30 optional :mcp_servers, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams] }, nil?: true |
#metadata ⇒ Hash{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.
42 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 42 optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true |
#model ⇒ Symbol, ...
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.
51 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 51 optional :model, union: -> { Anthropic::Beta::AgentUpdateParams::Model } |
#multiagent ⇒ Anthropic::Models::Beta::BetaManagedAgentsMultiagentParams?
A coordinator topology: the session's primary thread orchestrates work by
spawning session threads, each running an agent drawn from the agents roster.
58 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 58 optional :multiagent, -> { Anthropic::Beta::BetaManagedAgentsMultiagentParams }, nil?: true |
#name ⇒ String?
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
64 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 64 optional :name, String |
#skills ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>?
Skills. Full replacement. Omit to preserve; send empty array or null to clear.
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. Omit to preserve; send empty string or null to clear.
80 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 80 optional :system_, String, api_name: :system, nil?: true |
#tools ⇒ Array<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.
88 89 90 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 88 optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::AgentUpdateParams::Tool] }, nil?: true |
#version ⇒ Integer?
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.
99 |
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 99 optional :version, Integer |
Class Method Details
.variants ⇒ Array(Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel, Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams)
|
|
# File 'lib/anthropic/models/beta/agent_update_params.rb', line 152
|
Instance Method Details
#to_hash ⇒ {
77 |
# File 'sig/anthropic/models/beta/agent_update_params.rbs', line 77
def to_hash: -> {
|