Skip to content

Commit

Permalink
feat: + DI args error
Browse files Browse the repository at this point in the history
  • Loading branch information
莘权 马 committed Mar 31, 2024
1 parent 0bc3638 commit 128debe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 453 deletions.
2 changes: 1 addition & 1 deletion metagpt/actions/intent_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SOPItem(BaseModel):
"Writes a PRD based on software requirements.",
"Writes a design to the project repository, based on the PRD of the project.",
"Writes a project plan to the project repository, based on the design of the project.",
"Writes codes to the project repository, based on the project plan of the project.",
"Writes code to implement designed features according to the project plan and adds them to the project repository.",
# "Run QA test on the project repository.",
"Stage and commit changes for the project repository using Git.",
],
Expand Down
4 changes: 2 additions & 2 deletions metagpt/roles/di/mgx.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ async def _intent_detect(self, user_msgs: List[Message] = None, **kwargs):
sop_str = "\n".join([f"- {i}" for i in i.sop.sop])
markdown = (
f"### User Requirement Detail\n```text\n{intention_ref}\n````\n"
f"### Knowledge\nTo meet user requirements, the following standard operating procedure(SOP)"
f" must be used:\n"
f"### Knowledge\nTo meet user requirements, the following standard operating procedure(SOP) must be"
f" used. SOP descriptions cannot be modified; user requirements can only be appended to the end of corresponding steps.\n"
f"{sop_str}"
)
return markdown
Expand Down
2 changes: 1 addition & 1 deletion metagpt/tools/libs/software_development.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def write_project_plan(system_design_path: str | Path) -> Path:

@register_tool(tags=["software development", "Engineer"])
async def write_codes(task_path: str | Path, inc: bool = False) -> Path:
"""Writes codes to the project repository, based on the project plan of the project.
"""Writes code to implement designed features according to the project plan and adds them to the project repository.
Args:
task_path (str|Path): The path to task files under the project directory.
Expand Down
Loading

0 comments on commit 128debe

Please sign in to comment.