mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
fix
This commit is contained in:
parent
32d07eebc3
commit
257553d64d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue