Spaces:
Paused
Paused
File size: 627 Bytes
bab921d deab47c bab921d deab47c 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 TaskDone(Tool):
def execute(self,**kwargs):
# superior = self.agent.get_data("superior")
# if superior:
self.agent.set_data("timeout", 0)
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 |