Welcome to the Software Development Simulation project! This is a fun and interactive way to simulate the process of developing a software project using AI-powered agents. Each agent takes on a specific role within a software development team, such as a 需求分析师 (Requirements Analyst), 系统架构师 (System Architect), 前端开发 (Front-End Developer), 后端开发 (Back-End Developer), 数据库专家 (Database Expert), 测试工程师 (QA Engineer), and 项目经理 (Project Manager).
🎉 Introduction
This project is designed to demonstrate how a software development team can collaborate to turn a client’s requirements into a fully-fledged software project. The simulation uses OpenAI’s API to generate responses based on the role of each agent, ensuring that the output is tailored to the specific responsibilities of each team member.
🛠️ How It Works
Input: You start by providing a detailed software requirement. For example, “开发一个在线书店系统” (Develop an online bookstore system).
Agents: The system creates a team of agents, each with a specific role. The number of agents can be customized, but it must be at least 2.
Processing: Each agent processes the requirement in sequence, generating responses that are formatted according to their role. For example, the 需求分析师 will break down the requirements into functional and non-functional components, while the 系统架构师 will design the system architecture.
Final Output: The 项目经理 (Project Manager) integrates all the suggestions from the team and generates a complete project structure and code.
🚀 Getting Started
Prerequisites
Python 3.7 or higher
An OpenAI API key (Note: The code currently uses a placeholder "sk-" for the API key. You need to replace this with your actual API key.)
Installation
Clone the repository:
git clone https://github.com/yourusername/software-development-simulation.git
cd software-development-simulation
Install the required packages:
pip install -r requirements.txt
Replace the placeholder API key in the code with your actual OpenAI API key.
Running the Simulation
Run the script:
python main.py
Follow the on-screen instructions to input the number of agents and the software requirement.
Sit back and watch as the AI agents work together to develop your software project!
🎨 Customization
Agent Roles: You can customize the roles and their prompts by modifying the role_prompts dictionary in the Agent class.
Colors: The output is color-coded based on the role of each agent. You can customize these colors by modifying the role_colors dictionary.
📜 Example Output
Here’s a snippet of what the output might look like:
## 📝 License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## 💬 Contributing
Feel free to fork the project, open a PR, or submit issues and suggestions. Let's make this simulation even more fun and educational!
---
🌟 **Enjoy the simulation and happy coding!** 🌟
关于
Eddie software company | Software Development Simulation with AI Agents
🚀 Software Development Simulation with AI Agents
Welcome to the Software Development Simulation project! This is a fun and interactive way to simulate the process of developing a software project using AI-powered agents. Each agent takes on a specific role within a software development team, such as a 需求分析师 (Requirements Analyst), 系统架构师 (System Architect), 前端开发 (Front-End Developer), 后端开发 (Back-End Developer), 数据库专家 (Database Expert), 测试工程师 (QA Engineer), and 项目经理 (Project Manager).
🎉 Introduction
This project is designed to demonstrate how a software development team can collaborate to turn a client’s requirements into a fully-fledged software project. The simulation uses OpenAI’s API to generate responses based on the role of each agent, ensuring that the output is tailored to the specific responsibilities of each team member.
🛠️ How It Works
Input: You start by providing a detailed software requirement. For example, “开发一个在线书店系统” (Develop an online bookstore system).
Agents: The system creates a team of agents, each with a specific role. The number of agents can be customized, but it must be at least 2.
Processing: Each agent processes the requirement in sequence, generating responses that are formatted according to their role. For example, the 需求分析师 will break down the requirements into functional and non-functional components, while the 系统架构师 will design the system architecture.
Final Output: The 项目经理 (Project Manager) integrates all the suggestions from the team and generates a complete project structure and code.
🚀 Getting Started
Prerequisites
"sk-"
for the API key. You need to replace this with your actual API key.)Installation
Clone the repository:
Install the required packages:
Replace the placeholder API key in the code with your actual OpenAI API key.
Running the Simulation
Run the script:
Follow the on-screen instructions to input the number of agents and the software requirement.
Sit back and watch as the AI agents work together to develop your software project!
🎨 Customization
role_prompts
dictionary in theAgent
class.role_colors
dictionary.📜 Example Output
Here’s a snippet of what the output might look like:
…