UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

51 lines 2.03 kB
/* Interfaces & Types */ import { yesNoLogic } from "../yesNoIntent/IYesNoItem"; export const sharedSettingsSchema = { title: "sharedSettingsSchema", type: "object", additionalProperties: false, properties: { /** * All fields can be set to null. This will * be done by the frontend to reset a shared field * so that the setting is inherited from the agent settings */ intentThreshold: { type: ["object", "null"], additionalProperties: false, properties: { lower: { type: "number" }, upper: { type: "number" } } }, learnNewExampleSentences: { type: ["boolean", "null"] }, learnNewExampleSentencesThreshold: { type: ["integer", "null"] }, negativeConfirmationWords: { type: ["array", "null"], items: { type: "string" } }, positiveConfirmationWords: { type: ["array", "null"], items: { type: "string" } }, systemSlots: { type: ["object", "null"], additionalProperties: false, properties: { useAgeSlots: { type: ["boolean", "null"] }, useDateSlots: { type: ["boolean", "null"] }, useDistanceSlots: { type: ["boolean", "null"] }, useDurationSlots: { type: ["boolean", "null"] }, useEmailSlots: { type: ["boolean", "null"] }, useMoneySlots: { type: ["boolean", "null"] }, useNumberSlots: { type: ["boolean", "null"] }, usePercentageSlots: { type: ["boolean", "null"] }, useTemperatureSlots: { type: ["boolean", "null"] }, useURLSlots: { type: ["boolean", "null"] } } }, yesNoLogic: { type: ["string", "null"], enum: [...yesNoLogic, null] }, yesNoIntentThreshold: { type: ["number", "null"] } } }; //# sourceMappingURL=ISharedSettings.js.map