agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
25 lines • 1.02 kB
JavaScript
;
/**
* EvalRecorder — forwards `agentfootprint.eval.*` emits to the dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges consumer-emitted `eval.score` + `eval.threshold_crossed`
* events to typed listeners. Evaluation is a consumer concern
* (LLM-based grading, heuristic checks, reference-output diffs),
* so the library only provides transport — not any built-in
* evaluators.
* Emits: agentfootprint.eval.score / eval.threshold_crossed
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.evalRecorder = void 0;
const EmitBridge_js_1 = require("./EmitBridge.js");
function evalRecorder(options) {
return new EmitBridge_js_1.EmitBridge({
id: options.id ?? 'agentfootprint.eval-recorder',
prefix: 'agentfootprint.eval.',
dispatcher: options.dispatcher,
getRunContext: options.getRunContext,
});
}
exports.evalRecorder = evalRecorder;
//# sourceMappingURL=EvalRecorder.js.map