UNPKG

symmetry-core

Version:

Use this repository to become an inference provider on the Symmetry network programmatically.

15 lines (14 loc) 558 B
import { StreamMetrics, StreamMetricsOptions, MetricsState } from "./types"; export declare class StreamMetricsCollector { private readonly options; private readonly state; private readonly metrics; private lastMetricTime; static readonly DEFAULT_OPTIONS: Required<StreamMetricsOptions>; constructor(options?: Partial<StreamMetricsOptions>); processToken(token: string): Promise<StreamMetrics | null>; getMetricsState(): MetricsState; private updateState; private shouldCollectMetrics; private calculateMetrics; }