import { validateProviderFinalAnswer } from "./provider-final-validator.js";
export function validateProviderResponseFinalAnswer(input) {
    return validateProviderFinalAnswer({
        messages: input.messages,
        objective: input.objective,
        text: input.text,
        toolEffects: providerToolEffectMap(input.availableTools),
    });
}
function providerToolEffectMap(tools) {
    const effects = new Map();
    for (const tool of tools) {
        effects.set(tool.name, tool.effect);
    }
    return effects;
}
//# sourceMappingURL=provider-final-answer-handler.js.map