Skip to main content

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.
Memory Scopes:

backend (optional)

Type: Identifier Specifies the storage backend implementation.
Common Backends:

retrieval (optional)

Type: One of semantic, exact, hybrid Defines the retrieval strategy for querying memory.
Retrieval Strategies:

decay (optional)

Type: Duration or policy identifier Defines how memory degrades or expires over time.
Decay Options:

Complete Examples

Conversation Memory

Use Case: Store conversation context for the current session, expires after 1 hour.

Knowledge Base

Use Case: Permanent semantic knowledge base with similarity search.

User Profile Store

Use Case: Permanent user profiles with exact key-value lookup.

Temporary Working Memory

Use Case: Temporary storage for flow execution, discarded after completion.

Recent Activity Cache

Use Case: Cache recent activity for 24 hours with hybrid retrieval.

Memory Operations

Remember (Store)

Syntax:
Examples:

Recall (Retrieve)

Syntax:
Examples:

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

Performance Considerations

Backend Selection

Decay Management

  • Context — Memory scope configuration
  • Flow — Memory operations in flows
  • Persona — Agent identities
  • Tools — External capabilities