"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleAudioGeneral = void 0;
const invariant_1 = __importDefault(require("../../util/invariant"));
const handleAudioGeneral = async ({ assertion, renderedValue, prompt, output, test, evaluateResult }) => {
    (0, invariant_1.default)(typeof renderedValue === 'string' || renderedValue == undefined, `${assertion?.type ?? 'Unknown'} assertion type must have a string value`);
    if (evaluateResult) {
        const pass = true; //result.includes(renderedValue as string);
        return {
            pass,
            score: pass ? 1 : 0,
            reason: output,
            assertion
        };
    }
    else {
        return {
            pass: true,
            score: 1,
            reason: '',
        };
    }
};
exports.handleAudioGeneral = handleAudioGeneral;
//# sourceMappingURL=general.js.map