UNPKG

eve

Version:

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

19 lines (18 loc) 767 B
import { type ContextContainer } from "#context/container.js"; import type { InstrumentationHooks } from "#instrumentation/lifecycle.js"; import type { TaskView } from "#tasks/types.js"; export interface BackgroundTaskInstrumentation { readonly publishBackgroundTaskSettlements: (input: { readonly acceptedAtMs?: number; readonly views: readonly TaskView[]; }) => Promise<void>; readonly rememberBackgroundTasks: (tasks: readonly { readonly callId?: string; readonly taskId: string; }[]) => void; } export declare function createBackgroundTaskInstrumentation(input: { readonly ctx: ContextContainer; readonly hooks: () => InstrumentationHooks; readonly sessionId: string; }): BackgroundTaskInstrumentation;