Graphorin API reference v0.9.0
Graphorin API reference / @graphorin/workflow / / readThreadState
Function: readThreadState()
ts
function readThreadState(
store,
workflowName,
threadId): Promise<
| ThreadInspection
| null>;Defined in: packages/workflow/src/inspect.ts:64
Read the latest checkpoint of threadId under workflow workflowName and decode it exactly like Workflow.getState does (versioned state envelope + frontier tag). Returns null when the thread does not exist in that namespace - an operator CLI reports that instead of throwing.
Parameters
| Parameter | Type |
|---|---|
store | CheckpointStore |
workflowName | string |
threadId | string |
Returns
Promise< | ThreadInspection | null>