Class: Cadenya::Models::MemoryRead
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::MemoryRead
- Defined in:
- lib/cadenya/models/memory_read.rb
Instance Attribute Summary collapse
-
#memory_entry_id ⇒ String?
The specific entry that was read.
-
#memory_layer_id ⇒ String?
The layer the entry resolved to.
-
#message ⇒ String?
Human-readable description of the read, set by the runtime.
Instance Method Summary collapse
-
#initialize(memory_entry_id: nil, memory_layer_id: nil, message: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MemoryRead for more details.
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(memory_entry_id: nil, memory_layer_id: nil, message: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::MemoryRead for more details.
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.
|
|
# File 'lib/cadenya/models/memory_read.rb', line 28
|
Instance Attribute Details
#memory_entry_id ⇒ String?
The specific entry that was read.
10 |
# File 'lib/cadenya/models/memory_read.rb', line 10 optional :memory_entry_id, String, api_name: :memoryEntryId |
#memory_layer_id ⇒ String?
The layer the entry resolved to. The top-most layer that contained the key —other layers beneath it that also contained the key are shadowed and not referenced here.
18 |
# File 'lib/cadenya/models/memory_read.rb', line 18 optional :memory_layer_id, String, api_name: :memoryLayerId |
#message ⇒ String?
Human-readable description of the read, set by the runtime. For example: “Loaded skill”, “Resolved context key”. Not machine-parsed; intended for UI display alongside the other events in an objective’s timeline.
26 |
# File 'lib/cadenya/models/memory_read.rb', line 26 optional :message, String |