From d82f890b2ee451b2a490d6e86f5e8122f5bb61d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Fri, 10 May 2024 11:56:56 +0800 Subject: [PATCH] fixbug: sent_from, send_to --- metagpt/roles/engineer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py index 3b7ba597a..f615c8f8c 100644 --- a/metagpt/roles/engineer.py +++ b/metagpt/roles/engineer.py @@ -217,7 +217,7 @@ class Engineer(Role): # The maximum number of times the 'SummarizeCode' action is automatically invoked, with -1 indicating unlimited. # This parameter is used for debugging the workflow. self.n_summarize += 1 if self.config.max_auto_summarize_code > self.n_summarize else 0 - return AIMessage(content="", cause_by=SummarizeCode, send_to=self, sent_from=self) + return AISelfMessage(content="", cause_by=SummarizeCode) async def _act_code_plan_and_change(self): """Write code plan and change that guides subsequent WriteCode and WriteCodeReview"""