mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fixbug: an unexpected UserRequirement type message is thrown when there is nothing to do.
This commit is contained in:
parent
a722e6bc64
commit
af378e12ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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 _act
|
||||
while actions_taken < self.rc.max_react_loop:
|
||||
# think
|
||||
await self._think()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue