@cognigy/rest-api-client 2025.12.0 → 2025.13.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +4 -0
  3. package/build/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  4. package/build/shared/charts/descriptors/index.js +5 -0
  5. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +4 -2
  6. package/build/shared/charts/descriptors/message/question/question.js +12 -1
  7. package/build/shared/charts/descriptors/service/GPTPrompt.js +15 -1
  8. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +32 -173
  9. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  10. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +175 -0
  11. package/build/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +194 -0
  12. package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
  13. package/build/shared/charts/descriptors/service/index.js +11 -1
  14. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +922 -0
  15. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +31 -0
  16. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +196 -0
  17. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +139 -0
  18. package/build/shared/constants.js +1 -5
  19. package/build/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +3 -0
  20. package/build/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  21. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  22. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  23. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +5 -18
  24. package/build/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +3 -0
  25. package/build/shared/interfaces/security/IPermission.js +2 -0
  26. package/build/shared/interfaces/security/IRole.js +3 -1
  27. package/build/shared/interfaces/security/index.js +1 -1
  28. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +4 -0
  29. package/dist/esm/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  30. package/dist/esm/shared/charts/descriptors/index.js +6 -1
  31. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +4 -2
  32. package/dist/esm/shared/charts/descriptors/message/question/question.js +12 -1
  33. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +15 -1
  34. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +33 -174
  35. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  36. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +172 -0
  37. package/dist/esm/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +192 -0
  38. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
  39. package/dist/esm/shared/charts/descriptors/service/index.js +5 -0
  40. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +909 -0
  41. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +28 -0
  42. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +193 -0
  43. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +136 -0
  44. package/dist/esm/shared/constants.js +1 -5
  45. package/dist/esm/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +2 -0
  46. package/dist/esm/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  47. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  48. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  49. package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -17
  50. package/dist/esm/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +2 -0
  51. package/dist/esm/shared/interfaces/security/IPermission.js +2 -0
  52. package/dist/esm/shared/interfaces/security/IRole.js +3 -1
  53. package/dist/esm/shared/interfaces/security/index.js +1 -1
  54. package/package.json +1 -1
  55. package/types/index.d.ts +83 -42
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createToolDefinitions = void 0;
4
+ const createSystemMessage_1 = require("./createSystemMessage");
5
+ /**
6
+ * Creates the tool definitions for the AI Agent Job and LLM Prompt v2 Nodes
7
+ * @param childConfigs Child node configurations
8
+ * @param api Cognigy API
9
+ * @param useStrict Whether to use strict mode for the tools
10
+ * @returns An object containing the tool definitions
11
+ */
12
+ const createToolDefinitions = async (childConfigs, api, useStrict) => {
13
+ var _a, _b, _c;
14
+ // Create Tools JSON
15
+ /** This is the list of tools that are used in the AI Agent Job */
16
+ const tools = [];
17
+ /** Array of tool IDs for deduping */
18
+ const toolIds = [];
19
+ /** Map of MCP tool IDs to their respective node IDs they were loaded from */
20
+ const toolMap = new Map();
21
+ /** Array of tool names for listing in the debug message */
22
+ const toolNames = [];
23
+ // if no child configs are provided, return empty tool definitions
24
+ if (!childConfigs || childConfigs.length === 0) {
25
+ return {
26
+ toolIds: [],
27
+ toolNames: [],
28
+ toolMap: new Map(),
29
+ tools: [],
30
+ };
31
+ }
32
+ // Loop through all child nodes and create the tools
33
+ for (const child of childConfigs) {
34
+ if (child.type === "aiAgentJobDefault" || child.type === "llmPromptDefault") {
35
+ continue;
36
+ }
37
+ const toolId = child.config.toolId;
38
+ if ((child.type === "aiAgentJobTool" || child.type === "llmPromptTool") &&
39
+ (!child.config.condition || !!api.parseCognigyScriptCondition(child.config.condition))) {
40
+ if (!toolId) {
41
+ throw new Error(`Tool ID is missing in Tool Node configuration.`);
42
+ }
43
+ const parsedToolId = api.parseCognigyScriptText(toolId);
44
+ if (!(0, createSystemMessage_1.validateToolId)(parsedToolId)) {
45
+ throw new Error(`Tool ID ${parsedToolId} is not valid. Please use only alphanumeric characters, dashes and underscores.`);
46
+ }
47
+ if (toolIds.includes(parsedToolId)) {
48
+ throw new Error(`Tool ID ${parsedToolId} is not unique. Please ensure each tool has a unique id.`);
49
+ }
50
+ toolIds.push(parsedToolId);
51
+ toolNames.push(parsedToolId);
52
+ const tool = {
53
+ type: "function",
54
+ function: {
55
+ name: parsedToolId,
56
+ description: api.parseCognigyScriptText(child.config.description),
57
+ },
58
+ };
59
+ if (useStrict) {
60
+ tool.function.strict = true;
61
+ }
62
+ if (child.config.useParameters) {
63
+ tool.function.parameters = child.config.parameters;
64
+ }
65
+ tools.push(tool);
66
+ }
67
+ if ((child.type === "aiAgentJobMCPTool" || child.type === "llmPromptMCPTool") &&
68
+ (!child.config.condition || !!api.parseCognigyScriptCondition(child.config.condition))) {
69
+ if (!child.config.mcpServerUrl) {
70
+ throw new Error(`MCP Server URL is missing in Tool Node configuration.`);
71
+ }
72
+ const mcpServerUrl = child.config.mcpServerUrl;
73
+ const timeout = child.config.timeout;
74
+ const cacheTools = child.config.cacheTools;
75
+ const sendDebug = child.config.debugMessageFetchedTools;
76
+ const toolFilter = child.config.toolFilter;
77
+ let mcpTools = null;
78
+ try {
79
+ mcpTools = await api.fetchMcpTools({
80
+ mcpServerUrl,
81
+ timeout,
82
+ cacheTools,
83
+ });
84
+ }
85
+ catch (error) {
86
+ const errorDetails = error instanceof Error
87
+ ? {
88
+ name: error.name,
89
+ message: error.message,
90
+ }
91
+ : error;
92
+ (_a = api.logDebugError) === null || _a === void 0 ? void 0 : _a.call(api, `Unable to connect to MCP Server:<br>${JSON.stringify(errorDetails, null, 2)}`, child.config.name);
93
+ }
94
+ if (mcpTools) {
95
+ if (sendDebug) {
96
+ if (mcpTools.length === 0) {
97
+ (_b = api.logDebugMessage) === null || _b === void 0 ? void 0 : _b.call(api, `No tools fetched from MCP Tool "${child.config.name}".`, "MCP Tool");
98
+ }
99
+ if (mcpTools.length > 0) {
100
+ const messageLines = [`Fetched tools from MCP Tool "${child.config.name}"`];
101
+ mcpTools.forEach((tool) => {
102
+ messageLines.push(`<br>- <b>${tool.name}</b>: ${tool.description}`);
103
+ if (child.config.debugMessageParameters && tool.inputSchema) {
104
+ messageLines.push(` <b>Parameters</b>:`);
105
+ Object.keys(tool.inputSchema.properties).forEach((key) => {
106
+ const parameter = tool.inputSchema.properties[key];
107
+ const requiredText = tool.inputSchema.required && !tool.inputSchema.required.includes(key) ? " (optional)" : "";
108
+ if (parameter.description) {
109
+ messageLines.push(` - ${key} (${parameter.type}): ${parameter.description}${requiredText}`);
110
+ }
111
+ else {
112
+ messageLines.push(` - ${key}: ${parameter.type}${requiredText}`);
113
+ }
114
+ });
115
+ }
116
+ });
117
+ (_c = api.logDebugMessage) === null || _c === void 0 ? void 0 : _c.call(api, messageLines.join("\n"), "MCP Tool");
118
+ }
119
+ }
120
+ const filteredMcpTools = mcpTools.filter((tool) => {
121
+ if (toolFilter && toolFilter !== "none") {
122
+ if (toolFilter === "whitelist" && child.config.whitelist) {
123
+ const whitelist = child.config.whitelist.map((item) => item.trim());
124
+ return whitelist.includes(tool.name);
125
+ }
126
+ else if (toolFilter === "blacklist") {
127
+ // If the blacklist is falsy, all tools are allowed
128
+ if (!child.config.blacklist) {
129
+ return true;
130
+ }
131
+ const blacklist = child.config.blacklist.map((item) => item.trim());
132
+ return !blacklist.includes(tool.name);
133
+ }
134
+ }
135
+ else {
136
+ return true;
137
+ }
138
+ });
139
+ const structuredMcpTools = [];
140
+ filteredMcpTools.forEach((tool) => {
141
+ var _a;
142
+ if (toolIds.includes(tool.name)) {
143
+ (_a = api.logDebugError) === null || _a === void 0 ? void 0 : _a.call(api, `Tool "${tool.name}" from MCP Tool "${child.config.name}" is not unique and will not be added. Please ensure each tool has a unique id.`);
144
+ return;
145
+ }
146
+ // add tool to the list of tool ids to prevent duplicates
147
+ toolIds.push(tool.name);
148
+ toolNames.push(`${tool.name} (${child.config.name})`);
149
+ toolMap.set(tool.name, child.id);
150
+ const structuredTool = {
151
+ type: "function",
152
+ function: {
153
+ name: tool.name,
154
+ description: tool.description,
155
+ },
156
+ };
157
+ if (tool.inputSchema) {
158
+ structuredTool.function.parameters = tool.inputSchema;
159
+ }
160
+ structuredMcpTools.push(structuredTool);
161
+ });
162
+ tools.push(...structuredMcpTools);
163
+ }
164
+ }
165
+ }
166
+ ;
167
+ return {
168
+ toolIds,
169
+ toolNames,
170
+ toolMap,
171
+ tools,
172
+ };
173
+ };
174
+ exports.createToolDefinitions = createToolDefinitions;
175
+ //# sourceMappingURL=createToolDefinitions.js.map
@@ -0,0 +1,194 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOAD_AI_AGENT = void 0;
4
+ /* Custom modules */
5
+ const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
6
+ /**
7
+ * Node name: 'loadAiAigent'
8
+ *
9
+ * Purpose:
10
+ * Loads the AI Agent configuration and stores it to context/input.
11
+ */
12
+ exports.LOAD_AI_AGENT = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
+ type: "loadAiAigent",
14
+ defaultLabel: "Load AI Agent",
15
+ summary: "UI__NODE_EDITOR__LOAD_AI_AGENT__SUMMARY",
16
+ appearance: {
17
+ showIcon: false
18
+ },
19
+ fields: [
20
+ {
21
+ key: "aiAgent",
22
+ type: "aiAgentSelect",
23
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__AI_AGENT_SELECTOR__LABEL",
24
+ description: "UI__NODE_EDITOR__AI_AGENT__AI_AGENT_SELECTOR__DESCRIPTION",
25
+ params: {
26
+ required: true
27
+ },
28
+ },
29
+ {
30
+ key: "storeLocation",
31
+ type: "select",
32
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__STORE_LOCATION__LABEL",
33
+ description: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__STORE_LOCATION__DESCRIPTION",
34
+ defaultValue: "context",
35
+ params: {
36
+ options: [
37
+ {
38
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__STORE_LOCATION__OPTIONS__INPUT__LABEL",
39
+ value: "input"
40
+ },
41
+ {
42
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__STORE_LOCATION__OPTIONS__CONTEXT__LABEL",
43
+ value: "context"
44
+ }
45
+ ],
46
+ required: true
47
+ },
48
+ },
49
+ {
50
+ key: "inputKey",
51
+ type: "cognigyText",
52
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__INPUT_KEY__LABEL",
53
+ description: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__INPUT_KEY__DESCRIPTION",
54
+ defaultValue: "aiAgentConfiguration",
55
+ condition: {
56
+ or: [
57
+ {
58
+ key: "storeLocation",
59
+ value: "input",
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ key: "contextKey",
66
+ type: "cognigyText",
67
+ label: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__CONTEXT_KEY__LABEL",
68
+ description: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__CONTEXT_KEY__DESCRIPTION",
69
+ defaultValue: "aiAgentConfiguration",
70
+ condition: {
71
+ key: "storeLocation",
72
+ value: "context",
73
+ }
74
+ },
75
+ {
76
+ key: "keyWarning",
77
+ type: "description",
78
+ label: " ",
79
+ params: {
80
+ text: "UI__NODE_EDITOR__LOAD_AI_AGENT__FIELDS__KEY_WARNING__TEXT"
81
+ },
82
+ condition: {
83
+ or: [
84
+ {
85
+ and: [
86
+ {
87
+ key: "storeLocation",
88
+ value: "input",
89
+ },
90
+ {
91
+ key: "inputKey",
92
+ value: "aiAgentConfiguration",
93
+ negate: true
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ and: [
99
+ {
100
+ key: "storeLocation",
101
+ value: "context",
102
+ },
103
+ {
104
+ key: "contextKey",
105
+ value: "aiAgentConfiguration",
106
+ negate: true
107
+ }
108
+ ]
109
+ }
110
+ ]
111
+ }
112
+ }
113
+ ],
114
+ preview: {
115
+ key: "storeLocation",
116
+ type: "text",
117
+ },
118
+ form: [
119
+ { type: "field", key: "aiAgent" },
120
+ { type: "field", key: "storeLocation" },
121
+ { type: "field", key: "inputKey" },
122
+ { type: "field", key: "contextKey" },
123
+ { type: "field", key: "keyWarning" }
124
+ ],
125
+ tags: ["ai", "aiagent", "llm"],
126
+ tokens: [
127
+ {
128
+ label: "AI Agent Reference ID",
129
+ type: "input",
130
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.referenceId",
131
+ },
132
+ {
133
+ label: "AI Agent Name",
134
+ type: "input",
135
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.name",
136
+ },
137
+ {
138
+ label: "AI Agent Description",
139
+ type: "input",
140
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.description",
141
+ },
142
+ {
143
+ label: "AI Agent Instructions",
144
+ type: "input",
145
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.instructions",
146
+ },
147
+ {
148
+ label: "AI Agent Image URL",
149
+ type: "input",
150
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.image",
151
+ },
152
+ {
153
+ label: "AI Agent Knowledge Store ID",
154
+ type: "input",
155
+ script: "(input.aiAgentConfiguration || context.aiAgentConfiguration)?.knowledgeReferenceId",
156
+ },
157
+ ],
158
+ function: async ({ cognigy, config }) => {
159
+ const { api } = cognigy;
160
+ const { aiAgent, storeLocation, contextKey, inputKey } = config;
161
+ if (storeLocation === "input" && !inputKey) {
162
+ throw new Error("Unable to add value to input. No input key was defined.");
163
+ }
164
+ if (storeLocation === "context" && !contextKey) {
165
+ throw new Error("Unable to add value to context. No context key was defined.");
166
+ }
167
+ if (!aiAgent) {
168
+ throw new Error("Unable to load AI Agent values. No AI agent was defined.");
169
+ }
170
+ const aiAgentData = {
171
+ referenceId: aiAgent.referenceId,
172
+ name: aiAgent.name,
173
+ description: aiAgent.description,
174
+ instructions: aiAgent.instructions,
175
+ image: aiAgent.image,
176
+ speakingStyle: aiAgent.speakingStyle,
177
+ safetySettings: aiAgent.safetySettings,
178
+ contactProfilesOption: aiAgent.contactProfilesOption,
179
+ contactProfilesSelected: aiAgent.contactProfilesSelected,
180
+ knowledgeReferenceId: aiAgent.knowledgeReferenceId,
181
+ enableVoiceConfigs: aiAgent.enableVoiceConfigs,
182
+ voiceConfigs: aiAgent.voiceConfigs,
183
+ };
184
+ switch (storeLocation) {
185
+ case "context":
186
+ // @ts-ignore
187
+ api.addToContext(contextKey, aiAgentData, "simple");
188
+ break;
189
+ default:
190
+ api.addToInput(inputKey, aiAgentData);
191
+ }
192
+ }
193
+ });
194
+ //# sourceMappingURL=loadAiAgent.js.map
@@ -86,7 +86,7 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
86
86
  label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__LABEL",
87
87
  type: "json",
88
88
  description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__DESCRIPTION",
89
- defaultValue: {},
89
+ defaultValue: { liveAgentPriority: "none" },
90
90
  params: {
91
91
  required: true,
92
92
  },
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AIOPS_CENTER_WEBHOOKS_CONNECTION = exports.NICECXONEAAH_AUTHENTICATION_CONNECTION = exports.GENESYS_CLOUD_CONNECTION_OM = exports.GENESYS_CLOUD_CONNECTION = exports.EIGHT_BY_EIGHT_CONNECTION = exports.CHATWOOT_CONNECTION = exports.RINGCENTRAL_ENGAGE_CONNECTION = exports.LIVE_AGENT_CONNECTION = exports.AI_AGENT_JOB_CALL_MCP_TOOL = exports.AI_AGENT_HANDOVER = exports.AI_AGENT_TOOL_ANSWER = exports.AI_AGENT_JOB_MCP_TOOL = exports.AI_AGENT_JOB_TOOL = exports.AI_AGENT_JOB_DEFAULT = exports.AI_AGENT_JOB = exports.LLM_MODERATE = exports.LLM_ENTITY_EXTRACT = exports.GPT_CONVERSATION_SUMMARY = exports.GPT_CONVERSATION = exports.HANDOVER_INACTIVITY_TIMER = exports.CLOSE_HANDOVER = exports.GPT_PROMPT = exports.ON_SCHEDULING_ERROR = exports.ON_SCHEDULED = exports.TRIGGER_FUNCTION = exports.JWT_SECRET_CONNECTION = exports.HTTP_CONNECTION_OAUTH2 = exports.HTTP_CONNECTION_APIKEYXKEY = exports.HTTP_CONNECTION_APIKEYAUTHKEY = exports.HTTP_CONNECTION_BASIC = exports.HTTP_REQUEST = exports.CHECK_AGENT_AVAILABILITY = exports.HANDOVER_V2 = exports.HANDOVER = void 0;
3
+ exports.AIOPS_CENTER_WEBHOOKS_CONNECTION = exports.NICECXONEAAH_AUTHENTICATION_CONNECTION = exports.GENESYS_CLOUD_CONNECTION_OM = exports.GENESYS_CLOUD_CONNECTION = exports.EIGHT_BY_EIGHT_CONNECTION = exports.CHATWOOT_CONNECTION = exports.RINGCENTRAL_ENGAGE_CONNECTION = exports.LIVE_AGENT_CONNECTION = exports.LOAD_AI_AGENT = exports.AI_AGENT_JOB_CALL_MCP_TOOL = exports.AI_AGENT_HANDOVER = exports.AI_AGENT_TOOL_ANSWER = exports.AI_AGENT_JOB_MCP_TOOL = exports.AI_AGENT_JOB_TOOL = exports.AI_AGENT_JOB_DEFAULT = exports.AI_AGENT_JOB = exports.LLM_MODERATE = exports.LLM_ENTITY_EXTRACT = exports.GPT_CONVERSATION_SUMMARY = exports.GPT_CONVERSATION = exports.HANDOVER_INACTIVITY_TIMER = exports.CLOSE_HANDOVER = exports.LLM_PROMPT_TOOL = exports.LLM_PROMPT_MCP_TOOL = exports.LLM_PROMPT_DEFAULT = exports.LLM_PROMPT_V2 = exports.GPT_PROMPT = exports.ON_SCHEDULING_ERROR = exports.ON_SCHEDULED = exports.TRIGGER_FUNCTION = exports.JWT_SECRET_CONNECTION = exports.HTTP_CONNECTION_OAUTH2 = exports.HTTP_CONNECTION_APIKEYXKEY = exports.HTTP_CONNECTION_APIKEYAUTHKEY = exports.HTTP_CONNECTION_BASIC = exports.HTTP_REQUEST = exports.CHECK_AGENT_AVAILABILITY = exports.HANDOVER_V2 = exports.HANDOVER = void 0;
4
4
  var handover_1 = require("./handover");
5
5
  Object.defineProperty(exports, "HANDOVER", { enumerable: true, get: function () { return handover_1.HANDOVER; } });
6
6
  var handoverV2_1 = require("./handoverV2");
@@ -25,6 +25,14 @@ var onSchedulingError_1 = require("./triggerFunction/onSchedulingError");
25
25
  Object.defineProperty(exports, "ON_SCHEDULING_ERROR", { enumerable: true, get: function () { return onSchedulingError_1.ON_SCHEDULING_ERROR; } });
26
26
  var GPTPrompt_1 = require("./GPTPrompt");
27
27
  Object.defineProperty(exports, "GPT_PROMPT", { enumerable: true, get: function () { return GPTPrompt_1.GPT_PROMPT; } });
28
+ var LLMPromptV2_1 = require("./llmPrompt/LLMPromptV2");
29
+ Object.defineProperty(exports, "LLM_PROMPT_V2", { enumerable: true, get: function () { return LLMPromptV2_1.LLM_PROMPT_V2; } });
30
+ var llmPromptDefault_1 = require("./llmPrompt/llmPromptDefault");
31
+ Object.defineProperty(exports, "LLM_PROMPT_DEFAULT", { enumerable: true, get: function () { return llmPromptDefault_1.LLM_PROMPT_DEFAULT; } });
32
+ var llmPromptMCPTool_1 = require("./llmPrompt/llmPromptMCPTool");
33
+ Object.defineProperty(exports, "LLM_PROMPT_MCP_TOOL", { enumerable: true, get: function () { return llmPromptMCPTool_1.LLM_PROMPT_MCP_TOOL; } });
34
+ var llmPromptTool_1 = require("./llmPrompt/llmPromptTool");
35
+ Object.defineProperty(exports, "LLM_PROMPT_TOOL", { enumerable: true, get: function () { return llmPromptTool_1.LLM_PROMPT_TOOL; } });
28
36
  var closeHandover_1 = require("./closeHandover");
29
37
  Object.defineProperty(exports, "CLOSE_HANDOVER", { enumerable: true, get: function () { return closeHandover_1.CLOSE_HANDOVER; } });
30
38
  var handoverInactivityTimer_1 = require("./handoverInactivityTimer");
@@ -51,6 +59,8 @@ var aiAgentHandover_1 = require("./aiAgent/aiAgentHandover");
51
59
  Object.defineProperty(exports, "AI_AGENT_HANDOVER", { enumerable: true, get: function () { return aiAgentHandover_1.AI_AGENT_HANDOVER; } });
52
60
  var aiAgentJobCallMCPTool_1 = require("./aiAgent/aiAgentJobCallMCPTool");
53
61
  Object.defineProperty(exports, "AI_AGENT_JOB_CALL_MCP_TOOL", { enumerable: true, get: function () { return aiAgentJobCallMCPTool_1.AI_AGENT_JOB_CALL_MCP_TOOL; } });
62
+ var loadAiAgent_1 = require("./aiAgent/loadAiAgent");
63
+ Object.defineProperty(exports, "LOAD_AI_AGENT", { enumerable: true, get: function () { return loadAiAgent_1.LOAD_AI_AGENT; } });
54
64
  var handoverConnections_1 = require("./handoverConnections");
55
65
  Object.defineProperty(exports, "LIVE_AGENT_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.LIVE_AGENT_CONNECTION; } });
56
66
  Object.defineProperty(exports, "RINGCENTRAL_ENGAGE_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.RINGCENTRAL_ENGAGE_CONNECTION; } });