Skip to content

Commit

Permalink
feat: merge gitlab:di_mgx
Browse files Browse the repository at this point in the history
  • Loading branch information
莘权 马 committed Mar 31, 2024
2 parents 1ed64bc + 95dc1ee commit d9f7073
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion metagpt/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
SYSTEM_DESIGN_FILE_REPO,
TASK_FILE_REPO,
)
from metagpt.logs import logger
from metagpt.logs import log_tool_output, logger
from metagpt.repo_parser import DotClassInfo
from metagpt.utils.common import any_to_str, any_to_str_set, import_class
from metagpt.utils.exceptions import handle_exception
Expand Down Expand Up @@ -434,6 +434,11 @@ def add_tasks(self, tasks: list[Task]):
final_tasks = self.tasks[:prefix_length] + new_tasks[prefix_length:]
self.tasks = final_tasks

log_tool_output(
{"output": "\n\n".join([f"Task {task.task_id}: {task.instruction}" for task in self.tasks])},
tool_name="Plan",
)

# Update current_task_id to the first unfinished task in the merged list
self._update_current_task()

Expand Down

0 comments on commit d9f7073

Please sign in to comment.