Memory Management
Agent memory management — from simple window memory to vector-backed RAG, per-call identity routing, multi-tenant tracking, and suspend/resume.
🔄 Memory Flow
Basic Memory (Window Memory)
// Agent with conversation memory
agent = aiAgent(
name : "ChatBot",
description: "A conversational assistant",
memory : aiMemory( "window" )
)
// First interaction
agent.run( "My name is Luis" )
// Second interaction — agent remembers
agent.run( "What's my name?" )
// → "Your name is Luis"
// Access memory messages
messages = agent.getMemoryMessages()
// Clear memory when needed
agent.clearMemory()Multiple Memory Systems
Per-Call Identity Routing (v3.0+)
Suspend & Resume (v3.0+)
🏢 Multi-Tenant Usage Tracking
Memory Types Quick Reference
Type
Best For
Related Pages
Last updated