Spaces:
Runtime error
Runtime error
Download agent/memory/memory.py from TheAbyss99/abyss-api: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/spaces/TheAbyss99/abyss-api/resolve/main/agent/memory/memory.py
- Command line
-
hf download hf://spaces/TheAbyss99/abyss-api/agent/memory/memory.py
-
curl -L -o memory.py https://huggingface.co/spaces/TheAbyss99/abyss-api/resolve/main/agent/memory/memory.py
305 Bytes
| _scratchpads: dict[str, str] = {} | |
| def get_scratchpad(conv_id: str) -> str: | |
| return _scratchpads.get(conv_id, "") | |
| def set_scratchpad(conv_id: str, content: str) -> None: | |
| _scratchpads[conv_id] = content | |
| def clear_scratchpad(conv_id: str) -> None: | |
| _scratchpads.pop(conv_id, None) |