Module session_backend
Expand description
Trait abstraction for session persistence backends.
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.
Implementations must be
Send + Syncfor sharing across async tasks.