UNPKG

agentfootprint

Version:

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

24 lines • 1 kB
"use strict"; /** * AgentRecorder — forwards `agentfootprint.agent.*` emits to the dispatcher. * * Pattern: Factory (GoF) returning an EmitBridge instance. * Role: Convenience constructor for the agent-lifecycle bridge recorder. * Same mechanics as StreamRecorder, scoped to agent.* events * (turns + iterations + route decisions + handoffs). * Emits: agentfootprint.agent.turn_start / turn_end / iteration_start / * iteration_end / route_decided / handoff */ Object.defineProperty(exports, "__esModule", { value: true }); exports.agentRecorder = void 0; const EmitBridge_js_1 = require("./EmitBridge.js"); function agentRecorder(options) { return new EmitBridge_js_1.EmitBridge({ id: options.id ?? 'agentfootprint.agent-recorder', prefix: 'agentfootprint.agent.', dispatcher: options.dispatcher, getRunContext: options.getRunContext, }); } exports.agentRecorder = agentRecorder; //# sourceMappingURL=AgentRecorder.js.map