Optionally, create a memory connection. A memory connection is a connection to a memory provider that manages your AI agent's data persistence and context.
A memory provider allows your AI agents to remember facts, maintain conversational context, and appear more consistent and personalized. It allows your AI agents to store and retrieve key information like user preferences, past choices, and important facts throughout a conversation. Memory is not shared across agent flows, and it is not shared among separate conversations within the same agent flow.
You can use the following memory providers:
PostgreSQL Saver
PostgreSQL is a full-featured, relational database. Create a PostgreSQL connection when your AI agent needs a robust, scalable solution, when concurrent access might be required, when you need advanced database features like JSON support or full text search, or when you need strong data integrity and backups.
SQLite Saver
SQLite stores memory in a file on the Secure Agent machine. Create a SQLite connection when you want a lightweight, simple solution, your AI agent runs locally, the memory needs are small to moderate, or you don't need high concurrency.
When you install a Secure Agent, a version of SQLite is installed. If you don't create a memory connection, your AI agents use the version of SQLite that is installed with the Secure Agent.
PostgreSQL Saver connection details
You need to configure the PostgreSQL Saver connection before you can use it in an AI agent.
The following table describes the properties of a PostgreSQL Saver connection:
Property
Description
Name
Name of the PostgreSQL Saver connection.
Location
Project or folder to save your assets. By default, assets are saved to the Default project.
Memory Provider
Provider of the memory model being configured.
Description
Optional. Description of the connection to the model.
Database URL
Full connection string to connect to the PostgreSQL database in the following format:
You need to configure the SQLite Saver connection before you can use it in an AI agent.
The following table describes the properties of a SQLite Saver connection:
Property
Description
Name
Name of the SQLite Saver connection.
Location
Project or folder to save your assets. By default, assets are saved to the Default project.
Memory Provider
Provider of the memory model being configured.
Description
Optional. Description of the connection to the model.
Database Path
File path to the SQLite database file where data will be saved or retrieved. This can be an absolute path or relative based on your current working directory.
Creating a memory connection
Create a memory connection if you don't want to use the default SQLite version that's installed with the Secure Agent.
1From the navigation menu, click New.
2In the New Asset dialog box, select Memory from the New Asset list.