Short-Term Memory stores context and data within the scope of a single conversation session. It enables your LyZR agent to maintain conversational coherence and provide contextually relevant responses during an ongoing interaction.

1. Behavior and Use Cases

  • Session Scope: Data persists only until the conversation ends or the session is reset.

  • Ephemeral: No data is stored beyond the session lifecycle, ensuring transient context management.

  • Use Cases:

    • Follow-up questions within the same chat (e.g., clarifying a previous response).
    • Maintaining context across multiple turns in a dialog (e.g., multi-step problem solving).

2. Configuration in Lyzr Studio

  1. Open your Agent in Studio and navigate to the Memory tab.
  2. Toggle Short-Term Memory on.
  3. Optionally set Retention Settings (e.g., max messages or time window).

3. Configuration via API

When defining an agent programmatically, include the following memory feature object in your JSON payload:

{
  "type": "SHORT_TERM_MEMORY",
  "config": {
  },
  "priority": 0
}