ai-utils.js
Version:
Build AI applications, chatbots, and agents with JavaScript and TypeScript.
6 lines (5 loc) • 336 B
TypeScript
import { ErrorHandler } from "../../util/ErrorHandler.js";
export declare function createTextDeltaEventSource(textDeltas: AsyncIterable<string>): ReadableStream<any>;
export declare function parseTextDeltaEventSource(stream: ReadableStream<Uint8Array>, options?: {
errorHandler: ErrorHandler;
}): AsyncIterable<string | undefined>;