Skip to content

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

optimize: access to is_human

kkdev163bd2b1950eba0
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.py
index 71f6ec8f5..b234a846f 100644
--- a/metagpt/roles/role.py
+++ b/metagpt/roles/role.py
@@ -166,7 +166,7 @@ class Role(SerializationMixin, is_polymorphic_base=True):
Role.model_rebuild()
super().__init__(**data)
- if data.get("is_human"):
+ if self.is_human:
self.llm = HumanProvider()
self.llm.system_prompt = self._get_prefix()