Spaces:
Paused
Paused
Download python/tools/memorize.py from OnyxMunk/GravityFalls: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/c425c4043529634171dcfbb3aa5a94de613d28a8/python/tools/memorize.py
- Command line
-
hf download hf://spaces/OnyxMunk/GravityFalls@c425c4043529634171dcfbb3aa5a94de613d28a8/python/tools/memorize.py
-
curl -L -o memorize.py https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/c425c4043529634171dcfbb3aa5a94de613d28a8/python/tools/memorize.py
386 Bytes
| 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, | |
| ) |