Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refactor: Update according to Chapter 2.1.3.2 of RFC 116

莘权 马d232725a2991
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.py
index ac8a2d702..5bc241352 100644
--- a/metagpt/roles/role.py
+++ b/metagpt/roles/role.py
@@ -170,17 +170,9 @@ class Role:
return self._setting.name
@property
- def subscribed_tags(self) -> Set:
+ def subscription(self) -> Set:
"""The labels for messages to be consumed by the Role object."""
- if self._rc.watch:
- return self._rc.watch
- return {
- self.name,
- get_object_name(self),
- self.profile,
- f"{self.name}({self.profile})",
- f"{self.name}({get_object_name(self)})",
- }
+ return self._subscription
def _get_prefix(self):
"""Get the role prefix"""