Memory and State

Learn how IrisOS agents store and recall information across conversations.

Overview

IrisOS agents maintain memory and state to provide context-aware, personalized interactions. The memory system enables agents to remember past conversations, user preferences, and learned information.

Memory Types

Short-Term Memory

Conversation context within a single session:

{
  "memory": {
    "shortTermContext": 10,
    "contextWindow": "last_10_messages"
  }
}

Long-Term Memory

Persistent storage across sessions:

{
  "memory": {
    "enabled": true,
    "longTermEnabled": true,
    "rememberUsers": true,
    "rememberConversations": true,
    "retentionDays": 90
  }
}

Knowledge Base

Static information the agent knows:

State Management

User State

Conversation State

Memory Configuration

Best Practices

  1. Privacy: Respect user privacy, allow data deletion

  2. Retention: Set appropriate data retention periods

  3. Relevance: Store only relevant information

  4. Performance: Use caching for frequently accessed data

  5. Security: Encrypt sensitive information

Next Steps

Need Help?

Last updated