rulvar API reference / @rulvar/rulvar / InMemoryTranscriptStore
Class: InMemoryTranscriptStore
Defined in: packages/core/dist/index.d.ts
In-memory TranscriptStore. Refs follow the <runId>/<name> convention so list(runId) can filter without a side index.
Implements
Constructors
Constructor
ts
new InMemoryTranscriptStore(): InMemoryTranscriptStore;Returns
InMemoryTranscriptStore
Methods
delete()
ts
delete(ref): Promise<void>;Defined in: packages/core/dist/index.d.ts
Deletes one blob; a missing ref is a no-op, never an error (M8-T04 amendment, OQ-20: retention is impossible without blob deletion). The cascade over a run's blobs is ENGINE-side (Engine.deleteRun), never a store obligation.
Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<void>
Implementation of
get()
ts
get(ref): Promise<Bytes | null>;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<Bytes | null>
Implementation of
list()
ts
list(runId): Promise<string[]>;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
runId | string |
Returns
Promise<string[]>
Implementation of
put()
ts
put(ref, blob): Promise<void>;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
ref | string |
blob | Bytes |
Returns
Promise<void>