Class: Cadenya::Models::Agents::AgentSchedule

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/agents/agent_schedule.rb,
sig/cadenya/models/agents/agent_schedule.rbs

Overview

See Also:

  • Cadenya::Resources::Agents::Schedules#create

Defined Under Namespace

Modules: State

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(metadata:, spec:, state:, info: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::Agents::AgentSchedule for more details.

AgentSchedule resource — a recurring trigger attached to an agent that creates objectives on its cadence.

Parameters:



# File 'lib/cadenya/models/agents/agent_schedule.rb', line 36

Instance Attribute Details

#infoCadenya::Models::Agents::AgentScheduleInfo?

AgentScheduleInfo provides read-only runtime data about a schedule.



24
# File 'lib/cadenya/models/agents/agent_schedule.rb', line 24

optional :info, -> { Cadenya::Agents::AgentScheduleInfo }

#metadataCadenya::Models::ResourceMetadata

Standard metadata for persistent, named resources (e.g., agents, tools, prompts)



12
# File 'lib/cadenya/models/agents/agent_schedule.rb', line 12

required :metadata, -> { Cadenya::ResourceMetadata }

#specCadenya::Models::Agents::AgentScheduleSpec

AgentScheduleSpec is the user-provided configuration for a schedule.

Parameters:

  • value (Cadenya::Agents::AgentScheduleSpec)

Returns:



18
# File 'lib/cadenya/models/agents/agent_schedule.rb', line 18

required :spec, -> { Cadenya::Agents::AgentScheduleSpec }

#stateCadenya::Models::Agents::AgentSchedule::state

Returns the value of attribute state.

Returns:

  • (Cadenya::Models::Agents::AgentSchedule::state)


25
26
27
# File 'sig/cadenya/models/agents/agent_schedule.rbs', line 25

def state
  @state
end

Instance Method Details

#to_hash{

Returns:

  • ({)


34
# File 'sig/cadenya/models/agents/agent_schedule.rbs', line 34

def to_hash: -> {