Spaces:
Paused
Paused
File size: 386 Bytes
15a2751 deab47c 15a2751 bab921d 15a2751 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from agent import Agent
from python.helpers import files
from python.helpers.tool import Tool, Response
import memory_tool
class Memorize(Tool):
def execute(self,**kwargs):
memory_tool.process_query(self.agent, str(self.args), "save")
return Response(
message=files.read_file("prompts/fw.memorized.md"),
break_loop=False,
) |