UNPKG

eve

Version:

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

12 lines (11 loc) 639 B
import type { HarnessEmitFn } from "#harness/types.js"; import type { HarnessEmissionState } from "#harness/emission.js"; /** * Emits the cancelled-turn epilogue: `turn.cancelled` → `session.waiting` * (never a failure event) and returns the between-turns emission state. * * `state` is the last *persisted* emission state, which may predate the * cancelled turn's preamble — the turn id is reconstructed via * {@link activeTurnId} and `sessionStarted` is stamped `true`. */ export declare function emitCancelledTurn(emitFn: HarnessEmitFn, state: HarnessEmissionState, continuationToken: string): Promise<HarnessEmissionState>;