Overview
Memory in AXON defines semantic storage for AI agents—how information is stored, retrieved, and managed across executions. Unlike traditional databases, AXON memory is designed for semantic retrieval and knowledge persistence.Memory Definition
Syntax
Fields
store (optional)
Type: One of session, persistent, ephemeral
Defines the lifetime scope of the memory.
backend (optional)
Type: Identifier
Specifies the storage backend implementation.
retrieval (optional)
Type: One of semantic, exact, hybrid
Defines the retrieval strategy for querying memory.
decay (optional)
Type: Duration or policy identifier
Defines how memory degrades or expires over time.
Complete Examples
Conversation Memory
Knowledge Base
User Profile Store
Temporary Working Memory
Recent Activity Cache
Memory Operations
Remember (Store)
Syntax:Recall (Retrieve)
Syntax:Combining Remember and Recall
Memory with Context
Combine memory definitions with context for execution control:Best Practices
1. Match Memory Scope to Use Case
2. Use Appropriate Backends
3. Set Appropriate Decay Policies
4. Choose Retrieval Strategy Wisely
5. Clean Up Memory
Common Patterns
Conversation Context
Knowledge Accumulation
Multi-Source Retrieval
Learning System
Type Checking
The AXON type checker validates: ✅ Store scope: Must be valid scope (session, persistent, ephemeral)✅ Retrieval strategy: Must be valid strategy (
semantic, exact, hybrid)✅ Memory references: Referenced memories must exist

