Class: Anthropic::Models::Beta::DeploymentCreateParams

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

Overview

See Also:

  • Anthropic::Resources::Beta::Deployments#create

Defined Under Namespace

Modules: Agent, Resource

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

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:, environment_id:, initial_events:, name:, budget: nil, description: nil, metadata: nil, resources: nil, schedule: nil, vault_ids: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ void

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

Parameters:



# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 102

Instance Attribute Details

#agent ⇒ Anthropic::Models::Beta::BetaManagedAgentsAgentParams, String

Agent to deploy. Accepts the agent ID string, which pins the latest version, or an agent object with both id and version specified. The agent must exist and not be archived.

Parameters:

  • value (Anthropic::Models::Beta::DeploymentCreateParams::agent)

Returns:



17
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 17

required :agent, union: -> { Anthropic::Beta::DeploymentCreateParams::Agent }

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

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

Returns:



89
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 89

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

#budget ⇒ Anthropic::Models::Beta::BetaManagedAgentsBudgetLimit?

Enforced spend ceiling stamped onto each session created from this deployment, copied at session-creation time. Omit to leave sessions uncapped. The deployment agent's model must have a public list price, or the request is rejected; a multiagent roster is re-validated in full when each fire copies the cap, which fails closed the same way.

Parameters:

  • value (Anthropic::Beta::BetaManagedAgentsBudgetLimit, nil)

Returns:



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

optional :budget, -> { Anthropic::Beta::BetaManagedAgentsBudgetLimit }, nil?: true

#description ⇒ String?

Description of what the deployment does.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#environment_id ⇒ String

ID of the environment defining the container configuration for sessions created from this deployment.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :environment_id, String

#initial_events ⇒ Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserMessageEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsUserDefineOutcomeEventParams, Anthropic::Models::Beta::Sessions::BetaManagedAgentsSystemMessageEventParams>

Events to send to each session immediately after creation. At least 1, maximum 50.



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

required :initial_events,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsDeploymentInitialEventParams] }

#metadata ⇒ Hash{Symbol=>String}?

Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Parameters:

  • (::Hash[Symbol, String])

Returns:

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


61
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 61

optional :metadata, Anthropic::Internal::Type::HashOf[String]

#name ⇒ String

Human-readable name for the deployment.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#resources ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams, Anthropic::Models::Beta::BetaManagedAgentsFileResourceParams, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam>?

Resources (e.g. repositories, files) to mount into each session's container. Maximum 500.



68
69
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 68

optional :resources,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::DeploymentCreateParams::Resource] }

#schedule ⇒ Anthropic::Models::Beta::BetaManagedAgentsScheduleParams?

Optional recurring cron schedule. When present, the deployment fires automatically. Both expression and timezone are required when schedule is set.

Parameters:

  • value (Anthropic::Beta::BetaManagedAgentsScheduleParams, nil)

Returns:



76
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 76

optional :schedule, -> { Anthropic::Beta::BetaManagedAgentsScheduleParams }, nil?: true

#vault_ids ⇒ Array<String>?

Vault IDs for stored credentials the agent can use during sessions created from this deployment. Maximum 50.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


83
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 83

optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]

#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.

Parameters:

  • (String)

Returns:

  • (String, nil)


100
# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 100

optional :workspace_id, String

Class Method Details

.variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsAgentParams, String)



# File 'lib/anthropic/models/beta/deployment_create_params.rb', line 143

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


79
# File 'sig/anthropic/models/beta/deployment_create_params.rbs', line 79

def to_hash: -> {