Solution to the problem of the AI Game Design Agent Team not functioning properly #75

Closed
opened 2025-11-06 14:32:26 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @HeShen-1 on GitHub (Aug 3, 2025).

If you encounter an error while running the project: "ImportError: cannot import name 'SwarmAgent' from 'autogen', or other file import errors, you can try my method.
First, there are the following points that need to be done:

  1. Execute the command "pip install -r requirements.txt" in the corresponding terminal environment.
  2. Modify the contents of the header file import
from autogen.agentchat.contrib.swarm_agent import (
    SwarmAgent,
    SwarmResult,
    initiate_swarm_chat,
    OpenAIWrapper,
    AFTER_WORK,
)
from autogen import UpdateSystemMessage
  1. Change the variable name UPDATESYSTEMMESSAGE to UpdateSystemMessage.
  2. Run streamlit run game_design_agent_team.py.
Originally created by @HeShen-1 on GitHub (Aug 3, 2025). If you encounter an error while running the project: "ImportError: cannot import name 'SwarmAgent' from 'autogen', or other file import errors, you can try my method. First, there are the following points that need to be done: 1. Execute the command "pip install -r requirements.txt" in the corresponding terminal environment. 2. Modify the contents of the header file import ```python from autogen.agentchat.contrib.swarm_agent import ( SwarmAgent, SwarmResult, initiate_swarm_chat, OpenAIWrapper, AFTER_WORK, ) from autogen import UpdateSystemMessage ``` 3. Change the variable name `UPDATESYSTEMMESSAGE` to `UpdateSystemMessage`. 4. Run `streamlit run game_design_agent_team.py`.
Author
Owner

@elif2025 commented on GitHub (Sep 11, 2025):

Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much

@elif2025 commented on GitHub (Sep 11, 2025): Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
Author
Owner

@HeShen-1 commented on GitHub (Sep 11, 2025):

Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much

Clone the repository to your local machine. Each app has a detailed README.md file and the corresponding requirements.txt file (the one I used is the requirements.txt file in the repository). I hope these will be helpful to you. (Over the past few months, I'm not sure if my approach is still effective.)

@HeShen-1 commented on GitHub (Sep 11, 2025): > Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much Clone the repository to your local machine. Each app has a detailed README.md file and the corresponding requirements.txt file (the one I used is the requirements.txt file in the repository). I hope these will be helpful to you. (Over the past few months, I'm not sure if my approach is still effective.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#75