Skip to content

bodhi-realtime-agent / InMemorySessionStore

Class: InMemorySessionStore ​

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

Map-based in-memory implementation of SessionStore. Uses structuredClone for deep-copy isolation between save/load calls.

Implements ​

Constructors ​

Constructor ​

new InMemorySessionStore(): InMemorySessionStore

Returns ​

InMemorySessionStore

Methods ​

delete() ​

delete(sessionId): Promise<void>

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

Delete a session checkpoint.

Parameters ​

sessionId ​

string

Returns ​

Promise<void>

Implementation of ​

SessionStore.delete


load() ​

load(sessionId): Promise<SessionCheckpoint | null>

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

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

Parameters ​

sessionId ​

string

Returns ​

Promise<SessionCheckpoint | null>

Implementation of ​

SessionStore.load


save() ​

save(checkpoint): Promise<void>

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

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

Parameters ​

checkpoint ​

SessionCheckpoint

Returns ​

Promise<void>

Implementation of ​

SessionStore.save

Built with VitePress