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
Privacy: Respect user privacy, allow data deletion
Retention: Set appropriate data retention periods
Relevance: Store only relevant information
Performance: Use caching for frequently accessed data
Security: Encrypt sensitive information
Next Steps
Need Help?
Last updated