mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-09 15:52:38 +02:00
Merge branch 'data_analyst_ldy' into 'mgx_ops'
define assignee to role name See merge request pub/MetaGPT!247
This commit is contained in:
commit
aa252a6226
1 changed files with 1 additions and 1 deletions
|
|
@ -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 should be the 'name' of the role."""
|
||||
new_task = Task(
|
||||
task_id=task_id,
|
||||
dependent_task_ids=dependent_task_ids,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue