ℹ️ These docs are for the v2.0 version of Galileo. Documentation for v1.0 version can be found here.
Metrics
[key: string]: | undefined | MetricValueType | () => Record<string, MetricValueType | undefined>
new LlmMetrics(options: LlmMetricsOptions): LlmMetrics;
LlmMetricsOptions
LlmMetrics
constructor
optional durationNs: number;
durationNs
optional numInputTokens: number;
optional numOutputTokens: number;
optional numTotalTokens: number;
optional timeToFirstTokenNs: number;
toJSON(): Record<string, MetricValueType | undefined>;
Record
string
MetricValueType
undefined
toJSON
Was this page helpful?