Class: Cadenya::Models::MemoryLayers::MemoryEntryDetail
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::MemoryLayers::MemoryEntryDetail
- Defined in:
- lib/cadenya/models/memory_layers/memory_entry_detail.rb
Overview
Instance Attribute Summary collapse
-
#content ⇒ String
The resolved body of the entry.
- #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(content:, metadata:, spec:, info: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MemoryEntryDetail 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(content:, metadata:, spec:, info: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::MemoryLayers::MemoryEntryDetail for more details.
MemoryEntryDetail is the full representation of an entry, including the resolved content body. Returned by GetMemoryEntry, CreateMemoryEntry, and UpdateMemoryEntry.
|
|
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 36
|
Instance Attribute Details
#content ⇒ String
The resolved body of the entry. For entries created or updated via an upload_id, this is the ingested content, not the original upload handle. May be empty; an entry with only a key and description is valid (e.g., a stub skill being drafted, or an entry where the frontmatter alone is the payload).
15 |
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 15 required :content, String |
#info ⇒ Cadenya::Models::MemoryLayers::MemoryEntryInfo?
34 |
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 34 optional :info, -> { Cadenya::MemoryLayers::MemoryEntryInfo } |
#metadata ⇒ Cadenya::Models::ResourceMetadata
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
21 |
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 21 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.
29 |
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 29 required :spec, -> { Cadenya::MemoryLayers::MemoryEntrySpec } |