UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

100 lines 3.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRephraseWithAISection = exports.getRephraseWithAIFields = void 0; /** * @returns The fields for rephraseWithAI */ const getRephraseWithAIFields = () => { const fields = [ { key: "generativeAI_rephraseOutputMode", type: "select", label: "UI__NODE_EDITOR__GENERATIVE_AI__REPHRASE_OUTPUT_MODE__LABEL", params: { required: true, options: [ { label: "UI__NODE_EDITOR__GENERATIVE_AI__REPHRASE_OUTPUT_MODE__OPTIONS__NONE__LABEL", value: "none" }, { label: "UI__NODE_EDITOR__GENERATIVE_AI__REPHRASE_OUTPUT_MODE__OPTIONS__USER_INPUTS__LABEL", value: "userInputs" }, { label: "UI__NODE_EDITOR__GENERATIVE_AI__REPHRASE_OUTPUT_MODE__OPTIONS__CUSTOM_INPUTS__LABEL", value: "customInputs" }, ], }, defaultValue: "none", }, { key: "generativeAI_amountOfLastUserInputs", type: "slider", label: "UI__NODE_EDITOR__GENERATIVE_AI__AMOUNT_OF_LAST_USER_INPUTS__LABEL", params: { min: 1, max: 10, step: 1, }, defaultValue: 5, condition: { key: "generativeAI_rephraseOutputMode", value: "userInputs", }, }, { key: "generativeAI_customInputs", type: "cognigyTextArray", label: "UI__NODE_EDITOR__GENERATIVE_AI__CUSTOM_INPUTS__LABEL", condition: { key: "generativeAI_rephraseOutputMode", value: "customInputs", }, }, { key: "generativeAI_temperature", type: "slider", label: "UI__NODE_EDITOR__GENERATIVE_AI__TEMPERATURE__LABEL", params: { min: 0, max: 1, step: 0.1, }, defaultValue: 0.7, condition: { or: [ { key: "generativeAI_rephraseOutputMode", value: "userInputs", }, { key: "generativeAI_rephraseOutputMode", value: "customInputs", } ], }, }, ]; return fields; }; exports.getRephraseWithAIFields = getRephraseWithAIFields; /** * @returns The section for rephraseWithAI */ const getRephraseWithAISection = () => { return { key: "aiEnhancedOutput", label: "UI__NODE_EDITOR__GENERATIVE_AI__LABEL", defaultCollapsed: true, fields: [ "generativeAI_rephraseOutputMode", "generativeAI_amountOfLastUserInputs", "generativeAI_customInputs", "generativeAI_temperature", ] }; }; exports.getRephraseWithAISection = getRephraseWithAISection; //# sourceMappingURL=getRephraseWithAIFields.js.map