enable_user_memories=True in the Agent config.
1
Create a Python file
2
Add the following code to your Python file
agent_with_memory.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Export your OpenAI API key
6
Run Agent