mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
update comment in get_codes function
This commit is contained in:
parent
3450c240c9
commit
db8ae71afa
1 changed files with 4 additions and 4 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue