Skip to main content
The agents use the same database, session_id, and user_id. History is session-scoped, while memory is user-scoped. Set add_history_to_context=True to load the shared session history and update_memory_on_run=True to run MemoryManager on every run.

Code

share_memory_and_history_between_agents.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run example