Add a confirmation message when the role finishes the task.

This commit is contained in:
黄伟韬 2024-07-30 14:24:36 +08:00
parent 0a18c3d4f3
commit c192d60212

View file

@ -214,7 +214,7 @@ class RoleZero(Role):
self.rc.memory.add(UserMessage(content=outputs))
return AIMessage(
content=f"Complete run with outputs: {outputs}",
content=f"{self.name} has finished the task, mark it as finished. Complete run with outputs: {outputs}",
sent_from=self.name,
cause_by=RunCommand,
)