Long-Term Memory enables your Lyzr agent to store and recall information across multiple sessions, making it ideal for personalization and historical context.

1. Behavior and Use Cases

  • Persistent Storage: Data remains available beyond individual sessions.

  • Cross-Session Continuity: Recall user preferences, past interactions, and historical data.

  • Use Cases:

    • Personalized recommendations based on user history.
    • Ongoing project assistance where past details inform future tasks.
    • User profiles and preference retention (e.g., language, tone).

2. Configuration in Lyzr Studio

  1. Open your Agent in Studio and go to the Memory tab.
  2. Toggle Long-Term Memory on.
  3. Configure Storage Settings (e.g., database retention policy, encryption).

3. Configuration via API

Include a LONG_TERM_MEMORY feature object in your agent definition JSON:

{
  "type": "LONG_TERM_MEMORY",
  "config": {
  },
  "priority": 1
}