resolve conflicts

This commit is contained in:
geekan 2023-12-14 23:54:00 +08:00
parent 5be4b5f39c
commit 84357651e5
8 changed files with 12 additions and 13 deletions

View file

@ -52,10 +52,6 @@ def dict_to_markdown(d, prefix="-", postfix="\n"):
class ActionNode:
"""ActionNode is a tree of nodes."""
# Action Strgy
# - sop: 仅使用一级SOP
# - complex: 使用一级SOP+自定义策略填槽
mode: str
# Action Context

View file

@ -43,7 +43,8 @@ TASK_LIST = ActionNode(
FULL_API_SPEC = ActionNode(
key="Full API spec",
expected_type=str,
instruction="Describe all APIs using OpenAPI 3.0 spec that may be used by both frontend and backend.",
instruction="Describe all APIs using OpenAPI 3.0 spec that may be used by both frontend and backend. If front-end "
"and back-end communication is not required, leave it blank.",
example="openapi: 3.0.0 ...",
)

View file

@ -86,7 +86,7 @@ REQUIREMENT_ANALYSIS = ActionNode(
key="Requirement Analysis",
expected_type=str,
instruction="Provide a detailed analysis of the requirements.",
example="The product should be user-friendly and performance-optimized.",
example="The product should be user-friendly.",
)
REQUIREMENT_POOL = ActionNode(

View file

@ -27,7 +27,8 @@ class Architect(Role):
name: str = "Bob",
profile: str = "Architect",
goal: str = "design a concise, usable, complete software system",
constraints: str = "make sure the architecture is simple enough and use appropriate open source libraries",
constraints: str = "make sure the architecture is simple enough and use appropriate open source libraries."
"Use same language as user requirement"
) -> None:
"""Initializes the Architect with given attributes."""
super().__init__(name, profile, goal, constraints)

View file

@ -72,7 +72,8 @@ class Engineer(Role):
name: str = "Alex",
profile: str = "Engineer",
goal: str = "write elegant, readable, extensible, efficient code",
constraints: str = "the code should conform to standards like PEP8 and be modular and maintainable",
constraints: str = "the code should conform to standards like PEP8 and be modular and maintainable. "
"Use same language as user requirement",
n_borg: int = 1,
use_code_review: bool = False,
) -> None:

View file

@ -28,8 +28,8 @@ class ProductManager(Role):
self,
name: str = "Alice",
profile: str = "Product Manager",
goal: str = "Efficiently create a successful product",
constraints: str = "",
goal: str = "efficiently create a successful product",
constraints: str = "use same language as user requirement",
) -> None:
"""
Initializes the ProductManager role with given attributes.

View file

@ -26,8 +26,8 @@ class ProjectManager(Role):
name: str = "Eve",
profile: str = "Project Manager",
goal: str = "break down tasks according to PRD/technical design, generate a task list, and analyze task "
"dependencies to start with the prerequisite modules",
constraints: str = "",
"dependencies to start with the prerequisite modules",
constraints: str = "use same language as user requirement",
) -> None:
"""
Initializes the ProjectManager role with given attributes.

View file

@ -63,7 +63,7 @@ class Team(BaseModel):
while n_round > 0:
# self._save()
n_round -= 1
logger.debug(f"{n_round=}")
logger.info(f"max {n_round=} left.")
self._check_balance()
await self.env.run()
if CONFIG.git_repo: