FAQs
Memory V2
Memory V2
Starting with Agno version 1.4.0, Memory V2 is now the default memory for the Agno Agent. This replaces the previous AgentMemory
and TeamMemory
classes which is now deprecated but still available to use.
Memory V2 is a more powerful and flexible memory system that allows you to manage message history, session summaries, and long-term user memories.
How to Continue Using AgentMemory (Memory V1)
If you want to continue using AgentMemory
and avoid breaking changes, you can do so by updating your imports. By default, the Agent now uses the Memory
class:
To use the legacy AgentMemory class instead, import it like this:
Key Memory V2 Changes
-
Accessing Messages:
- Before:
- Now:
- Before:
-
User Memories:
-
Before:
-
Now:
-
-
Session Summaries:
-
Before:
-
Now:
-