UNPKG

assistant-stream

Version:

Streaming utilities for AI assistants

13 lines • 601 B
import type { ReadonlyJSONValue } from "../../utils.js"; import type { GorpStreamOperation, GorpStreamChunk } from "./types.js"; type GorpStreamController = { readonly abortSignal: AbortSignal; enqueue(operations: readonly GorpStreamOperation[]): void; }; type CreateGorpStreamOptions = { execute: (controller: GorpStreamController) => void | PromiseLike<void>; defaultValue?: ReadonlyJSONValue; }; export declare const createGorpStream: ({ execute, defaultValue, }: CreateGorpStreamOptions) => ReadableStream<GorpStreamChunk>; export {}; //# sourceMappingURL=createGorpStream.d.ts.map