There was an error while loading. Please reload this page.
2 parents 6a54ba4 + 568f001 commit 2857c52Copy full SHA for 2857c52
1 file changed
swarms/structs/interactive_groupchat.py
@@ -806,11 +806,13 @@ def _process_dynamic_speakers(
806
mentioned_agents
807
):
808
# Determine next speaker(s) using dynamic function
809
+ # Avoid passing duplicate 'strategy' if it's present in speaker_state
810
+ speaker_state = {k: v for k, v in (self.speaker_state or {}).items() if k != "strategy"}
811
next_speakers = self.speaker_function(
812
mentioned_agents,
813
last_response,
814
strategy=strategy,
- **self.speaker_state,
815
+ **speaker_state,
816
)
817
818
# Handle both single agent and multiple agents
0 commit comments