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 • 1.21 kB
"use strict"; /** * CompositionRecorder — forwards `agentfootprint.composition.*` emits to the dispatcher. * * Pattern: Factory (GoF) returning an EmitBridge instance. * Role: Convenience constructor for the composition-domain bridge recorder. * Compositions (Sequence, Parallel, Conditional, Loop) typedEmit * composition.enter/exit/fork_start/branch_complete/merge_end/ * route_decided/iteration_start/iteration_exit from their internal * stages; this recorder observes via footprintjs's EmitRecorder * channel and re-dispatches with typed payloads + meta. * Emits: agentfootprint.composition.* */ Object.defineProperty(exports, "__esModule", { value: true }); exports.compositionRecorder = void 0; const EmitBridge_js_1 = require("./EmitBridge.js"); function compositionRecorder(options) { return new EmitBridge_js_1.EmitBridge({ id: options.id ?? 'agentfootprint.composition-recorder', prefix: 'agentfootprint.composition.', dispatcher: options.dispatcher, getRunContext: options.getRunContext, }); } exports.compositionRecorder = compositionRecorder; //# sourceMappingURL=CompositionRecorder.js.map