modify add action to set action

This commit is contained in:
geekan 2024-01-10 17:54:13 +08:00 committed by 莘权 马
parent 0157a1d8a1
commit 0d742654d4
19 changed files with 34 additions and 33 deletions

View file

@ -49,7 +49,7 @@ class Debator(Role):
def __init__(self, **data: Any):
super().__init__(**data)
self.add_actions([SpeakAloud])
self.set_actions([SpeakAloud])
self._watch([UserRequirement, SpeakAloud])
async def _observe(self) -> int: