🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: Update according to Chapter 2.1.3.2 of RFC 116
莘权 马c4ac0c72d705
diff --git a/metagpt/software_company.py b/metagpt/software_company.pyindex 1b6936870..d12998242 100644--- a/metagpt/software_company.py+++ b/metagpt/software_company.py@@ -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