UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

25 lines 746 B
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; /** * Node name: 'resetContext' * * Purpose: * Resets the context of the current brain to default */ export const RESET_CONTEXT = createNodeDescriptor({ type: "resetContext", defaultLabel: "Reset Context", summary: "UI__NODE_EDITOR__RESET_CONTEXT__SUMMARY", appearance: { showIcon: false }, fields: [], tags: ["data"], function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () { const { api } = cognigy; api.resetContext(); api.logDebugMessage(`UI__DEBUG_MODE__RESET_CONTEXT__MESSAGE`); }) }); //# sourceMappingURL=resetContext.js.map