Skip to main content
Store conversation history in the session and add a configurable number of previous runs to the agent context.

Code

persistent_session_history.py

Usage

1

Set up your virtual environment

2

Install required libraries

3

Set environment variables

4

Start PostgreSQL database

5

Run the agent