UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and

35 lines (34 loc) 1.03 kB
/** * NeuroLink Analytics System * * Provides lightweight analytics tracking for AI provider usage, * including tokens, costs, performance metrics, and custom context. */ import type { JsonValue, UnknownRecord } from "../types/common.js"; export interface AnalyticsData { provider: string; model: string; tokens: { input: number; output: number; total: number; }; cost?: number; responseTime: number; context?: Record<string, JsonValue>; timestamp: string; evaluation?: { relevanceScore: number; accuracyScore: number; completenessScore: number; overall: number; evaluationProvider?: string; evaluationTime?: number; evaluationAttempt?: number; }; costDetails?: UnknownRecord; } /** * Create analytics data structure from AI response */ export declare function createAnalytics(provider: string, model: string, result: unknown, responseTime: number, context?: Record<string, unknown>): AnalyticsData;