From 5af94ae1331d5c4e0cbaeb4292f85702e86dee23 Mon Sep 17 00:00:00 2001 From: mannaandpoem <1580466765@qq.com> Date: Wed, 24 Jan 2024 17:51:17 +0800 Subject: [PATCH] update comment in get_codes function --- metagpt/actions/write_code.py | 2 +- metagpt/roles/engineer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/actions/write_code.py b/metagpt/actions/write_code.py index 750e0cfa5..fcadd5f72 100644 --- a/metagpt/actions/write_code.py +++ b/metagpt/actions/write_code.py @@ -162,7 +162,7 @@ class WriteCode(Action): task_doc (Document): Document object of the task file. exclude (str): The file to be generated. Specifies the filename to be excluded from the code snippets. project_repo (ProjectRepo): ProjectRepo object of the project. - use_inc (bool): Whether is the incremental development scenario. Defaults to False. + use_inc (bool): Indicates whether the scenario involves incremental development. Defaults to False. Returns: str: Codes for generating the exclude file. diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py index 3475a95fd..ee1a019bd 100644 --- a/metagpt/roles/engineer.py +++ b/metagpt/roles/engineer.py @@ -342,7 +342,7 @@ class Engineer(Role): summarizations[ctx].append(filename) for ctx, filenames in summarizations.items(): ctx.codes_filenames = filenames - self.summarize_todos.append(SummarizeCode(i_context=ctx, llm=self.llm)) + self.summarize_todos.append(SummarizeCode(i_context=ctx, context=self.context, llm=self.llm)) if self.summarize_todos: self.set_todo(self.summarize_todos[0])