🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: cause_by
莘权 马fc63cdf4df1f
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 90e85186b..a0a35bdc2 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -116,9 +116,7 @@ class Role:self._actions = []self._role_id = str(self._setting)self._rc = RoleContext()- self._subscription = {any_to_str(self)}- if name:- self._subscription.add(name)+ self._subscription = {any_to_str(self), name} if name else {any_to_str(self)}def _reset(self):self._states = []