Learn how to create AI agents with memory capabilities for maintaining context and information across tasks.
Feature | Knowledge | Memory |
---|---|---|
When Used | Pre-loaded before agent execution | Created and updated during runtime |
Purpose | Provide static reference information | Store dynamic context and interactions |
Storage | Read-only knowledge base | Read-write memory store |
Persistence | Permanent until explicitly changed | Can be temporary (STM) or persistent (LTM) |
Updates | Manual updates through knowledge files | Automatic updates during agent execution |
Install Package
First, install the Praison Labs Agents package:
duckduckgo_search is a tool that allows agents to search the web. It is required for the multiple agents example shown below.
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create a file
Create a new file app.py
with the
basic setup:
Start Agents
Type this in your terminal to run your agents:
Install Package
First, install the Praison Labs Agents package:
duckduckgo_search is a tool that allows agents to search the web. It is required for the multiple agents example shown below.
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create a file
Create a new file app.py
with the
basic setup:
Start Agents
Type this in your terminal to run your agents:
Install Package
Install the Praison Labs package:
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create a file
Create a new file agents.yaml
with
the basic setup:
Start Agents
Type this in your terminal to run your agents:
Requirements
Memory in AI agents enables them to:
Maintain information across multiple interactions.
Share knowledge between multiple agents.
Store and retrieve information over extended periods.
Support for different memory types (short-term, long-term).
If memory isn’t working as expected:
If context isn’t being maintained:
Learn about automatically created and managed AI agents
Explore lightweight, focused AI agents
For optimal results, configure memory settings based on your specific use case requirements and expected interaction patterns.
The memory system in Praison Labs supports various configuration options to customize how agents store and retrieve information:
Praison Labs’s memory system includes several types of memory:
Praison Labs includes built-in quality control for memory storage: