update comment in get_codes function

This commit is contained in:
mannaandpoem 2024-01-24 17:51:17 +08:00
parent e761612aec
commit 5af94ae133
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

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