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.03 kB
JavaScript
;
/**
* ValidationRecorder — forwards `agentfootprint.validation.*` emits to the
* dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges tool-args validation events (#9) emitted by the
* toolCalls stage when LLM-produced args fail the tool's declared
* `inputSchema` — so consumers observe rejected/warned calls via
* `agent.on('agentfootprint.validation.args_invalid', ...)`.
* Emits: agentfootprint.validation.args_invalid
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.validationRecorder = void 0;
const EmitBridge_js_1 = require("./EmitBridge.js");
function validationRecorder(options) {
return new EmitBridge_js_1.EmitBridge({
id: options.id ?? 'agentfootprint.validation-recorder',
prefix: 'agentfootprint.validation.',
dispatcher: options.dispatcher,
getRunContext: options.getRunContext,
});
}
exports.validationRecorder = validationRecorder;
//# sourceMappingURL=ValidationRecorder.js.map