Generative agents proposed by this paper extend LLMs (like ChatGPT) with memory, reflection, planing and a sandbox environment.
We're building our Python implementation that allows you to add Generative Agents to your own worlds.
We have a #dev chanel on Discord.
Answer questions.
Check out the issues and projects tabs, there are also # TODOs scatered around the code.
- Python 3.10+
- Black
- isort
- 4.1
Memoryrepresents the most basic type of memory, an observation. Importance calculation is done here. - 4.2
Reflectiona reflection. - 4.3
Plana plan. - 4.1
MemoryStreama stream of memories. Memory retrival is done here. - 4
Agent - 5
Sandboxtick, time, - Figure 2
World - Figure 2
Area - Figure 2
Object
pip install openaiCreate a openai_secrets.py file and set your key there.
Note https://platform.openai.com/docs/api-reference/authentication
import openai
openai.api_key = 'Your OpenAI API key'