Memory
Short-Term Memory
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
- Open your Agent in Studio and navigate to the Memory tab.
- Toggle Short-Term Memory on.
- 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: