Expand description
Session persistence and cross-session history diffusion.
Two trait-based extension points:
| Trait | Role |
|---|---|
SessionStore | Persist / load full chat sessions to disk |
HistoryStrategy | Blend past session content into the current chat prompt |
Both operate on the same Turn atom — no duplicate data model.
Structs§
- LogHistory
- Concatenates the most recent session’s turns into a plain transcript block.
- Session
Config - Snapshot of every hot‑swappable setting at the moment a turn was recorded.
- Session
Data - The full serialisable payload for one session.
- Session
Id - Unique identifier for a session.
- Session
Manifest - Lightweight metadata for listing sessions (no turn payload).
- Summary
History - Summarises past sessions via an LLM agent (
Generator). - Turn
- A single conversation turn. Used by both the in‑session memory layer (last N turns for context windows) and the persistence layer (all turns saved to disk).
- Turn
Pairs - Convenience conversion from turns to role/text pairs.
- Turn
Perf - Performance data for a single assistant turn.
Enums§
- Memory
Strategy Kind - Memory strategy used during a session.
- Turn
Role - The speaker of a conversation turn.
Traits§
- History
Strategy - Controls how past session content influences the current chat prompt.
- Session
Store - Pluggable persistence for chat sessions.