Class: Cadenya::Models::MemoryLayers::MemoryEntry
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::MemoryLayers::MemoryEntry
- Defined in:
- lib/cadenya/models/memory_layers/memory_entry.rb
Overview
Instance Attribute Summary collapse
- #info ⇒ Cadenya::Models::MemoryLayers::MemoryEntryInfo?
-
#metadata ⇒ Cadenya::Models::ResourceMetadata
Standard metadata for persistent, named resources (e.g., agents, tools, prompts).
-
#spec ⇒ Cadenya::Models::MemoryLayers::MemoryEntrySpec
MemoryEntrySpec is the metadata portion of an entry — the fields that identify and describe it, without the body.
Instance Method Summary collapse
-
#initialize(metadata:, spec:, info: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MemoryEntry 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(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.
|
|
# File 'lib/cadenya/models/memory_layers/memory_entry.rb', line 27
|
Instance Attribute Details
#info ⇒ Cadenya::Models::MemoryLayers::MemoryEntryInfo?
25 |
# File 'lib/cadenya/models/memory_layers/memory_entry.rb', line 25 optional :info, -> { Cadenya::MemoryLayers::MemoryEntryInfo } |
#metadata ⇒ Cadenya::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 } |
#spec ⇒ Cadenya::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 } |