eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
14 lines (13 loc) • 592 B
TypeScript
import { type UnstampedMessageStreamEvent } from "#protocol/message.js";
type TerminalSessionEvent = Extract<UnstampedMessageStreamEvent, {
type: "session.completed" | "session.failed";
}>;
/** Delivers one out-of-turn terminal event through the native instrumentation lifecycle. */
export declare function emitTerminalSessionEvent(input: {
readonly errorId?: string;
readonly event: TerminalSessionEvent;
readonly parentWritable: WritableStream<Uint8Array>;
readonly serializedContext: Record<string, unknown>;
readonly turnId?: string;
}): Promise<void>;
export {};