UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

67 lines 2.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sentenceFeedbackReportDataSchema = exports.sentenceFeedbackFindingArrayType = void 0; exports.sentenceFeedbackFindingArrayType = [ "poorScore", "fairScore", "goodScore", "overlap", "wrongIntent" ]; exports.sentenceFeedbackReportDataSchema = { title: "sentenceFeedbackReportDataSchema", type: "object", additionalProperties: false, properties: { info: { type: "object", additionalProperties: false, properties: { difference: { type: ["number", "null"] }, // The referenceId can also equal 'Reject', hence cannot have a format runnerUpIntentReferenceId: { type: ["string", "null"] }, runnerUpScore: { type: ["number", "null"], }, // The referenceId can also equal 'Reject', hence cannot have a format topIntentReferenceId: { type: ["string", "null"] }, topScore: { type: ["number", "null"], }, // The referenceId can also equal 'Reject', hence cannot have a format trueIntentReferenceId: { type: ["string", "null"] }, trueIntentName: { type: ["string", "null"], }, topIntentName: { type: ["string", "null"], }, runnerUpIntentName: { type: ["string", "null"], }, runnerUpFlowId: { type: ["string", "null"], format: "mongo-id" }, runnerUpFlowName: { type: ["string", "null"], }, runnerUpIntentId: { type: ["string", "null"], format: "mongo-id" }, topIntentFlowId: { type: ["string", "null"], format: "mongo-id" }, topIntentFlowName: { type: ["string", "null"], }, topIntentIntentId: { type: ["string", "null"], format: "mongo-id" }, trueIntentFlowId: { type: ["string", "null"], format: "mongo-id" }, trueIntentFlowName: { type: ["string", "null"], }, trueIntentIntentId: { type: ["string", "null"], format: "mongo-id" }, }, }, intentReferenceId: { type: "string", format: "uuid" }, findings: { type: "array", additionalItems: false, items: { type: "object", additionalProperties: false, properties: { type: { type: "string", enum: [...exports.sentenceFeedbackFindingArrayType] } } } }, sentenceReferenceId: { type: "string", format: "uuid" } } }; //# sourceMappingURL=ISentenceFeedbackReport.js.map