Skip to content

Commit ac51f41

Browse files
committed
Update response.py
1 parent 356ef25 commit ac51f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tools/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class ResponseTool(Tool):
55

66
async def execute(self, **kwargs):
7-
return Response(message=self.args["message"] if "message" in self.args else self.args["text"], break_loop=True)
7+
return Response(message=self.args["text"] if "text" in self.args else self.args["message"], break_loop=True)
88

99
async def before_execution(self, **kwargs):
1010
# self.log = self.agent.context.log.log(type="response", heading=f"{self.agent.agent_name}: Responding", content=self.args.get("text", ""))

0 commit comments

Comments
 (0)