@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
16 lines (15 loc) • 962 B
TypeScript
/**
* @file Contains the logic for mapping raw evaluation results to the structured EvaluationData type.
*/
import type { EnhancedEvaluationContext, EvaluationResult, EvaluationData } from "../types/index.js";
/**
* Maps a raw `EvaluationResult` to the structured `EvaluationData` format.
* This includes calculating derived fields like `isOffTopic` and `alertSeverity`.
*
* @param result The raw `EvaluationResult` from the evaluator.
* @param threshold The score threshold to determine if the evaluation is passing.
* @param offTopicThreshold The score below which a response is considered off-topic.
* @param highSeverityThreshold The score below which a failing response is high severity.
* @returns A structured `EvaluationData` object.
*/
export declare function mapToEvaluationData(evalContext: EnhancedEvaluationContext, result: EvaluationResult, threshold: number, offTopicThreshold?: number, highSeverityThreshold?: number): EvaluationData;