llmverify
Version:
AI Output Verification Toolkit — Local-first LLM safety, hallucination detection, PII redaction, prompt injection defense, and runtime monitoring. Zero telemetry. OWASP LLM Top 10 aligned.
42 lines • 6.64 kB
JavaScript
;
/**
* Engine Exports
*
* @module engines
* @author Haiec
* @license MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getReasoningLabel = exports.calculateCompressionScore = exports.calculateCompressionMetrics = exports.getHallucinationLabel = exports.calculateHallucinationRisk = exports.calculateHallucinationSignals = exports.evaluateInstructionRules = exports.detectAndRepairJson = exports.detectIntent = exports.classify = exports.ClassificationEngine = exports.getAlertLevel = exports.isHealthy = exports.HealthScoreEngine = exports.BaselineEngine = exports.StructureEngine = exports.FingerprintEngine = exports.TokenRateEngine = exports.LatencyEngine = exports.RiskScoringEngine = exports.JSONValidatorEngine = exports.ConsistencyEngine = exports.HallucinationEngine = void 0;
var hallucination_1 = require("./hallucination");
Object.defineProperty(exports, "HallucinationEngine", { enumerable: true, get: function () { return hallucination_1.HallucinationEngine; } });
var consistency_1 = require("./consistency");
Object.defineProperty(exports, "ConsistencyEngine", { enumerable: true, get: function () { return consistency_1.ConsistencyEngine; } });
var json_validator_1 = require("./json-validator");
Object.defineProperty(exports, "JSONValidatorEngine", { enumerable: true, get: function () { return json_validator_1.JSONValidatorEngine; } });
var risk_scoring_1 = require("./risk-scoring");
Object.defineProperty(exports, "RiskScoringEngine", { enumerable: true, get: function () { return risk_scoring_1.RiskScoringEngine; } });
// Runtime monitoring engines
var runtime_1 = require("./runtime");
Object.defineProperty(exports, "LatencyEngine", { enumerable: true, get: function () { return runtime_1.LatencyEngine; } });
Object.defineProperty(exports, "TokenRateEngine", { enumerable: true, get: function () { return runtime_1.TokenRateEngine; } });
Object.defineProperty(exports, "FingerprintEngine", { enumerable: true, get: function () { return runtime_1.FingerprintEngine; } });
Object.defineProperty(exports, "StructureEngine", { enumerable: true, get: function () { return runtime_1.StructureEngine; } });
Object.defineProperty(exports, "BaselineEngine", { enumerable: true, get: function () { return runtime_1.BaselineEngine; } });
Object.defineProperty(exports, "HealthScoreEngine", { enumerable: true, get: function () { return runtime_1.HealthScoreEngine; } });
Object.defineProperty(exports, "isHealthy", { enumerable: true, get: function () { return runtime_1.isHealthy; } });
Object.defineProperty(exports, "getAlertLevel", { enumerable: true, get: function () { return runtime_1.getAlertLevel; } });
// Classification engine
var classification_1 = require("./classification");
Object.defineProperty(exports, "ClassificationEngine", { enumerable: true, get: function () { return classification_1.ClassificationEngine; } });
Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return classification_1.classify; } });
Object.defineProperty(exports, "detectIntent", { enumerable: true, get: function () { return classification_1.detectIntent; } });
Object.defineProperty(exports, "detectAndRepairJson", { enumerable: true, get: function () { return classification_1.detectAndRepairJson; } });
Object.defineProperty(exports, "evaluateInstructionRules", { enumerable: true, get: function () { return classification_1.evaluateInstructionRules; } });
Object.defineProperty(exports, "calculateHallucinationSignals", { enumerable: true, get: function () { return classification_1.calculateHallucinationSignals; } });
Object.defineProperty(exports, "calculateHallucinationRisk", { enumerable: true, get: function () { return classification_1.calculateHallucinationRisk; } });
Object.defineProperty(exports, "getHallucinationLabel", { enumerable: true, get: function () { return classification_1.getHallucinationLabel; } });
Object.defineProperty(exports, "calculateCompressionMetrics", { enumerable: true, get: function () { return classification_1.calculateCompressionMetrics; } });
Object.defineProperty(exports, "calculateCompressionScore", { enumerable: true, get: function () { return classification_1.calculateCompressionScore; } });
Object.defineProperty(exports, "getReasoningLabel", { enumerable: true, get: function () { return classification_1.getReasoningLabel; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5naW5lcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7OztHQU1HOzs7QUFFSCxpREFBc0Q7QUFBN0Msb0hBQUEsbUJBQW1CLE9BQUE7QUF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