Core Concepts
Persistent Memory
Long-term memory that survives restarts and gets richer the longer the agent runs.
Write & recall
from iris import memory
memory.save(
key="user/preferences/style",
value="Concise, no emojis, prefers TypeScript over JS.",
)
prefs = memory.recall("user/preferences/*")Semantic search
hits = memory.search("how did we fix the postgres deadlock?", k=5)
for hit in hits:
print(hit.score, hit.text)