Class: Anthropic::Models::Beta::BetaManagedAgentsDeployment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsDeployment
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_deployment.rb,
sig/anthropic/models/beta/beta_managed_agents_deployment.rbs
Overview
Instance Attribute Summary collapse
-
#agent ⇒ Anthropic::Models::Beta::BetaManagedAgentsAgentReference
Reference to the agent this deployment runs, resolved to a concrete version.
-
#archived_at ⇒ Time?
Time the deployment was archived.
-
#budget ⇒ Anthropic::Models::Beta::BetaManagedAgentsBudgetLimit?
Spend ceiling stamped onto each session created from this deployment.
-
#created_at ⇒ Time
Time the deployment was created.
-
#description ⇒ String?
Description of what the deployment does.
-
#environment_id ⇒ String
ID of the
environmentwhere sessions run. -
#id ⇒ String
Unique identifier for this deployment.
-
#initial_events ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsDeploymentUserMessageEvent, Anthropic::Models::Beta::BetaManagedAgentsDeploymentUserDefineOutcomeEvent, Anthropic::Models::Beta::BetaManagedAgentsDeploymentSystemMessageEvent>
Events sent to each session immediately after creation.
-
#metadata ⇒ Hash{Symbol=>String}
Arbitrary key-value metadata.
-
#name ⇒ String
Human-readable name.
-
#paused_reason ⇒ Anthropic::Models::Beta::BetaManagedAgentsManualDeploymentPausedReason, ...
Why the deployment is
paused. -
#resources ⇒ Array<Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig, Anthropic::Models::Beta::BetaManagedAgentsFileResourceConfig, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceConfig>
Resources attached to sessions created from this deployment.
-
#schedule ⇒ Anthropic::Models::Beta::BetaManagedAgentsSchedule?
Recurring cron schedule.
-
#status ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus
Computed status of the deployment:
activeorpaused. - #type ⇒ Symbol, :deployment
-
#updated_at ⇒ Time
Time the deployment was last updated.
-
#vault_ids ⇒ Array<String>
Vault IDs supplying stored credentials for sessions created from this deployment.
Instance Method Summary collapse
-
#initialize ⇒ BetaManagedAgentsDeployment
constructor
A new instance of BetaManagedAgentsDeployment.
- #to_hash ⇒ { id: String, agent: Anthropic::Beta::BetaManagedAgentsAgentReference, archived_at: Time?, created_at: Time, description: String?, environment_id: String, initial_events: ::Array[Anthropic::Models::Beta::beta_managed_agents_deployment_initial_event], metadata: ::Hash[Symbol, String], name: String, paused_reason: Anthropic::Models::Beta::beta_managed_agents_deployment_paused_reason?, resources: ::Array[Anthropic::Models::Beta::beta_managed_agents_session_resource_config], schedule: Anthropic::Beta::BetaManagedAgentsSchedule?, status: Anthropic::Models::Beta::beta_managed_agents_deployment_status, type: :deployment, updated_at: Time, vault_ids: ::Array[String], budget: Anthropic::Beta::BetaManagedAgentsBudgetLimit? }
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 ⇒ BetaManagedAgentsDeployment
Returns a new instance of BetaManagedAgentsDeployment.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'sig/anthropic/models/beta/beta_managed_agents_deployment.rbs', line 62
def initialize: (
id: String,
agent: Anthropic::Beta::BetaManagedAgentsAgentReference,
archived_at: Time?,
created_at: Time,
description: String?,
environment_id: String,
initial_events: ::Array[Anthropic::Models::Beta::beta_managed_agents_deployment_initial_event],
metadata: ::Hash[Symbol, String],
name: String,
paused_reason: Anthropic::Models::Beta::beta_managed_agents_deployment_paused_reason?,
resources: ::Array[Anthropic::Models::Beta::beta_managed_agents_session_resource_config],
schedule: Anthropic::Beta::BetaManagedAgentsSchedule?,
status: Anthropic::Models::Beta::beta_managed_agents_deployment_status,
updated_at: Time,
vault_ids: ::Array[String],
?budget: Anthropic::Beta::BetaManagedAgentsBudgetLimit?,
?type: :deployment
) -> void
|
Instance Attribute Details
#agent ⇒ Anthropic::Models::Beta::BetaManagedAgentsAgentReference
Reference to the agent this deployment runs, resolved to a concrete version.
18 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 18 required :agent, -> { Anthropic::Beta::BetaManagedAgentsAgentReference } |
#archived_at ⇒ Time?
Time the deployment was archived. Null if not archived.
24 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 24 required :archived_at, Time, nil?: true |
#budget ⇒ Anthropic::Models::Beta::BetaManagedAgentsBudgetLimit?
Spend ceiling stamped onto each session created from this deployment. Absent when no budget is set.
118 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 118 optional :budget, -> { Anthropic::Beta::BetaManagedAgentsBudgetLimit }, nil?: true |
#created_at ⇒ Time
Time the deployment was created.
30 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 30 required :created_at, Time |
#description ⇒ String?
Description of what the deployment does.
36 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 36 required :description, String, nil?: true |
#environment_id ⇒ String
ID of the environment where sessions run.
42 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 42 required :environment_id, String |
#id ⇒ String
Unique identifier for this deployment.
12 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 12 required :id, String |
#initial_events ⇒ Array<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] } |
#metadata ⇒ Hash{Symbol=>String}
Arbitrary key-value metadata. Maximum 16 pairs.
55 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 55 required :metadata, Anthropic::Internal::Type::HashOf[String] |
#name ⇒ String
Human-readable name.
61 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 61 required :name, String |
#paused_reason ⇒ Anthropic::Models::Beta::BetaManagedAgentsManualDeploymentPausedReason, ...
Why the deployment is paused. Non-null exactly when status is paused; null
otherwise.
68 69 70 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 68 required :paused_reason, union: -> { Anthropic::Beta::BetaManagedAgentsDeploymentPausedReason }, nil?: true |
#resources ⇒ Array<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.
77 78 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 77 required :resources, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionResourceConfig] } |
#schedule ⇒ Anthropic::Models::Beta::BetaManagedAgentsSchedule?
Recurring cron schedule. Presence enables scheduled execution; null means manual-only. Includes computed timestamps (next fire times, last run) on the cron variant.
86 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 86 required :schedule, -> { Anthropic::Beta::BetaManagedAgentsSchedule }, nil?: true |
#status ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus
Computed status of the deployment: active or paused. Archived deployments
report active with archived_at set.
93 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 93 required :status, enum: -> { Anthropic::Beta::BetaManagedAgentsDeploymentStatus } |
#type ⇒ Symbol, :deployment
98 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 98 required :type, const: :deployment |
#updated_at ⇒ Time
Time the deployment was last updated.
104 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 104 required :updated_at, Time |
#vault_ids ⇒ Array<String>
Vault IDs supplying stored credentials for sessions created from this deployment.
111 |
# File 'lib/anthropic/models/beta/beta_managed_agents_deployment.rb', line 111 required :vault_ids, Anthropic::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ { id: String, agent: Anthropic::Beta::BetaManagedAgentsAgentReference, archived_at: Time?, created_at: Time, description: String?, environment_id: String, initial_events: ::Array[Anthropic::Models::Beta::beta_managed_agents_deployment_initial_event], metadata: ::Hash[Symbol, String], name: String, paused_reason: Anthropic::Models::Beta::beta_managed_agents_deployment_paused_reason?, resources: ::Array[Anthropic::Models::Beta::beta_managed_agents_session_resource_config], schedule: Anthropic::Beta::BetaManagedAgentsSchedule?, status: Anthropic::Models::Beta::beta_managed_agents_deployment_status, type: :deployment, updated_at: Time, vault_ids: ::Array[String], budget: Anthropic::Beta::BetaManagedAgentsBudgetLimit? }
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'sig/anthropic/models/beta/beta_managed_agents_deployment.rbs', line 82
def to_hash: -> {
id: String,
agent: Anthropic::Beta::BetaManagedAgentsAgentReference,
archived_at: Time?,
created_at: Time,
description: String?,
environment_id: String,
initial_events: ::Array[Anthropic::Models::Beta::beta_managed_agents_deployment_initial_event],
metadata: ::Hash[Symbol, String],
name: String,
paused_reason: Anthropic::Models::Beta::beta_managed_agents_deployment_paused_reason?,
resources: ::Array[Anthropic::Models::Beta::beta_managed_agents_session_resource_config],
schedule: Anthropic::Beta::BetaManagedAgentsSchedule?,
status: Anthropic::Models::Beta::beta_managed_agents_deployment_status,
type: :deployment,
updated_at: Time,
vault_ids: ::Array[String],
budget: Anthropic::Beta::BetaManagedAgentsBudgetLimit?
}
|