build-with-ag2

AI Game Design Agent Team

WIP: This project is currently not working properly.Latest release of AG2 0.9 introduced minor issues which will be fixed as soon as possible.

The AI Game Design Agent Team is a collaborative game design system that generates comprehensive game concepts through the coordination of multiple specialized AI agents, each focusing on different aspects of game design based on user inputs such as game type, target audience, art style, and technical requirements. This is built on AG2’s new swarm feature run through initiate_swarm_chat() method.

Description

Agents and Workflow We initialize context variables (e.g., project details, user inputs) to store the relevant game design requirements. The AI Game Design Agent Team comprises the following specialized agents:

When a user provides high-level game requirements (e.g., game type, setting, audience, visuals, platform), we start the swarm to allocate requirements to the respective specialized agents. Each agent elaborates on its area of expertise, and final outputs are combined into a cohesive game design proposal.

AG2 Features

This project demonstrates the following AG2 features:

## TAGS

TAGS: game design, swarm, dynamic system message, ai-assisted creativity, game development, narrative design, gameplay mechanics

Installation

  1. Clone and navigate to the folder:
git clone https://github.com/ag2ai/build-with-ag2.git
cd build-with-ag2/game_design_agent_team
  1. Install the required dependencies:
pip install -r requirements.txt

The two dependencies are the ag2 (AG2) library and streamlit.

Run the code

Before you start, go to OpenAI’s platform to get an API key if you don’t have one.

Run the Streamlit app to start a web interface for the AI Game Design Agent Team.

streamlit run main.py

In the web interface to the left, put your OpenAI API key in the sidebar.

Now you can interact with it through your browser, and click Generate Game Concept to receive a comprehensive design output from the specialized agents.

Screenshots

Game Design

Game Designed

Contact

For more information or any questions, please refer to the documentation or reach out to us!

License

This project is also licensed under the Apache License 2.0 from the awesome-llm-apps. See the LICENSE for details.