Skip to content
Français

TaskInteractionRecord

import type { TaskInteractionRecord } from "@elie-laloum/outpost";
  • stateOptional
    WorkflowJson | undefined
    Immutable lossless JSON continuation state saved by the task.
  • requestOptional
    WorkflowInputRequest | undefined
    Most recent persisted question, pending until its answer is accepted.
  • answerOptional
    WorkflowAnswerRecord | undefined
    Accepted response to request, persisted before the task is scheduled again; replaced at the next suspension.
export interface TaskInteractionRecord {
  readonly state?: WorkflowJson;
  readonly request?: WorkflowInputRequest;
  readonly answer?: WorkflowAnswerRecord;
}