Getting Started
Agent Session
This example shows how to create an agent with persistent memory stored in a SQLite database. We set the session_id on the agent when resuming the conversation, this way the previous chat history is preserved.
Key features:
- Stores conversation history in a SQLite database
- Continues conversations across multiple sessions
- References previous context in responses
Code
agent_session.py
Usage
1
Create a virtual environment
Open the Terminal
and create a python virtual environment.
2
Install libraries
3
Run the agent