UNPKG

call-ai

Version:

Lightweight library for making AI API calls with streaming support

7 lines (6 loc) 389 B
import { ResponseMeta } from "./types.js"; declare const responseMetadata: WeakMap<object, ResponseMeta>; declare const stringResponseMap: Map<string, object>; declare function boxString(str: string): object; declare function getMeta(response: string | AsyncGenerator<string, string, unknown>): ResponseMeta | undefined; export { responseMetadata, stringResponseMap, boxString, getMeta };