🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: notation
莘权 马9ebd1d1bbb3e
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex a0a35bdc2..75e41d4ae 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -134,7 +134,7 @@ class Role:self._states.append(f"{idx}. {action}")def _watch(self, actions: Iterable[Type[Action]]):- """Listen to the corresponding behaviors in private message buffer"""+ """Watch Actions of interest. Role will select Messages caused by these Actions from its personal message buffer during _observe."""tags = {any_to_str(t) for t in actions}self._rc.watch.update(tags)# check RoleContext after adding watch actions