interface LLMMetrics {
    cancelled: boolean;
    completionTokens: number;
    duration: number;
    error?: Error;
    label: string;
    promptTokens: number;
    requestId: string;
    timestamp: number;
    tokensPerSecond: number;
    totalTokens: number;
    ttft: number;
}

Hierarchy (view full)

Properties

cancelled: boolean
completionTokens: number
duration: number
error?: Error
label: string
promptTokens: number
requestId: string
timestamp: number
tokensPerSecond: number
totalTokens: number
ttft: number