Class: Cadenya::Models::ObjectiveEventData
Defined Under Namespace
Classes: Cancelled, Finalized
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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.
|
# File 'lib/cadenya/models/objective_event_data.rb', line 101
|
Instance Attribute Details
9
|
# File 'lib/cadenya/models/objective_event_data.rb', line 9
optional :assistant_message, -> { Cadenya::AssistantMessage }, api_name: :assistantMessage
|
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 }
|
22
23
24
|
# File 'lib/cadenya/models/objective_event_data.rb', line 22
optional :context_window_compacted,
-> { Cadenya::ContextWindowCompacted },
api_name: :contextWindowCompacted
|
29
|
# File 'lib/cadenya/models/objective_event_data.rb', line 29
optional :error, -> { Cadenya::ObjectiveError }
|
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 }
|
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.
45
|
# File 'lib/cadenya/models/objective_event_data.rb', line 45
optional :memory_read, -> { Cadenya::MemoryRead }, api_name: :memoryRead
|
50
|
# File 'lib/cadenya/models/objective_event_data.rb', line 50
optional :sub_agent_spawned, -> { Cadenya::SubAgentSpawned }, api_name: :subAgentSpawned
|
55
|
# File 'lib/cadenya/models/objective_event_data.rb', line 55
optional :sub_agent_updated, -> { Cadenya::SubAgentUpdated }, api_name: :subAgentUpdated
|
60
61
62
63
64
|
# File 'lib/cadenya/models/objective_event_data.rb', line 60
optional :tool_approval_requested,
-> {
Cadenya::ToolApprovalRequested
},
api_name: :toolApprovalRequested
|
69
|
# File 'lib/cadenya/models/objective_event_data.rb', line 69
optional :tool_approved, -> { Cadenya::ToolApproved }, api_name: :toolApproved
|
74
|
# File 'lib/cadenya/models/objective_event_data.rb', line 74
optional :tool_called, -> { Cadenya::ToolCalled }, api_name: :toolCalled
|
79
|
# File 'lib/cadenya/models/objective_event_data.rb', line 79
optional :tool_denied, -> { Cadenya::ToolDenied }, api_name: :toolDenied
|
84
|
# File 'lib/cadenya/models/objective_event_data.rb', line 84
optional :tool_error, -> { Cadenya::ToolError }, api_name: :toolError
|
89
|
# File 'lib/cadenya/models/objective_event_data.rb', line 89
optional :tool_result, -> { Cadenya::ToolResult }, api_name: :toolResult
|
#type ⇒ String?
94
|
# File 'lib/cadenya/models/objective_event_data.rb', line 94
optional :type, String
|
99
|
# File 'lib/cadenya/models/objective_event_data.rb', line 99
optional :user_message, -> { Cadenya::UserMessage }, api_name: :userMessage
|