assistant-stream
Version:
Streaming utilities for AI assistants
13 lines • 479 B
TypeScript
import type { SSEEvent, SSEEventDecoderOptions } from "./SSEEventDecoder.js";
export type PipelineSSEEvent = {
event: string;
data: string;
id?: string;
retry?: number;
};
export declare class SSEEventDecoderStream extends TransformStream<string, PipelineSSEEvent> {
constructor(options?: Omit<SSEEventDecoderOptions, "trailing"> & {
stopAfter?: ((event: SSEEvent) => boolean) | undefined;
});
}
//# sourceMappingURL=SSEEventDecoderStream.d.ts.map