UNPKG

agentfootprint

Version:

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

18 lines • 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertionKey = exports.comparableValueOf = exports.participates = exports.sameSubject = void 0; var contextfootprint_1 = require("contextfootprint"); Object.defineProperty(exports, "sameSubject", { enumerable: true, get: function () { return contextfootprint_1.sameSubject; } }); Object.defineProperty(exports, "participates", { enumerable: true, get: function () { return contextfootprint_1.participates; } }); Object.defineProperty(exports, "comparableValueOf", { enumerable: true, get: function () { return contextfootprint_1.comparableValueOf; } }); /** * Preserve Agent's recorded identity encoding across the extraction. * This legacy delimiter format retains its existing collision behavior; new * consumers use ContextFootprint's tuple key. Recording migration is separate. */ function assertionKey(a) { const epoch = a.epoch === undefined ? '' : String(a.epoch); return `${a.subject.kind}\u0000${a.subject.id}\u0000${a.predicate}\u0000${epoch}`; } exports.assertionKey = assertionKey; //# sourceMappingURL=types.js.map