From db8ae71afacc93c77ebe35408eee750dca620d4e Mon Sep 17 00:00:00 2001 From: mannaandpoem <1580466765@qq.com> Date: Wed, 24 Jan 2024 17:17:40 +0800 Subject: [PATCH] update comment in get_codes function --- metagpt/actions/write_code.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metagpt/actions/write_code.py b/metagpt/actions/write_code.py index f0eb699bc..05fffd4fc 100644 --- a/metagpt/actions/write_code.py +++ b/metagpt/actions/write_code.py @@ -156,16 +156,16 @@ class WriteCode(Action): @staticmethod async def get_codes(task_doc: Document, exclude: str, project_repo: ProjectRepo, use_inc: bool = False) -> str: """ - Get code snippets that meet the requirements in various scenarios. + Get codes for generating the current file in various scenarios. Attributes: task_doc (Document): Document object of the task file. - exclude (str): Specifies the filename to be excluded from the code snippets. + 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): Specifies whether is incremental development. + use_inc (bool): Whether is the incremental development scenario. Defaults to False. Returns: - str: Code snippets. + str: Code snippets for generating the current file. """ if not task_doc: return ""