Class: Anthropic::Models::Beta::BetaManagedAgentsDeployment

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

Overview

See Also:

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

Defined Under Namespace

Modules: Type

Instance Attribute 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:, agent:, archived_at:, created_at:, description:, environment_id:, initial_events:, metadata:, name:, paused_reason:, resources:, schedule:, status:, type:, updated_at:, vault_ids:) ⇒ Object

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

A deployment is a configured instance of an agent — it binds the agent to everything needed to run it autonomously: an environment, credentials, initial events, and an optional schedule.

Parameters:



# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 109

Instance Attribute Details

#agentAnthropic::Models::Beta::BetaManagedAgentsAgentReference

A resolved agent reference with a concrete version.

Parameters:

  • value (Anthropic::Beta::BetaManagedAgentsAgentReference)

Returns:



18
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 18

required :agent, -> { Anthropic::Beta::BetaManagedAgentsAgentReference }

#archived_atTime?

A timestamp in RFC 3339 format

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


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

required :archived_at, Time, nil?: true

#created_atTime

A timestamp in RFC 3339 format

Parameters:

  • value (Time)

Returns:

  • (Time)


30
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 30

required :created_at, Time

#descriptionString?

Description of what the deployment does.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


36
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 36

required :description, String, nil?: true

#environment_idString

ID of the environment where sessions run.

Parameters:

  • value (String)

Returns:

  • (String)


42
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 42

required :environment_id, String

#idString

Unique identifier for this deployment.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 12

required :id, String

#initial_eventsArray<Anthropic::Models::Beta::BetaManagedAgentsDeploymentUserMessageEvent, Anthropic::Models::Beta::BetaManagedAgentsDeploymentUserDefineOutcomeEvent, Anthropic::Models::Beta::BetaManagedAgentsDeploymentSystemMessageEvent>

Events sent to each session immediately after creation.



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

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

#metadataHash{Symbol=>String}

Arbitrary key-value metadata. Maximum 16 pairs.

Parameters:

  • value (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String})


55
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 55

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

#nameString

Human-readable name.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#paused_reasonAnthropic::Models::Beta::BetaManagedAgentsManualDeploymentPausedReason, ...

Why a deployment is paused. Non-null exactly when status is paused.

Parameters:

  • value (Anthropic::Models::Beta::beta_managed_agents_deployment_paused_reason, nil)

Returns:



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

required :paused_reason,
union: -> { Anthropic::Beta::BetaManagedAgentsDeploymentPausedReason },
nil?: true

#resourcesArray<Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig, Anthropic::Models::Beta::BetaManagedAgentsFileResourceConfig, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceConfig>

Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials.



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

required :resources,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionResourceConfig] }

#scheduleAnthropic::Models::Beta::BetaManagedAgentsSchedule?

5-field POSIX cron schedule with computed runtime timestamps.

Parameters:

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

Returns:



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

required :schedule, -> { Anthropic::Beta::BetaManagedAgentsSchedule }, nil?: true

#statusSymbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus

Lifecycle status of a deployment.

Parameters:

  • value (Anthropic::Models::Beta::beta_managed_agents_deployment_status)

Returns:



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

required :status, enum: -> { Anthropic::Beta::BetaManagedAgentsDeploymentStatus }

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

Parameters:

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

Returns:



94
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 94

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

#updated_atTime

A timestamp in RFC 3339 format

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :updated_at, Time

#vault_idsArray<String>

Vault IDs supplying stored credentials for sessions created from this deployment.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


107
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 107

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

Instance Method Details

#to_hash{

Returns:

  • ({)


78
# File 'sig/anthropic/models/beta/beta_managed_agents_deployment.rbs', line 78

def to_hash: -> {