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 original task mapped to critic role (#233)

Dmitrii Khizbullin9b34ccbee75d
diff --git a/apps/agents/agents.py b/apps/agents/agents.py
index 3ae75a4a3..dd60029d5 100644
--- a/apps/agents/agents.py
+++ b/apps/agents/agents.py
@@ -187,7 +187,7 @@ def role_playing_start(
session = RolePlaying(
assistant,
user,
- original_task,
+ task_prompt=original_task,
with_task_specify=with_task_specifier,
task_specify_agent_kwargs=task_specify_kwargs,
with_task_planner=False,
diff --git a/camel/societies/role_playing.py b/camel/societies/role_playing.py
index b4adc685f..a21adebdb 100644
--- a/camel/societies/role_playing.py
+++ b/camel/societies/role_playing.py
@@ -74,6 +74,7 @@ class RolePlaying:
self,
assistant_role_name: str,
user_role_name: str,
+ *,
critic_role_name: str = "critic",
task_prompt: str = "",
with_task_specify: bool = True,