Expand description
Memory snapshot export and import.
A MemorySnapshot serializes the full set of conversations, messages, and
summaries from SQLite into a JSON document suitable for backup or migration.
Import is idempotent: conversations and messages already present in the target
database are skipped and counted in ImportStats::skipped.
Structs§
- Conversation
Snapshot - One conversation and all its associated data in a
MemorySnapshot. - Import
Stats - Counters returned by
import_snapshot. - Memory
Snapshot - Complete serializable snapshot of the
SQLitememory store. - Message
Snapshot - A single message as stored in a
MemorySnapshot. - Summary
Snapshot - A compression summary record in a
MemorySnapshot.
Functions§
- export_
snapshot - Export all conversations, messages and summaries from
SQLiteinto a snapshot. - import_
snapshot - Import a snapshot into
SQLite, skipping duplicate entries.