mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
refactor: notation
This commit is contained in:
parent
fc63cdf4df
commit
9ebd1d1bbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue