Class: Anthropic::Models::Beta::AgentCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::AgentCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/agent_create_params.rb,
sig/anthropic/models/beta/agent_create_params.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header. -
#description ⇒ String?
Description of what the agent does.
-
#execution_identity ⇒ Anthropic::Models::Beta::BetaManagedAgentsAWSRoleExecutionIdentityParams, ...
Execution principal for runs of this agent.
-
#mcp_servers ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?
MCP servers this agent connects to.
-
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary key-value metadata.
-
#model ⇒ Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, ...
Model identifier.
-
#multiagent ⇒ Anthropic::Models::Beta::BetaManagedAgentsMultiagentCoordinatorParams, ...
Multiagent orchestration configuration.
-
#name ⇒ String
Human-readable name for the agent.
-
#skills ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>?
Skills available to the agent.
-
#system_ ⇒ String?
System prompt for the agent.
-
#tools ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>?
Tool configurations available to the agent.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model:, name:, description: nil, execution_identity: nil, mcp_servers: nil, metadata: nil, multiagent: nil, skills: nil, system_: nil, tools: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ AgentCreateParams
constructor
Some parameter documentations has been truncated, see AgentCreateParams for more details.
- #to_hash ⇒ { model: Anthropic::Models::Beta::AgentCreateParams::model, name: String, description: String?, execution_identity: Anthropic::Models::Beta::beta_managed_agents_execution_identity_params?, mcp_servers: ::Array[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams], metadata: ::Hash[Symbol, String], multiagent: Anthropic::Models::Beta::beta_managed_agents_multiagent_params?, skills: ::Array[Anthropic::Models::Beta::beta_managed_agents_skill_params], system_: String?, tools: ::Array[Anthropic::Models::Beta::AgentCreateParams::tool], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
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(model:, name:, description: nil, execution_identity: nil, mcp_servers: nil, metadata: nil, multiagent: nil, skills: nil, system_: nil, tools: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ AgentCreateParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::AgentCreateParams for more details.
|
|
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 103
|
Instance Attribute Details
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send managed-agents-2026-04-01 in this
header.
90 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 90 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#description ⇒ String?
Description of what the agent does.
30 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 30 optional :description, String, nil?: true |
#execution_identity ⇒ Anthropic::Models::Beta::BetaManagedAgentsAWSRoleExecutionIdentityParams, ...
Execution principal for runs of this agent. Omitting it, sending null, or
sending {"type": "service_account"} stores the default.
37 38 39 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 37 optional :execution_identity, union: -> { Anthropic::Beta::BetaManagedAgentsExecutionIdentityParams }, nil?: true |
#mcp_servers ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?
MCP servers this agent connects to. Maximum 20. Names must be unique within the
array. Every server must be referenced by an mcp_toolset in tools;
unreferenced servers are rejected. See the
MCP connector guide.
48 49 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 48 optional :mcp_servers, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams] } |
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
56 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 56 optional :metadata, Anthropic::Internal::Type::HashOf[String] |
#model ⇒ Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, ...
Model identifier. Accepts the
model string,
e.g. claude-opus-5-5, or a model_config object for additional configuration
control
18 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 18 required :model, union: -> { Anthropic::Beta::AgentCreateParams::Model } |
#multiagent ⇒ Anthropic::Models::Beta::BetaManagedAgentsMultiagentCoordinatorParams, ...
Multiagent orchestration configuration.
62 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 62 optional :multiagent, union: -> { Anthropic::Beta::BetaManagedAgentsMultiagentParams }, nil?: true |
#name ⇒ String
Human-readable name for the agent.
24 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 24 required :name, String |
#skills ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>?
Skills available to the agent.
68 69 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 68 optional :skills, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSkillParams] } |
#system_ ⇒ String?
System prompt for the agent.
75 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 75 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. Maximum of 256 tools across all toolsets allowed.
82 83 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 82 optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::AgentCreateParams::Tool] } |
#workspace_id ⇒ String?
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.
101 |
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 101 optional :workspace_id, String |
Class Method Details
.variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel)
|
|
# File 'lib/anthropic/models/beta/agent_create_params.rb', line 148
|
Instance Method Details
#to_hash ⇒ { model: Anthropic::Models::Beta::AgentCreateParams::model, name: String, description: String?, execution_identity: Anthropic::Models::Beta::beta_managed_agents_execution_identity_params?, mcp_servers: ::Array[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams], metadata: ::Hash[Symbol, String], multiagent: Anthropic::Models::Beta::beta_managed_agents_multiagent_params?, skills: ::Array[Anthropic::Models::Beta::beta_managed_agents_skill_params], system_: String?, tools: ::Array[Anthropic::Models::Beta::AgentCreateParams::tool], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'sig/anthropic/models/beta/agent_create_params.rbs', line 85
def to_hash: -> {
model: Anthropic::Models::Beta::AgentCreateParams::model,
name: String,
description: String?,
execution_identity: Anthropic::Models::Beta::beta_managed_agents_execution_identity_params?,
mcp_servers: ::Array[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams],
metadata: ::Hash[Symbol, String],
multiagent: Anthropic::Models::Beta::beta_managed_agents_multiagent_params?,
skills: ::Array[Anthropic::Models::Beta::beta_managed_agents_skill_params],
system_: String?,
tools: ::Array[Anthropic::Models::Beta::AgentCreateParams::tool],
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|