UNPKG

agentfootprint

Version:

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

21 lines • 901 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.emitEmbedding = void 0; const runRedaction_js_1 = require("../../redaction/runRedaction.js"); /** * Fire the event when the scope has an emit channel, and do nothing when it * does not. Served by the run's redaction like every typed event * (`src/redaction/runRedaction.ts` · `emitServed`). * * A memory pipeline can be mounted outside an Agent (`mountMemoryRead` on a * bare flowchart), and a stage that threw because nobody was listening would * make observability a requirement rather than an option. */ function emitEmbedding(scope, payload) { const emitter = scope.$emit; if (typeof emitter === 'function') { (0, runRedaction_js_1.emitServed)(scope, 'agentfootprint.embedding.generated', payload); } } exports.emitEmbedding = emitEmbedding; //# sourceMappingURL=emitEmbedding.js.map