Skip to main content
This example shows how to use the session history to store conversation history and add it to the context with configurable history limits.

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