UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

26 lines • 803 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compareFinders = void 0; /** * Run each finder on `input`; a finder that throws (e.g. missing a dep it needs) * becomes a row with `result: null` and `error` set, so one finder cannot abort * the comparison. */ async function compareFinders(finders, input) { const rows = []; for (const f of finders) { try { rows.push({ finder: f.name, result: await f.find(input) }); } catch (e) { rows.push({ finder: f.name, result: null, error: e instanceof Error ? e.message : String(e), }); } } return rows; } exports.compareFinders = compareFinders; //# sourceMappingURL=compareFinders.js.map