UNPKG

eve

Version:

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

9 lines (8 loc) • 556 B
import type { WorkflowToolRunAddress } from "#execution/tools/workflow/types.js"; /** * Asks the run to cancel itself, then bounds cooperative cleanup. Failures are * logged: the caller has already committed cancellation of the calling turn. */ export declare function cancelWorkflowToolRun(run: WorkflowToolRunAddress, reason: string): Promise<void>; /** Allows cooperative cleanup, then forcibly stops a still-live run. */ export declare function settleWorkflowToolRunCancellation(runId: string, reason: string, cooperative?: boolean): Promise<void>;