Skip to main content

Module persist

Module persist 

Source
Expand description

Session persistence (JSON + SQLite backends).

Modules§

context_reference
Durable context-reference metadata (session resume, HTTP runtime).
session_manager
Session management for resuming conversations.
session_store_sqlite

Structs§

ContextReference
Durable, compact metadata for a user-visible context reference.
SavedSession
A saved session containing full conversation history
SessionContextReference
Durable context-reference metadata attached to a user message.
SessionManager
Manager for session persistence operations
SessionMetadata
Session metadata stored with each saved session

Enums§

ContextReferenceKind
ContextReferenceSource

Functions§

delete_session_sqlite
list_sessions_sqlite
load_session_sqlite
open_sqlite_session_db
Opens (or creates) the SQLite DB at db_path. If JSON files exist in sessions_dir and the DB is empty, auto-migrates.
prune_workspace_snapshots
Prune snapshots older than max_age for workspace.
save_session_sqlite