agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
20 lines (19 loc) • 836 B
TypeScript
/**
* compareFinders — run several finders on the same case and collect their answers
* side by side (a leaderboard row per finder). PARAMETRIC: you pass the finders to
* compare, so nothing is auto-discovered or retained — unused finders stay
* tree-shakeable.
*/
import type { Finder, FindInput, FindResult } from './types.js';
/** One finder's result in a comparison (or the error it threw). */
export interface CompareRow {
readonly finder: string;
readonly result: FindResult | null;
readonly error?: string;
}
/**
* 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.
*/
export declare function compareFinders(finders: readonly Finder[], input: FindInput): Promise<CompareRow[]>;