UNPKG

ai-functions

Version:

A powerful TypeScript library for building AI-powered applications with template literals and structured outputs

17 lines 529 B
import { StreamingOptions } from '../types'; export declare class StreamProgressTracker { private tokensGenerated; private startTime; private lastUpdateTime; private tokenRate; private readonly options; private readonly callback; private readonly alpha; constructor(options: StreamingOptions); private updateTokenRate; private estimateTimeRemaining; onChunk(chunk: string): void; onToken(token: string): void; onComplete(): void; } //# sourceMappingURL=stream-progress.d.ts.map