Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/workflow / / CheckpointStore

Interface: CheckpointStore

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:81

Pluggable checkpoint storage interface. The default implementation lives in @graphorin/store-sqlite.

Stable

Methods

deleteThread()

ts
deleteThread(threadId): Promise<void>;

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:86

Parameters

ParameterType
threadIdstring

Returns

Promise&lt;void&gt;


getTuple()

ts
getTuple(
   threadId, 
   namespace, 
   checkpointId?): Promise<
  | CheckpointTuple
| null>;

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:84

Parameters

ParameterType
threadIdstring
namespacestring
checkpointId?string

Returns

Promise< | CheckpointTuple | null>


list()

ts
list(
   threadId, 
   namespace, 
opts?): AsyncIterable<CheckpointTuple>;

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:85

Parameters

ParameterType
threadIdstring
namespacestring
opts?ListOptions

Returns

AsyncIterable&lt;CheckpointTuple&gt;


put()

ts
put(
   threadId, 
   namespace, 
   checkpoint, 
metadata): Promise<string>;

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:82

Parameters

ParameterType
threadIdstring
namespacestring
checkpointCheckpoint
metadataCheckpointMetadata

Returns

Promise&lt;string&gt;


putWrites()

ts
putWrites(
   threadId, 
   namespace, 
   checkpointId, 
   writes, 
taskId): Promise<void>;

Defined in: packages/core/dist/contracts/checkpoint-store.d.ts:83

Parameters

ParameterType
threadIdstring
namespacestring
checkpointIdstring
writesreadonly PendingWrite[]
taskIdstring

Returns

Promise&lt;void&gt;