Storage#

Restore model context and preserve immutable original messages.

Read the walkthrough before consulting individual signatures.

Public interfaces#

Interface

Purpose

BaseSessionPersistenceExtension

Reusable lifecycle adapter for one typed session storage implementation.

ContextSnapshot

One immutable checkpoint representing a compacted Raw Log prefix.

RawMessageRecord

One immutable original message returned by session storage.

SessionStorage

Persistence boundary; implementations own transactions and message encoding.

SessionSummary

Small read model used to list persisted conversation sessions.

SessionView

Latest checkpoint and the subsequent immutable Raw Log tail.

SessionPersistenceExtension

Adapt any application-owned SessionStorage to Agent lifecycle hooks.

SQLiteSessionExtension

Restore and save agent sessions in an owned SQLite database.

SQLiteSessionStorage

Standalone SQLite session storage shipped with zett-agent.