From c192d6021244e4be86aee624e7b39a6458afb808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E9=9F=AC?= Date: Tue, 30 Jul 2024 14:24:36 +0800 Subject: [PATCH] Add a confirmation message when the role finishes the task. --- metagpt/roles/di/role_zero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/di/role_zero.py b/metagpt/roles/di/role_zero.py index 001e2a4c8..f93122626 100644 --- a/metagpt/roles/di/role_zero.py +++ b/metagpt/roles/di/role_zero.py @@ -214,7 +214,7 @@ class RoleZero(Role): self.rc.memory.add(UserMessage(content=outputs)) return AIMessage( - content=f"Complete run with outputs: {outputs}", + content=f"{self.name} has finished the task, mark it as finished. Complete run with outputs: {outputs}", sent_from=self.name, cause_by=RunCommand, )