@cognigy/rest-api-client
Version:
Cognigy REST-Client
27 lines • 804 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RESET_CONTEXT = void 0;
/* Custom modules */
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
/**
* Node name: 'resetContext'
*
* Purpose:
* Resets the context of the current brain to default
*/
exports.RESET_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
type: "resetContext",
defaultLabel: "Reset Context",
summary: "UI__NODE_EDITOR__RESET_CONTEXT__SUMMARY",
appearance: {
showIcon: false
},
fields: [],
tags: ["data"],
function: async ({ cognigy }) => {
const { api } = cognigy;
api.resetContext();
api.logDebugMessage(`UI__DEBUG_MODE__RESET_CONTEXT__MESSAGE`);
}
});
//# sourceMappingURL=resetContext.js.map