From 257553d64dabc64b456f48b83b3e19e1dd818da9 Mon Sep 17 00:00:00 2001 From: better629 Date: Wed, 27 Mar 2024 22:46:04 +0800 Subject: [PATCH] fix --- examples/andriod_assistant/roles/android_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/andriod_assistant/roles/android_assistant.py b/examples/andriod_assistant/roles/android_assistant.py index 9e071a88f..580779fd2 100644 --- a/examples/andriod_assistant/roles/android_assistant.py +++ b/examples/andriod_assistant/roles/android_assistant.py @@ -89,7 +89,7 @@ class AndroidAssistant(Role): """ignore old memory to make it run multi rounds inside a role""" newest_msgs = self.rc.memory.get(k=1) newest_msg = newest_msgs[0] if newest_msgs else None - if newest_msg and (RunState.SUCCESS not in newest_msg.content): + if newest_msg and (RunState.SUCCESS.value not in newest_msg.content): ignore_memory = False logger.error("Latest action_state is FINISH or FAIL, won't react in remainder rounds") return await super()._observe(ignore_memory)