@cognigy/rest-api-client
Version:
Cognigy REST-Client
61 lines • 2.38 kB
JavaScript
/* Interfaces & Types */
import { entityMetaSchema } from "./IEntityMeta";
export const contactProfileOptions = ["none", "selectedProfileFields", "completeProfile", "profileMemoriesOnly"];
export const aiAgentDataSchema = {
title: "aiAgentDataSchema",
type: "object",
additionalProperties: false,
required: ["name"],
properties: {
name: { type: "string", format: "resource-name" },
image: { type: "string" },
imageOptimizedFormat: { type: "boolean" },
knowledgeReferenceId: { type: "string", format: "uuid" },
description: { type: "string", maxLength: 1000 },
speakingStyle: {
type: "object",
properties: {
completeness: { type: "string" },
formality: { type: "string" }
}
},
voiceConfigs: {
type: "object",
properties: {
ttsVoice: { type: "string" },
ttsLanguage: { type: "string" },
ttsVendor: { type: "string" },
ttsModel: { type: "string" },
ttsLabel: { type: "string" },
ttsDisableCache: { type: "boolean" }
}
},
enableVoiceConfigs: { type: "boolean" },
safetySettings: {
type: "object",
properties: {
avoidHarmfulContent: { type: "boolean" },
avoidUngroundedContent: { type: "boolean" },
avoidCopyrightInfringements: { type: "boolean" },
preventJailbreakAndManipulation: { type: "boolean" }
}
},
instructions: { type: "string", maxLength: 1000 },
contactProfilesOption: {
type: "string",
enum: [...contactProfileOptions]
},
contactProfilesSelected: {
type: "array", items: {
type: "string"
}
}
}
};
export const aiAgentSchema = {
title: "aiAgentSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), aiAgentDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
};
//# sourceMappingURL=IAiAgent.js.map