From 956d1db610ee4993ca390f368319cf16b500ba8c Mon Sep 17 00:00:00 2001 From: lidanyang Date: Mon, 22 Jul 2024 14:54:07 +0800 Subject: [PATCH 1/2] define assignee to role name --- metagpt/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/schema.py b/metagpt/schema.py index de49c8886..71b3f2d89 100644 --- a/metagpt/schema.py +++ b/metagpt/schema.py @@ -670,7 +670,7 @@ class Plan(BaseModel): return [task for task in self.tasks if task.is_finished] def append_task(self, task_id: str, dependent_task_ids: list[str], instruction: str, assignee: str, task_type: str = ""): - """Append a new task with task_id (number) to the end of existing task sequences. If dependent_task_ids is not empty, the task will depend on the tasks with the ids in the list.""" + """Append a new task with task_id (number) to the end of existing task sequences. If dependent_task_ids is not empty, the task will depend on the tasks with the ids in the list. Note that the assignee is the role name after word `named`.""" new_task = Task( task_id=task_id, dependent_task_ids=dependent_task_ids, From 24332620b7cb44b9420cf20474186a06251c0690 Mon Sep 17 00:00:00 2001 From: lidanyang Date: Mon, 22 Jul 2024 15:26:55 +0800 Subject: [PATCH 2/2] define assignee to role name --- metagpt/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/schema.py b/metagpt/schema.py index 71b3f2d89..c716f8b2f 100644 --- a/metagpt/schema.py +++ b/metagpt/schema.py @@ -670,7 +670,7 @@ class Plan(BaseModel): return [task for task in self.tasks if task.is_finished] def append_task(self, task_id: str, dependent_task_ids: list[str], instruction: str, assignee: str, task_type: str = ""): - """Append a new task with task_id (number) to the end of existing task sequences. If dependent_task_ids is not empty, the task will depend on the tasks with the ids in the list. Note that the assignee is the role name after word `named`.""" + """Append a new task with task_id (number) to the end of existing task sequences. If dependent_task_ids is not empty, the task will depend on the tasks with the ids in the list. Note that the assignee should be the 'name' of the role.""" new_task = Task( task_id=task_id, dependent_task_ids=dependent_task_ids,