UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

10 lines (9 loc) 843 B
import type { RuntimeWorkflowTaskRequest } from "#shared/action-types.js"; import { type WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js"; export declare const WORKFLOW_TASK_INTERRUPT_KIND = "eve.workflow-task"; export declare function isWorkflowTaskInterrupt(interrupt: unknown): boolean; export declare function buildWorkflowTaskFromInterrupt(interrupt: WorkflowSandboxInterrupt): RuntimeWorkflowTaskRequest; /** Returns every pending workflow-task interrupt in deterministic ledger order. */ export declare function getWorkflowTaskInterrupts(interrupt: WorkflowSandboxInterrupt): WorkflowSandboxInterrupt[]; export declare function buildWorkflowTasksFromInterrupt(interrupt: WorkflowSandboxInterrupt): RuntimeWorkflowTaskRequest[]; export declare function getWorkflowTaskCallIds(interrupt: WorkflowSandboxInterrupt): string[];