|
AQIT 0.1.0
|
Functions | |
| Path | _memory_path (str session_id) |
| dict[str, Any] | load_local_memory (str session_id) |
| None | save_local_memory (str session_id, dict[str, Any] memory) |
| dict[str, Any] | patch_local_memory (str session_id, str key, Any value) |
| dict[str, Any] | memory_from_sync_events (list[Any] events) |
Variables | |
| str | _MEMORY_DIR = Path.home() / ".aquin" / "session_memory" |
|
protected |
Definition at line 20 of file session_memory_store.py.
Referenced by load_local_memory(), and save_local_memory().
| dict[str, Any] load_local_memory | ( | str | session_id | ) |
Definition at line 25 of file session_memory_store.py.
References _memory_path().
Referenced by patch_local_memory().
| dict[str, Any] memory_from_sync_events | ( | list[Any] | events | ) |
Replay session.meta memory patches from stored sync events.
Definition at line 55 of file session_memory_store.py.
| dict[str, Any] patch_local_memory | ( | str | session_id, |
| str | key, | ||
| Any | value ) |
Definition at line 48 of file session_memory_store.py.
References load_local_memory(), and save_local_memory().
| None save_local_memory | ( | str | session_id, |
| dict[str, Any] | memory ) |
Definition at line 38 of file session_memory_store.py.
References _memory_path().
Referenced by patch_local_memory().
|
protected |
Definition at line 17 of file session_memory_store.py.