Skip to content

Commit af378e1

Browse files
author
莘权 马
committed
fixbug: an unexpected UserRequirement type message is thrown when there is nothing to do.
1 parent a722e6b commit af378e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metagpt/roles/role.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ async def _react(self) -> Message:
418418
Use llm to select actions in _think dynamically
419419
"""
420420
actions_taken = 0
421-
rsp = Message(content="No actions taken yet") # will be overwritten after Role _act
421+
rsp = Message(content="No actions taken yet", cause_by=Action) # will be overwritten after Role _act
422422
while actions_taken < self.rc.max_react_loop:
423423
# think
424424
await self._think()

0 commit comments

Comments
 (0)