🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: an unexpected UserRequirement type message is thrown when there is nothing to do.
莘权 马af378e12aca3
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex 356b9e33f..3bcd600fc 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -418,7 +418,7 @@ class Role(SerializationMixin, is_polymorphic_base=True):Use llm to select actions in _think dynamically"""actions_taken = 0- rsp = Message(content="No actions taken yet") # will be overwritten after Role _act+ rsp = Message(content="No actions taken yet", cause_by=Action) # will be overwritten after Role _actwhile actions_taken < self.rc.max_react_loop:# thinkawait self._think()