mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
refactor: Update according to Chapter 2.1.3.2 of RFC 116
This commit is contained in:
parent
d232725a29
commit
f47977daa8
1 changed files with 2 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ class Role:
|
|||
"""Listen to the corresponding behaviors in private message buffer"""
|
||||
tags = {get_class_name(t) for t in actions}
|
||||
self._rc.watch.update(tags)
|
||||
# check RoleContext after adding watch actions
|
||||
self._rc.check(self._role_id)
|
||||
|
||||
def subscribe(self, tags: Set[str]):
|
||||
"""Listen to the corresponding behaviors"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue