@cognigy/rest-api-client 4.98.0 → 4.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/RestAPIClient.js +7 -0
- package/build/apigroups/AIOpsCenterAPIGroup_2_0.js +22 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +11 -9
- package/build/apigroups/index.js +3 -1
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/index.js +7 -1
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +10 -1
- package/build/shared/charts/descriptors/service/GPTPrompt.js +14 -4
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/build/shared/charts/descriptors/service/LLMModerate.js +275 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +185 -63
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +180 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +196 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
- package/build/shared/charts/descriptors/service/index.js +9 -1
- package/build/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +12 -0
- package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +9 -10
- package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/build/shared/interfaces/amqpInterface.js +3 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +10 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +44 -119
- package/build/shared/interfaces/resources/IEndpoint.js +23 -4
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +10 -1
- package/build/shared/interfaces/resources/ISipConnectivityInfo.js +16 -0
- package/build/shared/interfaces/resources/IWebrtcWidgetConfig.js +11 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +34 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +6 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +4 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +3 -0
- package/build/shared/interfaces/security/IIdentityProvider.js +1 -0
- package/build/shared/json-schema.js +2 -1
- package/dist/esm/RestAPIClient.js +7 -0
- package/dist/esm/apigroups/AIOpsCenterAPIGroup_2_0.js +18 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +11 -9
- package/dist/esm/apigroups/index.js +1 -0
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/index.js +8 -2
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +12 -3
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +18 -8
- package/dist/esm/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/LLMModerate.js +273 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +185 -63
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +178 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +193 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
- package/dist/esm/shared/charts/descriptors/service/index.js +4 -0
- package/dist/esm/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +9 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +9 -10
- package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/dist/esm/shared/interfaces/amqpInterface.js +3 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +10 -1
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +43 -118
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +26 -7
- package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +9 -0
- package/dist/esm/shared/interfaces/resources/ISipConnectivityInfo.js +13 -0
- package/dist/esm/shared/interfaces/resources/IWebrtcWidgetConfig.js +8 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +31 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +5 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +3 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +2 -0
- package/dist/esm/shared/interfaces/security/IIdentityProvider.js +1 -0
- package/dist/esm/shared/json-schema.js +2 -1
- package/package.json +1 -1
- package/types/index.d.ts +392 -43
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/* Custom modules */
|
|
2
|
+
import { createNodeDescriptor } from "../../../createNodeDescriptor";
|
|
3
|
+
export const AI_AGENT_JOB_MCP_TOOL = createNodeDescriptor({
|
|
4
|
+
type: "aiAgentJobMCPTool",
|
|
5
|
+
defaultLabel: "MCP Tool",
|
|
6
|
+
summary: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__SUMMARY",
|
|
7
|
+
parentType: "aiAgentJob",
|
|
8
|
+
constraints: {
|
|
9
|
+
editable: true,
|
|
10
|
+
deletable: true,
|
|
11
|
+
collapsable: true,
|
|
12
|
+
creatable: true,
|
|
13
|
+
movable: true,
|
|
14
|
+
placement: {
|
|
15
|
+
predecessor: {
|
|
16
|
+
whitelist: [],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
childFlowCreatable: false,
|
|
20
|
+
},
|
|
21
|
+
preview: {
|
|
22
|
+
type: "text",
|
|
23
|
+
key: "name",
|
|
24
|
+
},
|
|
25
|
+
fields: [
|
|
26
|
+
{
|
|
27
|
+
type: "description",
|
|
28
|
+
key: "cachingWarning",
|
|
29
|
+
label: " ",
|
|
30
|
+
params: {
|
|
31
|
+
text: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHING_WARNING__TEXT",
|
|
32
|
+
},
|
|
33
|
+
condition: {
|
|
34
|
+
key: "cacheTools",
|
|
35
|
+
value: false,
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "name",
|
|
40
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__NAME__LABEL",
|
|
41
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__NAME__DESCRIPTION",
|
|
42
|
+
type: "cognigyText",
|
|
43
|
+
params: {
|
|
44
|
+
required: true,
|
|
45
|
+
rows: 1,
|
|
46
|
+
multiline: false,
|
|
47
|
+
maxLength: 64,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: "description",
|
|
52
|
+
key: "mcpWarning",
|
|
53
|
+
label: " ",
|
|
54
|
+
params: {
|
|
55
|
+
text: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_WARNING__TEXT",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "mcpServerUrl",
|
|
60
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_SERVER_SSE_URL__LABEL",
|
|
61
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_SERVER_SSE_URL__DESCRIPTION",
|
|
62
|
+
type: "cognigyText",
|
|
63
|
+
params: {
|
|
64
|
+
required: true,
|
|
65
|
+
rows: 5,
|
|
66
|
+
multiline: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "timeout",
|
|
71
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TIMEOUT__LABEL",
|
|
72
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TIMEOUT__DESCRIPTION",
|
|
73
|
+
type: "slider",
|
|
74
|
+
defaultValue: 12,
|
|
75
|
+
params: {
|
|
76
|
+
min: 1,
|
|
77
|
+
max: 30,
|
|
78
|
+
step: 1,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "debugMessageFetchedTools",
|
|
83
|
+
type: "toggle",
|
|
84
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_TOOLS__LABEL",
|
|
85
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_TOOLS__DESCRIPTION",
|
|
86
|
+
defaultValue: true,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "debugMessageParameters",
|
|
90
|
+
type: "toggle",
|
|
91
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__LABEL",
|
|
92
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__DESCRIPTION",
|
|
93
|
+
defaultValue: false,
|
|
94
|
+
condition: {
|
|
95
|
+
key: "debugMessageFetchedTools",
|
|
96
|
+
value: true,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "debugMessage",
|
|
101
|
+
type: "toggle",
|
|
102
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__LABEL",
|
|
103
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__DESCRIPTION",
|
|
104
|
+
defaultValue: true,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "cacheTools",
|
|
108
|
+
type: "toggle",
|
|
109
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHE_TOOLS__LABEL",
|
|
110
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHE_TOOLS__DESCRIPTION",
|
|
111
|
+
defaultValue: true,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
key: "condition",
|
|
115
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__LABEL",
|
|
116
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__DESCRIPTION",
|
|
117
|
+
type: "cognigyText",
|
|
118
|
+
defaultValue: "",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "toolFilter",
|
|
122
|
+
type: "select",
|
|
123
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__LABEL",
|
|
124
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__DESCRIPTION",
|
|
125
|
+
defaultValue: "none",
|
|
126
|
+
params: {
|
|
127
|
+
options: [
|
|
128
|
+
{
|
|
129
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__NONE__LABEL",
|
|
130
|
+
value: "none",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__WHITELIST__LABEL",
|
|
134
|
+
value: "whitelist",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__BLACKLIST__LABEL",
|
|
138
|
+
value: "blacklist",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
key: "whitelist",
|
|
145
|
+
type: "cognigyTextArray",
|
|
146
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__WHITELIST__LABEL",
|
|
147
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__WHITELIST__DESCRIPTION",
|
|
148
|
+
condition: {
|
|
149
|
+
key: "toolFilter",
|
|
150
|
+
value: "whitelist",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "blacklist",
|
|
155
|
+
type: "cognigyTextArray",
|
|
156
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__BLACKLIST__LABEL",
|
|
157
|
+
description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__BLACKLIST__DESCRIPTION",
|
|
158
|
+
condition: {
|
|
159
|
+
key: "toolFilter",
|
|
160
|
+
value: "blacklist",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
sections: [
|
|
165
|
+
{
|
|
166
|
+
key: "debugging",
|
|
167
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__DEBUG_SETTINGS__LABEL",
|
|
168
|
+
defaultCollapsed: true,
|
|
169
|
+
fields: ["debugMessageFetchedTools", "debugMessageParameters", "debugMessage"],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
key: "advanced",
|
|
173
|
+
label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__ADVANCED__LABEL",
|
|
174
|
+
defaultCollapsed: true,
|
|
175
|
+
fields: ["cacheTools", "condition", "toolFilter", "whitelist", "blacklist"],
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
form: [
|
|
179
|
+
{ type: "field", key: "cachingWarning" },
|
|
180
|
+
{ type: "field", key: "name" },
|
|
181
|
+
{ type: "field", key: "mcpWarning" },
|
|
182
|
+
{ type: "field", key: "mcpServerUrl" },
|
|
183
|
+
{ type: "field", key: "timeout" },
|
|
184
|
+
{ type: "section", key: "debugging" },
|
|
185
|
+
{ type: "section", key: "advanced" },
|
|
186
|
+
],
|
|
187
|
+
appearance: {
|
|
188
|
+
color: "white",
|
|
189
|
+
textColor: "#252525",
|
|
190
|
+
variant: "mini",
|
|
191
|
+
},
|
|
192
|
+
});
|
|
193
|
+
//# sourceMappingURL=aiAgentJobMCPTool.js.map
|
|
@@ -56,7 +56,7 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
|
|
|
56
56
|
},
|
|
57
57
|
tags: ["ai", "aiAgent"],
|
|
58
58
|
function: ({ cognigy, config, nodeId: thisNodeId }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
-
var _a, _b, _c, _d, _e;
|
|
59
|
+
var _a, _b, _c, _d, _e, _f;
|
|
60
60
|
const { api, context } = cognigy;
|
|
61
61
|
const { answer, debugToolAnswer, } = config;
|
|
62
62
|
const sessionState = yield api.loadSessionState();
|
|
@@ -88,6 +88,7 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
|
|
|
88
88
|
source: "system",
|
|
89
89
|
payload: {
|
|
90
90
|
toolCallId: toolCall.id,
|
|
91
|
+
name: toolCall.function.name,
|
|
91
92
|
content: answer,
|
|
92
93
|
}
|
|
93
94
|
};
|
|
@@ -108,6 +109,9 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
|
|
|
108
109
|
absorbContext: true,
|
|
109
110
|
});
|
|
110
111
|
}
|
|
112
|
+
else if (!answer) {
|
|
113
|
+
(_f = api.logDebugError) === null || _f === void 0 ? void 0 : _f.call(api, "UI__DEBUG_MODE__AI_AGENT_ANSWER__MISSING_ANSWER");
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
else {
|
|
113
117
|
throw new Error("Infinite Loop Detected");
|
|
@@ -16,10 +16,14 @@ export { HANDOVER_INACTIVITY_TIMER } from "./handoverInactivityTimer";
|
|
|
16
16
|
export { GPT_CONVERSATION } from "./GPTConversation";
|
|
17
17
|
export { GPT_CONVERSATION_SUMMARY } from "./conversationSummary";
|
|
18
18
|
export { LLM_ENTITY_EXTRACT } from "./LLMEntityExtract";
|
|
19
|
+
export { LLM_MODERATE } from "./LLMModerate";
|
|
19
20
|
export { AI_AGENT_JOB } from "./aiAgent/aiAgentJob";
|
|
20
21
|
export { AI_AGENT_JOB_DEFAULT } from "./aiAgent/aiAgentJobDefault";
|
|
21
22
|
export { AI_AGENT_JOB_TOOL } from "./aiAgent/aiAgentJobTool";
|
|
23
|
+
export { AI_AGENT_JOB_MCP_TOOL } from "./aiAgent/aiAgentJobMCPTool";
|
|
22
24
|
export { AI_AGENT_TOOL_ANSWER } from "./aiAgent/aiAgentToolAnswer";
|
|
23
25
|
export { AI_AGENT_HANDOVER } from "./aiAgent/aiAgentHandover";
|
|
26
|
+
export { AI_AGENT_JOB_CALL_MCP_TOOL } from "./aiAgent/aiAgentJobCallMCPTool";
|
|
24
27
|
export { LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./handoverConnections";
|
|
28
|
+
export { NICECXONEAAH_AUTHENTICATION_CONNECTION } from "./niceCXOneAAHAuthenticationConnection";
|
|
25
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* JWT Secret Connection */
|
|
2
|
+
export const NICECXONEAAH_AUTHENTICATION_CONNECTION = {
|
|
3
|
+
type: "niceCXOneAAHAuthentication",
|
|
4
|
+
label: "UI__CONNECTION_EDITOR__FIELD_NICECXONEAAH_AUTHENTICATION_APIKEY__LABEL",
|
|
5
|
+
fields: [
|
|
6
|
+
{ fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
|
|
7
|
+
],
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=niceCXOneAAHAuthenticationConnection.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const hangUp = {
|
|
2
|
-
handleInput(endpointType, hangUpReason) {
|
|
2
|
+
handleInput(endpointType, hangUpReason, hangupImmediately) {
|
|
3
3
|
switch (endpointType) {
|
|
4
4
|
case "bandwidth":
|
|
5
5
|
return this.handleBandwidthInput(hangUpReason);
|
|
@@ -7,23 +7,24 @@ export const hangUp = {
|
|
|
7
7
|
return this.handleAudioCodesInput(hangUpReason);
|
|
8
8
|
case "voiceGateway2":
|
|
9
9
|
default:
|
|
10
|
-
return this.handleVGInput(hangUpReason);
|
|
10
|
+
return this.handleVGInput(hangupImmediately, hangUpReason);
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
handleVGInput(hangUpReason) {
|
|
13
|
+
handleVGInput(hangupImmediately, hangUpReason) {
|
|
14
14
|
const payload = {
|
|
15
15
|
_voiceGateway2: {
|
|
16
16
|
json: {
|
|
17
|
-
hangup: {
|
|
17
|
+
hangup: {
|
|
18
|
+
headers: {},
|
|
19
|
+
hangupImmediately
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
};
|
|
21
24
|
if (hangUpReason) {
|
|
22
|
-
payload._voiceGateway2.json.hangup = {
|
|
23
|
-
headers: {
|
|
25
|
+
payload._voiceGateway2.json.hangup = Object.assign(Object.assign({}, payload._voiceGateway2.json.hangup), { headers: {
|
|
24
26
|
"X-Reason": hangUpReason
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
+
} });
|
|
27
28
|
}
|
|
28
29
|
return payload;
|
|
29
30
|
},
|
|
@@ -179,7 +179,7 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
179
179
|
buildRecognizer(sessionParams, stt, vad, azureConfig) {
|
|
180
180
|
var _a, _b, _c;
|
|
181
181
|
const { recognizer: sessionParamsRecognizer } = sessionParams || {};
|
|
182
|
-
const { vendor: spVendor, language: spLanguage, hints: spHints, label: spLabel, model: spModel, azureSttEndpointId: spAzureSttEndpointId, audioLogging: spAudioLogging, hintsBoost: spHintsBoost, punctuation: spPunctuation, altLanguages: spAltLanguages = [], deepgramOptions: spDeepgramOptions, vad: spVad } = sessionParamsRecognizer || {};
|
|
182
|
+
const { vendor: spVendor, language: spLanguage, hints: spHints, label: spLabel, model: spModel, azureSttEndpointId: spAzureSttEndpointId, audioLogging: spAudioLogging, hintsBoost: spHintsBoost, punctuation: spPunctuation, altLanguages: spAltLanguages = [], deepgramOptions: spDeepgramOptions, vad: spVad, profanityOption: spProfanityOption } = sessionParamsRecognizer || {};
|
|
183
183
|
const { sttVendor, sttLanguage, sttHints, sttLabel, sttHintsBoost, sttDisablePunctuation, googleModel, deepgramEndpointing, deepgramEndpointingValue, sttDeepgramModel, deepgramSmartFormatting, deepgramShortUtterance, altLanguages = [] } = stt || {};
|
|
184
184
|
const recognizer = {};
|
|
185
185
|
recognizer.language = spLanguage || sttLanguage || undefined;
|
|
@@ -193,6 +193,9 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
193
193
|
recognizer.azureSttEndpointId = spAzureSttEndpointId || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureSttContextId) || "";
|
|
194
194
|
recognizer.audioLogging = spAudioLogging || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureEnableAudioLogging);
|
|
195
195
|
if (recognizer.vendor) {
|
|
196
|
+
if (recognizer.vendor === "microsoft") {
|
|
197
|
+
recognizer.profanityOption = spProfanityOption || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureProfanityOption) || "raw";
|
|
198
|
+
}
|
|
196
199
|
if (recognizer.vendor === "microsoft" || recognizer.vendor === "google") {
|
|
197
200
|
if (this.has(spAltLanguages)) {
|
|
198
201
|
recognizer.altLanguages = spAltLanguages;
|
|
@@ -356,6 +359,11 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
356
359
|
ttsLabel: config.ttsLabel,
|
|
357
360
|
};
|
|
358
361
|
if (config.sttVendor === "microsoft") {
|
|
362
|
+
voiceSettings.azureConfig = {
|
|
363
|
+
azureSttContextId: config.azureSttContextId ? config.azureSttContextId.trim() : undefined,
|
|
364
|
+
azureEnableAudioLogging: config.azureEnableAudioLogging || undefined,
|
|
365
|
+
azureProfanityOption: config.azureProfanityOption || "raw",
|
|
366
|
+
};
|
|
359
367
|
if (config.recognizeLanguagesAzure) {
|
|
360
368
|
voiceSettings.stt.altLanguages = [];
|
|
361
369
|
const languages = [config.sttAzureLang1, config.sttAzureLang2, config.sttAzureLang3];
|
|
@@ -450,15 +458,6 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
450
458
|
delete voiceSettings.continuousAsr.asrDigit;
|
|
451
459
|
}
|
|
452
460
|
}
|
|
453
|
-
// Azure configurations
|
|
454
|
-
if ((config.sttVendor === "microsoft" && config.azureSttContextId)) {
|
|
455
|
-
voiceSettings.azureConfig = {
|
|
456
|
-
azureSttContextId: config.azureSttContextId
|
|
457
|
-
? config.azureSttContextId.trim()
|
|
458
|
-
: undefined,
|
|
459
|
-
azureEnableAudioLogging: config.azureEnableAudioLogging || undefined
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
461
|
// atmosphere sounds
|
|
463
462
|
if (config.atmosphereAction) {
|
|
464
463
|
if ((_m = config.atmosphereUrl) === null || _m === void 0 ? void 0 : _m.length) {
|
|
@@ -32,7 +32,7 @@ export const HANG_UP = createNodeDescriptor({
|
|
|
32
32
|
const { hangupReason } = config;
|
|
33
33
|
const { endpointType } = input;
|
|
34
34
|
try {
|
|
35
|
-
const payload = hangUp.handleInput(endpointType, hangupReason);
|
|
35
|
+
const payload = hangUp.handleInput(endpointType, hangupReason, false);
|
|
36
36
|
yield api.say(null, {
|
|
37
37
|
_cognigy: payload
|
|
38
38
|
});
|
|
@@ -35,7 +35,7 @@ export const hangupNode = createNodeDescriptor({
|
|
|
35
35
|
const { hangupReason } = config;
|
|
36
36
|
try {
|
|
37
37
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
38
|
-
const payload = isFeatureAccmEnabled ? buildPayloadAccm("hangup", config, nodeId) : hangUp.handleInput("audioCodes", hangupReason);
|
|
38
|
+
const payload = isFeatureAccmEnabled ? buildPayloadAccm("hangup", config, nodeId) : hangUp.handleInput("audioCodes", hangupReason, false);
|
|
39
39
|
yield api.say(null, {
|
|
40
40
|
_cognigy: payload
|
|
41
41
|
});
|
|
@@ -25,13 +25,35 @@ export const hangupNode = createNodeDescriptor({
|
|
|
25
25
|
params: {
|
|
26
26
|
required: true
|
|
27
27
|
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "hangupImmediately",
|
|
31
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__HANGUP__FIELDS__HANGUP_IMMEDIATELY__LABEL",
|
|
32
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__HANGUP__FIELDS__HANGUP_IMMEDIATELY__DESCRIPTION",
|
|
33
|
+
type: "toggle",
|
|
34
|
+
defaultValue: false,
|
|
35
|
+
params: {
|
|
36
|
+
required: true
|
|
37
|
+
}
|
|
28
38
|
}
|
|
29
39
|
],
|
|
40
|
+
sections: [
|
|
41
|
+
{
|
|
42
|
+
key: "advanced",
|
|
43
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SECTIONS__ADVANCED__LABEL",
|
|
44
|
+
defaultCollapsed: true,
|
|
45
|
+
fields: ["hangupImmediately"]
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
form: [
|
|
49
|
+
{ "type": "field", "key": "hangupReason" },
|
|
50
|
+
{ "type": "section", "key": "advanced" },
|
|
51
|
+
],
|
|
30
52
|
function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
53
|
const { api } = cognigy;
|
|
32
|
-
const { hangupReason } = config;
|
|
54
|
+
const { hangupReason, hangupImmediately } = config;
|
|
33
55
|
try {
|
|
34
|
-
const payload = hangUp.handleInput("voiceGateway2", hangupReason);
|
|
56
|
+
const payload = hangUp.handleInput("voiceGateway2", hangupReason, hangupImmediately);
|
|
35
57
|
yield api.say(null, {
|
|
36
58
|
_cognigy: payload
|
|
37
59
|
});
|
|
@@ -752,14 +752,33 @@ export const voiceConfigFields = [
|
|
|
752
752
|
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_ENABLE_AUDIO_LOGGING__DESCRIPTION",
|
|
753
753
|
defaultValue: false,
|
|
754
754
|
condition: {
|
|
755
|
-
|
|
755
|
+
key: "enableAdvancedSTTConfig",
|
|
756
|
+
value: true
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
key: "azureProfanityOption",
|
|
761
|
+
type: "select",
|
|
762
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__LABEL",
|
|
763
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__DESCRIPTION",
|
|
764
|
+
defaultValue: "raw",
|
|
765
|
+
condition: {
|
|
766
|
+
key: "enableAdvancedSTTConfig",
|
|
767
|
+
value: true
|
|
768
|
+
},
|
|
769
|
+
params: {
|
|
770
|
+
options: [
|
|
756
771
|
{
|
|
757
|
-
|
|
758
|
-
value:
|
|
772
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__RAW__LABEL",
|
|
773
|
+
value: "raw"
|
|
759
774
|
},
|
|
760
775
|
{
|
|
761
|
-
|
|
762
|
-
value: "
|
|
776
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__MASKED__LABEL",
|
|
777
|
+
value: "masked"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__REMOVED__LABEL",
|
|
781
|
+
value: "removed"
|
|
763
782
|
}
|
|
764
783
|
]
|
|
765
784
|
}
|
|
@@ -963,6 +982,7 @@ export const setSessionConfigNode = createNodeDescriptor({
|
|
|
963
982
|
"enableAdvancedSTTConfig",
|
|
964
983
|
"azureSttContextId",
|
|
965
984
|
"azureEnableAudioLogging",
|
|
985
|
+
"azureProfanityOption",
|
|
966
986
|
"recognizeLanguagesAzure",
|
|
967
987
|
"sttAzure",
|
|
968
988
|
"recognizeLanguagesGoogle",
|
|
@@ -8,6 +8,7 @@ export const embeddingModels = [
|
|
|
8
8
|
"text-embedding-ada-002",
|
|
9
9
|
"luminous-embedding-128",
|
|
10
10
|
"amazon.titan-embed-text-v2:0",
|
|
11
|
+
"Pharia-1-Embedding-4608",
|
|
11
12
|
];
|
|
12
13
|
export const generativeAIModels = [
|
|
13
14
|
"gpt-3.5-turbo",
|
|
@@ -27,11 +28,17 @@ export const generativeAIModels = [
|
|
|
27
28
|
"gemini-1.0-pro",
|
|
28
29
|
"gemini-1.5-pro",
|
|
29
30
|
"gemini-1.5-flash",
|
|
31
|
+
"gemini-2.0-flash",
|
|
32
|
+
"gemini-2.0-flash-lite",
|
|
30
33
|
"amazon.nova-lite-v1:0",
|
|
31
34
|
"amazon.nova-pro-v1:0",
|
|
32
35
|
"amazon.nova-micro-v1:0",
|
|
33
36
|
"anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
34
37
|
"claude-3-7-sonnet-20250219",
|
|
38
|
+
"mistral-large-2411",
|
|
39
|
+
"mistral-small-2503",
|
|
40
|
+
"pixtral-large-2411",
|
|
41
|
+
"pixtral-12b-2409",
|
|
35
42
|
...embeddingModels,
|
|
36
43
|
];
|
|
37
44
|
export const generativeAIProviders = [
|
|
@@ -42,7 +49,8 @@ export const generativeAIProviders = [
|
|
|
42
49
|
"anthropic",
|
|
43
50
|
"googleVertexAI",
|
|
44
51
|
"googleGemini",
|
|
45
|
-
"awsBedrock",
|
|
52
|
+
"awsBedrock",
|
|
53
|
+
"mistral", // Mistral models https://docs.mistral.ai/getting-started/models/models_overview/
|
|
46
54
|
];
|
|
47
55
|
export const generativeAIProvidersLabels = {
|
|
48
56
|
"azureOpenAI": "Azure OpenAI",
|
|
@@ -53,6 +61,7 @@ export const generativeAIProvidersLabels = {
|
|
|
53
61
|
"googleVertexAI": "Google Vertex AI",
|
|
54
62
|
"googleGemini": "Google Gemini",
|
|
55
63
|
"awsBedrock": "AWS Bedrock",
|
|
64
|
+
"mistral": "Mistral",
|
|
56
65
|
};
|
|
57
66
|
/**
|
|
58
67
|
* WARNING: If you update the generativeAI useCases, please update the generativeAI
|