Class: Cadenya::Models::ObjectiveEventData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objective_event_data.rb

Defined Under Namespace

Classes: Cancelled, Finalized

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(message: nil) ⇒ Object

Some parameter documentations has been truncated, see Cancelled for more details.

ObjectiveCancelled is the terminal event written when an objective is cancelled. After this event, the objective is super-terminal: no further iterations, compaction, or continuation are permitted.

Parameters:

  • message (String) (defaults to: nil)

    Optional human-readable note recorded at cancel time. Today the workflow



# File 'lib/cadenya/models/objective_event_data.rb', line 101

Instance Attribute Details

#assistant_messageCadenya::Models::AssistantMessage?



9
# File 'lib/cadenya/models/objective_event_data.rb', line 9

optional :assistant_message, -> { Cadenya::AssistantMessage }, api_name: :assistantMessage

#cancelledCadenya::Models::ObjectiveEventData::Cancelled?

ObjectiveCancelled is the terminal event written when an objective is cancelled. After this event, the objective is super-terminal: no further iterations, compaction, or continuation are permitted.



17
# File 'lib/cadenya/models/objective_event_data.rb', line 17

optional :cancelled, -> { Cadenya::ObjectiveEventData::Cancelled }

#context_window_compactedCadenya::Models::ContextWindowCompacted?



22
23
24
# File 'lib/cadenya/models/objective_event_data.rb', line 22

optional :context_window_compacted,
-> { Cadenya::ContextWindowCompacted },
api_name: :contextWindowCompacted

#errorCadenya::Models::ObjectiveError?



29
# File 'lib/cadenya/models/objective_event_data.rb', line 29

optional :error, -> { Cadenya::ObjectiveError }

#finalizedCadenya::Models::ObjectiveEventData::Finalized?

ObjectiveFinalized is the terminal event written when an objective is finalized. After this event, the objective is super-terminal: no further iterations, compaction, or continuation are permitted.



37
# File 'lib/cadenya/models/objective_event_data.rb', line 37

optional :finalized, -> { Cadenya::ObjectiveEventData::Finalized }

#memory_readCadenya::Models::MemoryRead?

MemoryRead is emitted each time the agent resolves a key against the memory stack and loads an entry. Lookups that miss (key not found in any layer) do not emit this event.

Returns:



45
# File 'lib/cadenya/models/objective_event_data.rb', line 45

optional :memory_read, -> { Cadenya::MemoryRead }, api_name: :memoryRead

#sub_agent_spawnedCadenya::Models::SubAgentSpawned?



50
# File 'lib/cadenya/models/objective_event_data.rb', line 50

optional :sub_agent_spawned, -> { Cadenya::SubAgentSpawned }, api_name: :subAgentSpawned

#sub_agent_updatedCadenya::Models::SubAgentUpdated?



55
# File 'lib/cadenya/models/objective_event_data.rb', line 55

optional :sub_agent_updated, -> { Cadenya::SubAgentUpdated }, api_name: :subAgentUpdated

#tool_approval_requestedCadenya::Models::ToolApprovalRequested?



60
61
62
63
64
# File 'lib/cadenya/models/objective_event_data.rb', line 60

optional :tool_approval_requested,
-> {
  Cadenya::ToolApprovalRequested
},
api_name: :toolApprovalRequested

#tool_approvedCadenya::Models::ToolApproved?



69
# File 'lib/cadenya/models/objective_event_data.rb', line 69

optional :tool_approved, -> { Cadenya::ToolApproved }, api_name: :toolApproved

#tool_calledCadenya::Models::ToolCalled?

Returns:



74
# File 'lib/cadenya/models/objective_event_data.rb', line 74

optional :tool_called, -> { Cadenya::ToolCalled }, api_name: :toolCalled

#tool_deniedCadenya::Models::ToolDenied?

Returns:



79
# File 'lib/cadenya/models/objective_event_data.rb', line 79

optional :tool_denied, -> { Cadenya::ToolDenied }, api_name: :toolDenied

#tool_errorCadenya::Models::ToolError?

Returns:



84
# File 'lib/cadenya/models/objective_event_data.rb', line 84

optional :tool_error, -> { Cadenya::ToolError }, api_name: :toolError

#tool_resultCadenya::Models::ToolResult?

Returns:



89
# File 'lib/cadenya/models/objective_event_data.rb', line 89

optional :tool_result, -> { Cadenya::ToolResult }, api_name: :toolResult

#typeString?

Returns:

  • (String, nil)


94
# File 'lib/cadenya/models/objective_event_data.rb', line 94

optional :type, String

#user_messageCadenya::Models::UserMessage?



99
# File 'lib/cadenya/models/objective_event_data.rb', line 99

optional :user_message, -> { Cadenya::UserMessage }, api_name: :userMessage