Class: Anthropic::Models::Beta::BetaManagedAgentsScheduleTriggerContext

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

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 ⇒ BetaManagedAgentsScheduleTriggerContext

Returns a new instance of BetaManagedAgentsScheduleTriggerContext.

Parameters:

  • scheduled_at: (Time)
  • type: (:schedule)


14
# File 'sig/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbs', line 14

def initialize: (scheduled_at: Time, ?type: :schedule) -> void

Instance Attribute Details

#scheduled_at ⇒ Time

The UTC instant at which the cron expression matched in the configured timezone, before jitter is applied. At most one run is recorded per (deployment_id, scheduled_at) pair.

Parameters:

  • value (Time)

Returns:

  • (Time)


13
# File 'lib/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rb', line 13

required :scheduled_at, Time

#type ⇒ Symbol, :schedule

Parameters:

  • value (:schedule)

Returns:

  • (Symbol, :schedule)


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

required :type, const: :schedule

Instance Method Details

#to_hash ⇒ { scheduled_at: Time, type: :schedule }

Returns:

  • ({ scheduled_at: Time, type: :schedule })


16
# File 'sig/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbs', line 16

def to_hash: -> { scheduled_at: Time, type: :schedule }