Skip to content

bodhi-realtime-agent / SessionStore

Interface: SessionStore ​

Defined in: src/core/session-store.ts:7

Persistence interface for session checkpoints (crash recovery / session restore). Implementations should deep-copy on save/load to prevent shared-reference mutations.

Methods ​

delete() ​

delete(sessionId): Promise<void>

Defined in: src/core/session-store.ts:13

Delete a session checkpoint.

Parameters ​

sessionId ​

string

Returns ​

Promise<void>


load() ​

load(sessionId): Promise<SessionCheckpoint | null>

Defined in: src/core/session-store.ts:11

Load a session checkpoint by ID (null if not found).

Parameters ​

sessionId ​

string

Returns ​

Promise<SessionCheckpoint | null>


save() ​

save(checkpoint): Promise<void>

Defined in: src/core/session-store.ts:9

Persist a session checkpoint (overwrites any existing checkpoint for this session).

Parameters ​

checkpoint ​

SessionCheckpoint

Returns ​

Promise<void>

Built with VitePress