Skip to main content

Module storage

Module storage 

Source
Expand description

Session persistence backends. Session storage for persisting and resuming agent conversations.

The backend is pluggable via the Storage trait. Two built-in implementations:

  • JsonlStorage — one JSON line per message, on disk, under <dir>/<session_id>.jsonl.
  • NoopStorage — black-hole; useful for tests and ephemeral sessions.

Structs§

JsonlStorage
On-disk JSONL backend. Each message is serialised to one line; the file is named <session_id>.jsonl inside the configured directory.
NoopStorage
Storage backend that discards everything — useful for tests / ephemeral sessions.
SessionMetadata
Session metadata persisted alongside messages so a resumed session can restore turn IDs, metrics, and file-read state.

Traits§

Storage
Storage backend for persisting agent sessions.