Storage
Introduction
Agents come with built-in memory but it only lasts while the session is active. To continue conversations across sessions, we store Agent sessions in a database like PostgreSQL.
Storage is a necessary component when building user facing AI products as any production application will require users to be able to “continue” their conversation with the Agent.
The general syntax for adding storage to an Agent looks like:
storage.py
The following databases are supported as a storage backend:
Was this page helpful?