Storage
Memory Storage
Agno’s memory system provides persistent storage options to ensure memories are retained across application restarts. This is critical for production applications where users expect consistent experiences over time.
Storage Options
The Memory class supports different backend storage options through a pluggable database interface. Currently, Agno provides:
Setting Up Storage
To configure memory storage, you’ll need to create a database instance and pass it to the Memory constructor:
Data Model
When using persistent storage, the Memory system stores:
- User Memories - Facts and insights about users
- Last Updated Timestamps - To track when memories were last modified
- Memory IDs - Unique identifiers for each memory
Storage Examples
Integrating with Agent Storage
When building agents with memory, you’ll often want to store both agent sessions and memories. Agno makes this easy by allowing you to configure both storage systems:
Memory Management
When using persistent storage, the Memory system offers several functions to manage stored memories:
Developer Resources
- Find reference documentation for memory storage here