Spaces:
Paused
Paused
File size: 632 Bytes
2d2ee7a deab47c 2d2ee7a 201c475 deab47c 201c475 5266ca3 201c475 bab921d 201c475 bab921d 5266ca3 201c475 bab921d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from agent import Agent
from python.helpers import files
from python.helpers.print_style import PrintStyle
from agent import Agent
from python.helpers.tool import Tool, Response
from python.helpers import files
from python.helpers.print_style import PrintStyle
class ResponseTool(Tool):
def execute(self,**kwargs):
# superior = self.agent.get_data("superior")
# if superior:
self.agent.set_data("timeout", 60)
return Response(message=self.args["text"], break_loop=True)
# else:
def after_execution(self, response, **kwargs):
pass # do add anything to the history or output |