Skip to content

Commit

Permalink
Merge pull request ag2ai#356 from ag2ai/swarmmanagerautomissing
Browse files Browse the repository at this point in the history
Swarm: Restore lost SWARM_MANAGER return
  • Loading branch information
marklysze authored Jan 6, 2025
2 parents 1623ecb + c98d19e commit a1c21dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/agentchat/contrib/swarm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def _determine_next_agent(
return None if user_agent is None else user_agent
elif after_work_condition == AfterWorkOption.STAY:
return last_speaker
elif after_work_condition == AfterWorkOption.SWARM_MANAGER:
return "auto"
else:
raise ValueError("Invalid After Work condition or return value from callable")

Expand Down

0 comments on commit a1c21dd

Please sign in to comment.