🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update
better629a6346c7bce2d
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 8edbdfca1..b9fde7d05 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -400,7 +400,7 @@ class Role(BaseModel):observed_pure = [msg.dict(exclude={"id": True}) for msg in observed]existed_pure = [msg.dict(exclude={"id": True}) for msg in existed]for idx, new in enumerate(observed_pure):- if (new["cause_by"] in self._rc.watch and new not in existed_pure) or (not self._rc.watch):+ if new["cause_by"] in self._rc.watch and new not in existed_pure:news.append(observed[idx])return news