mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-14 19:05:17 +00:00
Update response.py
This commit is contained in:
parent
356ef2584a
commit
ac51f41953
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ from python.helpers.tool import Tool, Response
|
|||
class ResponseTool(Tool):
|
||||
|
||||
async def execute(self, **kwargs):
|
||||
return Response(message=self.args["message"] if "message" in self.args else self.args["text"], break_loop=True)
|
||||
return Response(message=self.args["text"] if "text" in self.args else self.args["message"], break_loop=True)
|
||||
|
||||
async def before_execution(self, **kwargs):
|
||||
# self.log = self.agent.context.log.log(type="response", heading=f"{self.agent.agent_name}: Responding", content=self.args.get("text", ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue