|
AQIT 0.1.0
|
Functions | |
| httpx.Client | _client () |
| int | push_events (str session_id, list[dict[str, Any]] events, str api_key, str base_url, float timeout=15.0) |
| dict[str, Any] | fetch_session_state (str session_id, str api_key, str base_url, float timeout=10.0) |
| dict[str, Any] | load_session_memory (str session_id, str api_key, str base_url, *, dict[str, Any]|None local=None) |
|
protected |
Definition at line 19 of file sync.py.
Referenced by fetch_session_state().
| dict[str, Any] fetch_session_state | ( | str | session_id, |
| str | api_key, | ||
| str | base_url, | ||
| float | timeout = 10.0 ) |
Load session state from cloud; merge memory from snapshot + event replay.
Definition at line 35 of file sync.py.
References _client().
Referenced by load_session_memory().
| dict[str, Any] load_session_memory | ( | str | session_id, |
| str | api_key, | ||
| str | base_url, | ||
| * | , | ||
| dict[str, Any] | None | local = None ) |
Merged memory: cloud snapshot/events, then local ctx, then disk cache.
Definition at line 66 of file sync.py.
References fetch_session_state().