eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
12 lines (11 loc) • 551 B
TypeScript
import type { WorkflowToolRunAddress } from "#execution/tools/workflow/types.js";
/**
* Asks the run to cancel itself; cancels it outright only if the message cannot
* be delivered. Failures are logged, not thrown: the caller has already
* committed the cancellation the run was serving.
*/
export declare function cancelWorkflowToolRun(run: WorkflowToolRunAddress, reason: string): Promise<void>;
export declare function cancelWorkflowToolRunStep(input: {
readonly reason: string;
readonly run: WorkflowToolRunAddress;
}): Promise<void>;