Class: Cadenya::Models::MemoryReference

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/memory_reference.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) ⇒ Object

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

MemoryReference identifies a memory layer or a specific entry within one, for composition into a memory stack. Used on objectives (where entry pinning is permitted).

memory*layer_id accepts both the canonical form (memlyr*…) and the external-id form (external_id:my-custom-id). The same applies to memory_entry_id when set.

Parameters:

  • memory_entry_id (String) (defaults to: nil)

    When set, pushes only this entry from memory_layer_id onto the stack —

  • memory_layer_id (String) (defaults to: nil)


# File 'lib/cadenya/models/memory_reference.rb', line 19

Instance Attribute Details

#memory_entry_idString?

When set, pushes only this entry from memory_layer_id onto the stack — behaves as a single-entry layer (only this key resolves at this position). The entry must belong to memory_layer_id; mismatches are rejected with InvalidArgument.

Returns:

  • (String, nil)


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

optional :memory_entry_id, String, api_name: :memoryEntryId

#memory_layer_idString?

Returns:

  • (String, nil)


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

optional :memory_layer_id, String, api_name: :memoryLayerId