eliza-core
Version:
A rendition of ELIZA program engine by Weizenbaum sharable for all javascript environments
19 lines (18 loc) • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function snapshotKey(key) {
var toPrint = {};
toPrint.key = key.getKey();
toPrint.rank = key.getRank();
toPrint.decomps = (key.getDecomp() || []).map(function (d) { return snapshotDecomp(d); });
return toPrint;
}
exports.snapshotKey = snapshotKey;
function snapshotDecomp(d) {
return {
pattern: d.getPattern(),
isAware: d.isMemoryKey(),
reasembs: d.getReasemb(),
};
}
exports.snapshotDecomp = snapshotDecomp;