mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 09:16:21 +02:00
update architect prompt
This commit is contained in:
parent
ff79389d9b
commit
2a53e30eba
7 changed files with 75 additions and 31 deletions
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue