🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix: ipykernel_error that is `Too many open files in system`
刘棒棒b5a534d617f9
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 3938664ba..73edfc52b 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -503,6 +503,9 @@ class Role(SerializationMixin, ContextMixin, BaseModel):self.rc.memory.add(rsp) # add to persistent memory+ if hasattr(self, "execute_code") and hasattr(self.execute_code, "terminate"):+ await self.execute_code.terminate()+return rspasync def _act_on_task(self, current_task: Task) -> TaskResult: