"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleTalkToListenRatio = void 0;
const handleTalkToListenRatio = async ({ assertion, output, evaluateResult, }) => {
    if (evaluateResult) {
        return {
            pass: true,
            score: Number(output),
            reason: `${Number(output)}`,
            assertion,
        };
    }
    return {
        pass: true,
        score: 1,
        reason: '',
        metadata: {
            prompt: `Analyze the audio conversation between the customer and AI Bot agent. Provide the talk to listen ratio for the AI agent. Return the result in a metric called 'talk-to-listen-ratio'.`,
            metric: '"talk-to-listen-ratio": 0.6,',
        },
    };
};
exports.handleTalkToListenRatio = handleTalkToListenRatio;
//# sourceMappingURL=talkToListenRatio.js.map