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§
- Jsonl
Storage - On-disk JSONL backend. Each message is serialised to one line; the file is
named
<session_id>.jsonlinside the configured directory. - Noop
Storage - Storage backend that discards everything — useful for tests / ephemeral sessions.
- Session
Metadata - 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.