SessionRecord

The record of one LLM session: its ids, its kind, its folder, its state, its lease and its token counts (trove-parts §TPN-2).

Group libllmsession

In the namespace octomy::llmsession. Declared in src/libs/libllmsession/llmsession/SessionRecord.hpp.

Detailed description

id is ours. It is a UUID that the store gives at creation, and it never changes. The provider's own id, for example the session id of Claude Code, is in providerSession, and it can arrive late or change when a provider starts a new session. Before trove-parts, Trove changed its own session id to the id of Claude Code (re-keying). This record does not do that.

title is a short name for a list of sessions. The OPAL chat sets it from the first words of the first message (§TPN-9).

holder and leaseExpiresMs are the lease of §TPN-6. retention is keep or a duration after the last activity, after which SessionStore::purgeExpired() removes the session.

See also octomy::llmsession::SessionStore.

In this section