update architect prompt

This commit is contained in:
黄伟韬 2024-10-18 16:04:55 +08:00
parent ff79389d9b
commit 2a53e30eba
7 changed files with 75 additions and 31 deletions

View file

@ -7,7 +7,7 @@
"""
from pydantic import Field
from metagpt.prompts.di.architect import ARCHITECT_INSTRUCTION
from metagpt.prompts.di.architect import ARCHITECT_EXAMPLE, ARCHITECT_INSTRUCTION
from metagpt.roles.di.role_zero import RoleZero
from metagpt.tools.libs.terminal import Terminal
@ -44,5 +44,8 @@ class Architect(RoleZero):
# NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to True
self.enable_memory = False
def _retrieve_experience(self) -> str:
return ARCHITECT_EXAMPLE
def _update_tool_execution(self):
self.tool_execution_map.update({"Terminal.run_command": self.terminal.run_command})

View file

@ -31,7 +31,7 @@ from metagpt.utils.report import EditorReporter
class Engineer2(RoleZero):
name: str = "Alex"
profile: str = "Engineer"
goal: str = "Take on game, app, and web development."
goal: str = "Take on game, app, web development and deployment."
instruction: str = ENGINEER2_INSTRUCTION
terminal: Terminal = Field(default_factory=Terminal, exclude=True)
deployer: Deployer = Field(default_factory=Deployer, exclude=True)