mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
fixbug: recursive import
This commit is contained in:
parent
bb050142f7
commit
7504ed5757
2 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ from pathlib import Path
|
|||
from metagpt.actions import WriteCode, WriteCodeReview, WriteDesign, WriteTasks
|
||||
from metagpt.const import WORKSPACE_ROOT
|
||||
from metagpt.logs import logger
|
||||
from metagpt.roles import QaEngineer, Role
|
||||
from metagpt.roles import Role
|
||||
from metagpt.schema import Message
|
||||
from metagpt.utils.common import CodeParser, get_class_name, get_object_name
|
||||
from metagpt.utils.special_tokens import FILENAME_CODE_SEP, MSG_SEP
|
||||
|
|
@ -170,7 +170,7 @@ class Engineer(Role):
|
|||
content=MSG_SEP.join(code_msg_all),
|
||||
role=self.profile,
|
||||
cause_by=get_object_name(self._rc.todo),
|
||||
send_to=QaEngineer,
|
||||
send_to="Edward",
|
||||
)
|
||||
return msg
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ class Engineer(Role):
|
|||
content=MSG_SEP.join(code_msg_all),
|
||||
role=self.profile,
|
||||
cause_by=get_object_name(self._rc.todo),
|
||||
send_to=QaEngineer,
|
||||
send_to="Edward",
|
||||
)
|
||||
return msg
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Message(BaseModel):
|
|||
role: str = "user" # system / user / assistant
|
||||
cause_by: str = ""
|
||||
sent_from: str = ""
|
||||
send_to: Set = Field(default_factory=set)
|
||||
send_to: Set = Field(default_factory={MESSAGE_ROUTE_TO_ALL})
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue