UNPKG

agentfootprint

Version:

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

17 lines • 729 B
import { emitServed } from '../../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. */ export function emitEmbedding(scope, payload) { const emitter = scope.$emit; if (typeof emitter === 'function') { emitServed(scope, 'agentfootprint.embedding.generated', payload); } } //# sourceMappingURL=emitEmbedding.js.map