Skip to main content
Memory can be used in Cadenya to store skills and episodic entries.

Layers

Memory layers are used as containers of several memory entries. That way a memory layer can be added to an agent variation quickly, and all of the entries within it become available to an agent when it is working through an objective. The order of memory layers that are added to your Agent Variation’s matters, too. If a layer contains the same “key” in it as another, the one that is highest positioned (position being zero indexed).

Entries

An entry can be thought of like a blob, object, record, etc. It’s a piece of data contained in your memory layer, that has a key that your agent’s will use to retrieve the contents in your agentic loop. Entries can be either stored using raw text, or by uploading a file. Below is an example of how Cadenya uses a Memory Layer + Entries to store the different prompt modes when using our Prompt -> Config generator in certain interfaces.
Memory layer

Memory layer

Assigning to an Agent Variation

Memory Layers can be directly assigned to Agent Variation, like a Tool Set is. Once assigned, Objective’s that are dispatched for the variation will automatically include references to all of the entries within the layer in the system prompt for you. The format of the memory entries in the system prompt will resemble:
Then you can assign your memory layer with entries to your agent variation like so…

Observing Memory Usage in Objectives

Once your memory is assigned to an agent, you can see it read entries in your objective’s event timeline, or the raw tool call logs, too.