bodhi-realtime-agent / InMemorySessionStore
Class: InMemorySessionStore
Defined in: core/session-store.ts:22
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: core/session-store.ts:34
Delete a session checkpoint.
Parameters
sessionId
string
Returns
Promise<void>
Implementation of
load()
load(
sessionId):Promise<SessionCheckpoint|null>
Defined in: core/session-store.ts:29
Load a session checkpoint by ID (null if not found).
Parameters
sessionId
string
Returns
Promise<SessionCheckpoint | null>
Implementation of
save()
save(
checkpoint):Promise<void>
Defined in: core/session-store.ts:25
Persist a session checkpoint (overwrites any existing checkpoint for this session).
Parameters
checkpoint
Returns
Promise<void>