add_history_to_context=True to add the history to the context of the agent.
You can set enable_user_memories=True to enable user memory generation at the end of each run.
Code
share_memory_and_history_between_agents.py
Usage
1
Create a virtual environment
Open the
Terminal and create a python virtual environment.2
Set your API key
3
Install libraries
4
Run Example