flowchart LR
p(Perceive)
m[["`**Memory Stream**`"]]
r(Retrieve)
rm[["`**Retrieved Memories**`"]]
pl(Plan)
re(Reflect)
a(Act)
p --> m
subgraph Generative Agent Memory
m --> r
r --> rm
end
rm --> pl
rm --> re
pl --> m
re --> m
rm --> a
https://arxiv.org/abs/2304.03442
We're building a Python implementation of Generative Agents.
Join us on Discord: https://discord.gg/5dkM59gsDY
Check out the issues and projects tabs, there are also # TODO
s scatered around the code.
- Python 3.10+
- Black
- isort
pip install openai
Create a openai_api.py
file and set your key there.
Note https://platform.openai.com/docs/api-reference/authentication
import openai
openai.api_key = 'OpenAI API key'