refactor: Update according to Chapter 2.1.3.2 of RFC 116

This commit is contained in:
莘权 马 2023-11-08 23:51:28 +08:00
parent be19d9edcb
commit fba70452f3

View file

@ -239,7 +239,7 @@ class Engineer(Role):
async def _think(self) -> None:
# In asynchronous scenarios, first check if the required messages are ready.
filters = {WriteTasks}
filters = {get_class_name(WriteTasks)}
msgs = self._rc.memory.get_by_actions(filters)
if not msgs:
self._rc.todo = None