feat: test create project & fix bug

This commit is contained in:
莘权 马 2024-04-01 21:07:33 +08:00
parent f5b5729867
commit b70ed4cf0b
4 changed files with 109 additions and 9 deletions

View file

@ -38,7 +38,7 @@ class SOPItem(BaseModel):
SOP_CONFIG = [
SOPItem(
description="Intentions related to or including software development, such as developing or building software, games, programming, app, websites, etc.",
description="Intentions related to or including software development, such as developing or building software, games, programming, app, websites, etc. Excluding bug fixes, report any issues.",
sop=[
"Writes a PRD based on software requirements.",
"Writes a design to the project repository, based on the PRD of the project.",
@ -49,7 +49,7 @@ SOP_CONFIG = [
],
),
SOPItem(
description="Error message, issues, fix bug",
description="Error message, issues, fix bug, exception description",
sop=[
"Fix bugs in the project repository.",
"Stage and commit changes for the project repository using Git.",

View file

@ -153,7 +153,7 @@ class DataInterpreter(Role):
logger.info(f"ready to {todo.name}")
use_reflection = counter > 0 and self.use_reflection # only use reflection after the first trial
user_requirement = self.get_memories()[0].content
user_requirement = self.get_memories()[0].content # issue: 1多次用户交互时永远只读用户的第1次request2prerequisite没处理
code = await todo.run(
user_requirement=user_requirement,