Skip to main content
This example shows how to share memory and history between agents. You can set add_history_to_context=True to add the history to the context of the agent. You can set update_memory_on_run=True to enable user memory generation at the end of each 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