Class: Cadenya::Models::MemoryLayers::MemoryEntryDetail

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/memory_layers/memory_entry_detail.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(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.

Parameters:



# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 36

Instance Attribute Details

#contentString

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

Returns:

  • (String)


15
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 15

required :content, String

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



34
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 34

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

#metadataCadenya::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 }

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



29
# File 'lib/cadenya/models/memory_layers/memory_entry_detail.rb', line 29

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