Class: Anthropic::Models::Beta::BetaManagedAgentsAgentWithOverridesParams

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb,
sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs

Defined Under Namespace

Modules: Model, Tool, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(id:, type:, mcp_servers: nil, model: nil, skills: nil, system_: nil, tools: nil, version: nil) ⇒ Object

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

Reference to an agent plus optional configuration overrides. Each provided field replaces the agent's value for the caller's use; the agent resource is unchanged.

Parameters:



# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 62

Instance Attribute Details

#idString

The agent ID.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 11

required :id, String

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

Replacement MCP server list. Full replacement: the provided array becomes the MCP servers. Send an empty array to clear; omit to preserve the agent's servers.



23
24
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 23

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

#modelSymbol, ...

Replacement model. Accepts the model string, e.g. claude-opus-4-6, or a model_config object. Omit to use the agent's model.



31
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 31

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

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

Replacement skill list. Full replacement: the provided array becomes the skills. Send an empty array to clear; omit to preserve the agent's skills.



38
39
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 38

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

#system_String?

Replacement system prompt. Up to 100,000 characters. Set to null to clear the agent's system prompt; omit to preserve it.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


46
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 46

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

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

Replacement tool list. Full replacement: the provided array becomes the tool configuration. Send an empty array to clear; omit to preserve the agent's tools.



53
54
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 53

optional :tools,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsAgentWithOverridesParams::Tool] }

#typeSymbol, Anthropic::Models::Beta::BetaManagedAgentsAgentWithOverridesParams::Type

Parameters:

  • value (Anthropic::Models::Beta::BetaManagedAgentsAgentWithOverridesParams::type_)

Returns:



16
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 16

required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsAgentWithOverridesParams::Type }

#versionInteger?

The specific agent version to use. Omit to use the latest version.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


60
# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 60

optional :version, Integer

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 93

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



# File 'lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb', line 112

Instance Method Details

#to_hash{

Returns:

  • ({)


64
# File 'sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs', line 64

def to_hash: -> {