Spaces:
Paused
Paused
frdel commited on
Commit ·
496f2e1
1
Parent(s): bb595f2
Update response.py
Browse files- python/tools/response.py +1 -1
python/tools/response.py
CHANGED
|
@@ -4,7 +4,7 @@ from python.helpers.tool import Tool, Response
|
|
| 4 |
class ResponseTool(Tool):
|
| 5 |
|
| 6 |
async def execute(self, **kwargs):
|
| 7 |
-
return Response(message=self.args["
|
| 8 |
|
| 9 |
async def before_execution(self, **kwargs):
|
| 10 |
# self.log = self.agent.context.log.log(type="response", heading=f"{self.agent.agent_name}: Responding", content=self.args.get("text", ""))
|
|
|
|
| 4 |
class ResponseTool(Tool):
|
| 5 |
|
| 6 |
async def execute(self, **kwargs):
|
| 7 |
+
return Response(message=self.args["text"] if "text" in self.args else self.args["message"], break_loop=True)
|
| 8 |
|
| 9 |
async def before_execution(self, **kwargs):
|
| 10 |
# self.log = self.agent.context.log.log(type="response", heading=f"{self.agent.agent_name}: Responding", content=self.args.get("text", ""))
|