This repo was abandoned. It was replaced by two separate repos: Trip (engine) and Roguelife (new game repo)
Roguelike with Generative Agents.
Very early stage, work in progress.
Generative Agents paper inspired me to create something similar but more hopefully more interesting.
I decided to use roguelike environment because it seemed to be the simplest possible approach.
Agents wake up on an island and try to survive.
My ultimate goal is to make agents cooperate and create alliances which will compete for resources.
Roguelife was based on the TCOD Tutorial.
After some tinkering, I realised that strictly following Generative Agents is prohibitatively resource intensive (one simulation day in Smallvile cost 1000$ and it still was too simple/small-scale for my ambition).
So I decided to follow another approach: convert the 2d game world to text and represent it to agents as a text adventure.
At the moment, I have no idea how well it will work, but I am currently focused on developing the game engine for it.
You will need OpenAI account for it.
Install requirements
pip install -r requirements
create .env
file:
OPENAI_ORG=<HERE IS YOUR ORG>
OPENAI_API_KEY=<HERE IS YOUR SECRET KEY>
Now you can run it with simple python main.py
.
Be careful because it will make paid requests.