Skip to main content
This example shows how to run a multi-user, multi-session chat concurrently. In this example, we have 3 users and 4 sessions:
  • User 1 has 2 sessions.
  • User 2 has 1 session.
  • User 3 has 1 session.

Code

cookbook/agent_concepts/memory/12_multi_user_multi_session_chat_concurrent.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install libraries

3

Set your API keys

4

Run Example