mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
refactor: notation
This commit is contained in:
parent
9ebd1d1bbb
commit
b1a14d057a
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class Role:
|
|||
self._rc.check(self._role_id)
|
||||
|
||||
def subscribe(self, tags: Set[str]):
|
||||
"""Listen to the corresponding behaviors"""
|
||||
"""Used to receive Messages with certain tags from the environment. Message will be put into personal message buffer to be further processed in _observe. By default, a Role subscribes Messages with a tag of its own name or profile."""
|
||||
self._subscription = tags
|
||||
if self._rc.env: # According to the routing feature plan in Chapter 2.2.3.2 of RFC 113
|
||||
self._rc.env.set_subscription(self, self._subscription)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue