Expand description
Trait abstraction for session persistence backends.
Backends store per-sender conversation histories. The trait is intentionally minimal — load, append, remove_last, clear_messages, list — so that JSONL and SQLite (and future backends) share a common interface.
Structs§
- Session
Context - Structured routing context recorded alongside a session. Mirrors the
ChannelMessagefields the orchestrator uses to composeconversation_history_keyso the session row can be queried by channel / room / sender without re-parsing the synthetic key. - Session
Metadata - Metadata about a persisted session.
- Session
Query - Query parameters for listing sessions.
- Session
State - Session state information.
- Timestamped
Message - One persisted message with the optional
created_atthe backend stamped on it. JSONL / in-memory backends returnNone; SQLite returns the row’screated_atcolumn.
Traits§
- Session
Backend - Trait for session persistence backends.