Demo of an agent existing in an RPG-like environment
Top 38.2% on sourcepulse
This project provides a proof-of-concept GPT-based agent operating within a simple, locally-run RPG-like environment. It's designed for developers and researchers interested in exploring LLM agent behavior and interaction within simulated worlds. The core benefit is a functional demonstration of an AI agent making decisions and interacting with a game environment using the OpenAI API.
How It Works
The system comprises two main components: an RPG environment and an AI agent. The environment, built with React, Tiled, Phaser, and the Grid Engine Plugin, features a character, impassable tiles, and plantable layers. The agent, a Node.js application, connects to the OpenAI API (specifically gpt-3.5-turbo
) via websockets to receive environmental state and available actions, then outputs decisions. This architecture allows the LLM to drive agent behavior in a visually represented, interactive setting.
Quick Start & Requirements
npm install
in the gptrpg
directory.npm start
in the root directory.agent/env.json
).http://localhost:3000
.Highlighted Details
gpt-3.5-turbo
) for agent decision-making.Maintenance & Community
No specific community channels, roadmap, or contributor information is provided in the README.
Licensing & Compatibility
The license is not specified in the README.
Limitations & Caveats
The project is explicitly a proof of concept and currently only supports gpt-3.5-turbo
. Upcoming features like multi-agent support, expanded actions, agent memory, and goals are not yet implemented. The README notes that the plant layer is not currently in use by the agent.
2 years ago
1 week