Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

update comment in get_codes function

mannaandpoem5af94ae1331d
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])