Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: utilize the new message filtering feature

莘权 马1be1bb56e355
diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py
index 62e1e92d2..a108fa4f1 100644
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@ -239,8 +239,9 @@ class Engineer(Role):
if not message.cause_by == get_class_name(WriteTasks):
continue
self.todos = self.parse_tasks(message)
+ return 1
- return ret
+ return 0
async def _think(self) -> None:
# In asynchronous scenarios, first check if the required messages are ready.