Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: example of workforce bug (#2453)

XieWeif4441d96fcfd
diff --git a/examples/workforce/role_playing_with_agents.py b/examples/workforce/role_playing_with_agents.py
index df747876f..466979063 100644
--- a/examples/workforce/role_playing_with_agents.py
+++ b/examples/workforce/role_playing_with_agents.py
@@ -61,12 +61,13 @@ def main():
workforce = Workforce('a travel group')
workforce.add_role_playing_worker(
- 'research Group',
- assistant_role_name,
- user_role_name,
- assistant_agent_kwargs,
- user_agent_kwargs,
- 1,
+ description='research Group',
+ assistant_role_name=assistant_role_name,
+ user_role_name=user_role_name,
+ assistant_agent_kwargs=assistant_agent_kwargs,
+ user_agent_kwargs=user_agent_kwargs,
+ summarize_agent_kwargs={},
+ chat_turn_limit=1,
).add_single_agent_worker(
'tour guide', guide_agent
).add_single_agent_worker('planner', planner_agent)