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

cookbook/examples/teams/session/02_persistent_session_history.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install required libraries

3

Set environment variables

4

Start PostgreSQL database

5

Run the agent