added readme and requirements.txt
This commit is contained in:
parent
e4214365d7
commit
d3a7f0af21
3 changed files with 197 additions and 132 deletions
|
|
@ -1,3 +1,64 @@
|
||||||
## AI Game Dev Team
|
# AI Game Development Agent Advisory 🎮
|
||||||
|
|
||||||
This is a simple example of how to use Autogen's RoundRobinGroupChat to create an AI game development team.
|
The AI Game Development Team is a collaborative game design system powered by Autogen's AI Agent framework. This app generates comprehensive game concepts through the coordination of multiple specialized AI agents, each focusing on different aspects of game development based on user inputs such as game type, target audience, art style, and technical requirements. This is built on Autogen's GroupChat methods and AssistantAgent features, run through initiate_chat() method.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- **Multi-Agent Collaboration System**
|
||||||
|
- 🎭 **Story Agent**: Specializes in narrative design and world-building, including character development, plot arcs, dialogue writing, and lore creation
|
||||||
|
- 🎮 **Gameplay Agent**: Focuses on game mechanics and systems design, including player progression, combat systems, resource management, and balancing
|
||||||
|
- 🎨 **Visuals Agent**: Handles art direction and audio design, covering UI/UX, character/environment art style, sound effects, and music composition
|
||||||
|
- ⚙️ **Tech Agent**: Provides technical architecture and implementation guidance, including engine selection, optimization strategies, networking requirements, and development roadmap
|
||||||
|
- 🎯 **Task Agent**: Coordinates between all specialized agents and ensures cohesive integration of different game aspects
|
||||||
|
|
||||||
|
- **Comprehensive Game Design Outputs**:
|
||||||
|
- Detailed narrative and world-building elements
|
||||||
|
- Core gameplay mechanics and systems
|
||||||
|
- Visual and audio direction
|
||||||
|
- Technical specifications and requirements
|
||||||
|
- Development timeline and budget considerations
|
||||||
|
|
||||||
|
- **Customizable Input Parameters**:
|
||||||
|
- Game type and target audience
|
||||||
|
- Art style and visual preferences
|
||||||
|
- Platform requirements
|
||||||
|
- Development constraints (time, budget)
|
||||||
|
- Core mechanics and gameplay features
|
||||||
|
|
||||||
|
- **Interactive Results**: Results are presented in expandable sections for easy navigation and reference
|
||||||
|
|
||||||
|
## How to Run
|
||||||
|
|
||||||
|
Follow these steps to set up and run the application:
|
||||||
|
|
||||||
|
1. **Clone the Repository**:
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
|
||||||
|
cd ai_agent_tutorials/ai_game_dev_team
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Install Dependencies**:
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Set Up OpenAI API Key**:
|
||||||
|
- Obtain an OpenAI API key from [OpenAI's platform](https://platform.openai.com)
|
||||||
|
- You'll input this key in the app's sidebar when running
|
||||||
|
|
||||||
|
4. **Run the Streamlit App**:
|
||||||
|
```bash
|
||||||
|
streamlit run ai_game_dev_team/ai_game_dev_agents.py
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
1. Enter your OpenAI API key in the sidebar
|
||||||
|
2. Fill in the game details:
|
||||||
|
- Background vibe and setting
|
||||||
|
- Game type and target audience
|
||||||
|
- Visual style preferences
|
||||||
|
- Technical requirements
|
||||||
|
- Development constraints
|
||||||
|
3. Click "Generate Game Concept" to receive comprehensive design documentation from all agents
|
||||||
|
4. Review the outputs in the expandable sections for each aspect of game design
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ if st.button("Generate Game Concept"):
|
||||||
if not api_key:
|
if not api_key:
|
||||||
st.error("Please enter your OpenAI API key.")
|
st.error("Please enter your OpenAI API key.")
|
||||||
else:
|
else:
|
||||||
|
with st.spinner('🤖 AI Agents are collaborating on your game concept...'):
|
||||||
# Prepare the task based on user inputs
|
# Prepare the task based on user inputs
|
||||||
task = f"""
|
task = f"""
|
||||||
Create a game concept with the following details:
|
Create a game concept with the following details:
|
||||||
|
|
@ -218,6 +219,9 @@ if st.button("Generate Game Concept"):
|
||||||
# Update session state with the individual responses
|
# Update session state with the individual responses
|
||||||
st.session_state.output = individual_responses
|
st.session_state.output = individual_responses
|
||||||
|
|
||||||
|
# Display success message after completion
|
||||||
|
st.success('✨ Game concept generated successfully!')
|
||||||
|
|
||||||
# Display the individual outputs in expanders
|
# Display the individual outputs in expanders
|
||||||
with st.expander("Story Design"):
|
with st.expander("Story Design"):
|
||||||
st.markdown(st.session_state.output['story'])
|
st.markdown(st.session_state.output['story'])
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
pyautogen>=0.2.0
|
pyautogen>=0.7.0
|
||||||
beautifulsoup4==4.12.2
|
autogen==0.6.1
|
||||||
lxml==4.9.3
|
streamlit==1.41.1
|
||||||
streamlit>=1.30.0
|
openai
|
||||||
Loading…
Reference in a new issue