Class: Cadenya::Models::MemoryRead

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

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(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.

Parameters:

  • memory_entry_id (String) (defaults to: nil)

    The specific entry that was read.

  • memory_layer_id (String) (defaults to: nil)

    The layer the entry resolved to. The top-most layer that contained

  • message (String) (defaults to: nil)

    Human-readable description of the read, set by the runtime. For



# File 'lib/cadenya/models/memory_read.rb', line 28

Instance Attribute Details

#memory_entry_idString?

The specific entry that was read.

Returns:

  • (String, nil)


10
# File 'lib/cadenya/models/memory_read.rb', line 10

optional :memory_entry_id, String, api_name: :memoryEntryId

#memory_layer_idString?

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.

Returns:

  • (String, nil)


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

optional :memory_layer_id, String, api_name: :memoryLayerId

#messageString?

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.

Returns:

  • (String, nil)


26
# File 'lib/cadenya/models/memory_read.rb', line 26

optional :message, String