UNPKG

eve

Version:

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

15 lines (14 loc) 631 B
/** * The run's control inbox. An unawaited hook read is not scheduled under * replay, so `cancelled` must be raced for a cancel to be observed at all. */ export interface WorkflowToolRunControlInbox { readonly signal: AbortSignal; /** Rejects with {@link WorkflowToolRunCancelledError} when a cancel message arrives; never resolves. */ readonly cancelled: Promise<never>; reason(): string | undefined; } export declare function openWorkflowToolRunControlInbox(hookToken: string): WorkflowToolRunControlInbox; export declare class WorkflowToolRunCancelledError extends Error { constructor(reason: string); }