Skip to content

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

fix env serialized error

shenchuchengfef8bfd9bc48
diff --git a/metagpt/base/base_role.py b/metagpt/base/base_role.py
index 49dbcd617..2f6c9f963 100644
--- a/metagpt/base/base_role.py
+++ b/metagpt/base/base_role.py
@@ -8,7 +8,10 @@ class BaseRole:
"""Abstract base class for all roles."""
name: str
- is_idle: bool
+
+ @property
+ def is_idle(self) -> bool:
+ raise NotImplementedError
@abstractmethod
def think(self):