Class: Cadenya::Models::MemoryLayers::MemoryEntry

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

Overview

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(metadata:, spec:, info: nil) ⇒ Object

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

MemoryEntry is a single keyed value within a MemoryLayer. Entries are addressed by their key, which follows the S3 object key safe-character convention (see MemoryEntrySpec.key for the full rule). Keys are unique within a single layer; the same key may appear in multiple layers, in which case the LIFO stack-walk determines which one wins for a given objective.

MemoryEntry is the summary shape, returned by ListMemoryEntries. It does not carry the entry body — callers that need the body must fetch the entry individually via GetMemoryEntry, which returns a MemoryEntryDetail.

Parameters:



# File 'lib/cadenya/models/memory_layers/memory_entry.rb', line 27

Instance Attribute Details

#infoCadenya::Models::MemoryLayers::MemoryEntryInfo?



25
# File 'lib/cadenya/models/memory_layers/memory_entry.rb', line 25

optional :info, -> { Cadenya::MemoryLayers::MemoryEntryInfo }

#metadataCadenya::Models::ResourceMetadata

Standard metadata for persistent, named resources (e.g., agents, tools, prompts)



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

required :metadata, -> { Cadenya::ResourceMetadata }

#specCadenya::Models::MemoryLayers::MemoryEntrySpec

MemoryEntrySpec is the metadata portion of an entry — the fields that identify and describe it, without the body. It appears on both the summary (MemoryEntry) and detail (MemoryEntryDetail) views.



20
# File 'lib/cadenya/models/memory_layers/memory_entry.rb', line 20

required :spec, -> { Cadenya::MemoryLayers::MemoryEntrySpec }