assistant-stream
Version:
Streaming utilities for AI assistants
12 lines • 406 B
TypeScript
import type { UIMessageStreamChunk } from "./chunk-types.js";
type ChunkController = {
enqueue(chunk: UIMessageStreamChunk): void;
};
export declare const createChunkNormalizer: () => {
normalize(chunk: {
type: string;
} & Record<string, any>, controller: ChunkController): void;
flush(controller: ChunkController): void;
};
export {};
//# sourceMappingURL=chunk-normalizer.d.ts.map