🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
update
better62948b484dec8a8
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex a1f2d83b7..528e7d72d 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -426,7 +426,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