@cognigy/rest-api-client
Version:
Cognigy REST-Client
64 lines • 2.65 kB
JavaScript
export const sentenceFeedbackFindingArrayType = [
"poorScore",
"fairScore",
"goodScore",
"overlap",
"wrongIntent"
];
export const 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: [...sentenceFeedbackFindingArrayType]
}
}
}
},
sentenceReferenceId: {
type: "string",
format: "uuid"
}
}
};
//# sourceMappingURL=ISentenceFeedbackReport.js.map