abyss-api / agent /memory /memory.py
KyleEastwood's picture
Upload folder using huggingface_hub
cc15101 verified
Raw History Blame Contribute Delete
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)