mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
refactor: Update according to Chapter 2.1.3.2 of RFC 116
This commit is contained in:
parent
df4ff5f701
commit
c4ac0c72d7
1 changed files with 2 additions and 8 deletions
|
|
@ -48,14 +48,7 @@ class SoftwareCompany(BaseModel):
|
|||
def start_project(self, idea):
|
||||
"""Start a project from publishing boss requirement."""
|
||||
self.idea = idea
|
||||
self.environment.publish_message(
|
||||
Message(
|
||||
role="BOSS",
|
||||
content=idea,
|
||||
cause_by=BossRequirement,
|
||||
msg_from=SoftwareCompany,
|
||||
)
|
||||
)
|
||||
self.environment.publish_message(Message(role="BOSS", content=idea, cause_by=BossRequirement))
|
||||
|
||||
def _save(self):
|
||||
logger.info(self.json())
|
||||
|
|
@ -68,3 +61,4 @@ class SoftwareCompany(BaseModel):
|
|||
logger.debug(f"{n_round=}")
|
||||
self._check_balance()
|
||||
await self.environment.run()
|
||||
return self.environment.history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue