mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 10:26:32 +02:00
refactor: cause_by
This commit is contained in:
parent
bb8e2467ea
commit
fc63cdf4df
1 changed files with 1 additions and 3 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue