waygraph / seedMemStub
Function: seedMemStub()
seedMemStub(
mem,flow):void
Defined in: src/engine/mem/mem-stub.ts:84
Fills each key the flow's steps require and mem doesn't have from its mem stub. A flow with map({ memStub: true }) does this itself when it runs; call it for a flow without, to use the stubs anyway.
Parameters
mem
flow
Flow<Checkpoint<string>>
Returns
void
Example
ts
seedMemStub(mem, flow); await flow.run(context, mem);