@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
12 lines (11 loc) • 588 B
TypeScript
import type { NeuroLinkMiddleware, AutoEvaluationConfig } from "../../types/index.js";
/**
* Creates the Auto-Evaluation middleware, which intercepts generation requests
* to evaluate the quality of the response. If the response quality is below a
* configured threshold, it can trigger retries with feedback.
*
* @param config - Configuration for the auto-evaluation middleware.
* @returns A `NeuroLinkMiddleware` object.
*/
export declare function createAutoEvaluationMiddleware(config?: AutoEvaluationConfig): NeuroLinkMiddleware;
export default createAutoEvaluationMiddleware;