🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix
better629257553d64dab
diff --git a/examples/andriod_assistant/roles/android_assistant.py b/examples/andriod_assistant/roles/android_assistant.pyindex 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 = Falselogger.error("Latest action_state is FINISH or FAIL, won't react in remainder rounds")return await super()._observe(ignore_memory)