@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
17 lines (16 loc) • 655 B
TypeScript
import type { NeuroLinkMiddleware } from "../../types/index.js";
/**
* Create analytics middleware for tracking AI model usage
* Collects metrics on token usage, response times, and model performance
*/
export declare function createAnalyticsMiddleware(): NeuroLinkMiddleware;
/**
* Get collected metrics from analytics middleware
* Note: This is a utility function for accessing metrics
*/
export declare function getAnalyticsMetrics(): Map<string, Record<string, unknown>>;
/**
* Clear collected metrics from analytics middleware
* Note: This is a utility function for clearing metrics
*/
export declare function clearAnalyticsMetrics(): void;