agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
20 lines • 694 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeBeats = void 0;
/**
* Build the `writeBeats` stage function.
*/
function writeBeats(config) {
return async (scope) => {
const beats = (scope.newBeats ?? []);
if (beats.length === 0)
return;
const identity = scope.identity;
// `putMany` MUST be a no-op on an empty batch per the interface
// contract, but we short-circuit above anyway to skip the adapter
// call entirely when there's nothing to persist.
await config.store.putMany(identity, beats);
};
}
exports.writeBeats = writeBeats;
//# sourceMappingURL=writeBeats.js.map