@wildix/wim-voicebots-client 1.1.4 → 1.1.6
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/dist-cjs/models/models_0.js +11 -1
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +32 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +24 -0
- package/dist-types/commands/GetTraceCommand.d.ts +24 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +16 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +16 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +32 -0
- package/dist-types/models/models_0.d.ts +105 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapability = exports.VoiceBotToolVariableHandler = exports.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotCapability = exports.VoiceBotToolVariableHandler = exports.VoiceBotCapabilityToolPipelineType = exports.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
5
|
class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -38,6 +38,12 @@ exports.VoiceBotEventType = {
|
|
|
38
38
|
STARTED: "started",
|
|
39
39
|
TRANSCRIPTION: "transcription",
|
|
40
40
|
};
|
|
41
|
+
exports.VoiceBotCapabilityToolPipelineType = {
|
|
42
|
+
ASYNC_REQUEST: "async_request",
|
|
43
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
44
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
45
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
46
|
+
};
|
|
41
47
|
var VoiceBotToolVariableHandler;
|
|
42
48
|
(function (VoiceBotToolVariableHandler) {
|
|
43
49
|
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
@@ -203,6 +209,10 @@ var TraceToolCall;
|
|
|
203
209
|
return visitor.delegation(value.delegation);
|
|
204
210
|
if (value.function !== undefined)
|
|
205
211
|
return visitor.function(value.function);
|
|
212
|
+
if (value.capabilityTool !== undefined)
|
|
213
|
+
return visitor.capabilityTool(value.capabilityTool);
|
|
214
|
+
if (value.capabilityKb !== undefined)
|
|
215
|
+
return visitor.capabilityKb(value.capabilityKb);
|
|
206
216
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
207
217
|
};
|
|
208
218
|
})(TraceToolCall || (exports.TraceToolCall = TraceToolCall = {}));
|
|
@@ -611,10 +611,12 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
|
611
611
|
return (0, smithy_client_1.take)(input, {
|
|
612
612
|
'capabilities': smithy_client_1._json,
|
|
613
613
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
614
|
+
'guidelines': smithy_client_1._json,
|
|
614
615
|
'metadata': smithy_client_1._json,
|
|
615
616
|
'model': [],
|
|
616
617
|
'prompt': [],
|
|
617
618
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
619
|
+
'variables': smithy_client_1._json,
|
|
618
620
|
});
|
|
619
621
|
};
|
|
620
622
|
const se_VoiceBotTool = (input, context) => {
|
|
@@ -980,10 +982,12 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
|
980
982
|
return (0, smithy_client_1.take)(output, {
|
|
981
983
|
'capabilities': smithy_client_1._json,
|
|
982
984
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
985
|
+
'guidelines': smithy_client_1._json,
|
|
983
986
|
'metadata': smithy_client_1._json,
|
|
984
987
|
'model': smithy_client_1.expectString,
|
|
985
988
|
'prompt': smithy_client_1.expectString,
|
|
986
989
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
990
|
+
'variables': smithy_client_1._json,
|
|
987
991
|
});
|
|
988
992
|
};
|
|
989
993
|
const de_VoiceBotsList = (output, context) => {
|
|
@@ -33,6 +33,12 @@ export const VoiceBotEventType = {
|
|
|
33
33
|
STARTED: "started",
|
|
34
34
|
TRANSCRIPTION: "transcription",
|
|
35
35
|
};
|
|
36
|
+
export const VoiceBotCapabilityToolPipelineType = {
|
|
37
|
+
ASYNC_REQUEST: "async_request",
|
|
38
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
39
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
40
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
41
|
+
};
|
|
36
42
|
export var VoiceBotToolVariableHandler;
|
|
37
43
|
(function (VoiceBotToolVariableHandler) {
|
|
38
44
|
VoiceBotToolVariableHandler.visit = (value, visitor) => {
|
|
@@ -197,6 +203,10 @@ export var TraceToolCall;
|
|
|
197
203
|
return visitor.delegation(value.delegation);
|
|
198
204
|
if (value.function !== undefined)
|
|
199
205
|
return visitor.function(value.function);
|
|
206
|
+
if (value.capabilityTool !== undefined)
|
|
207
|
+
return visitor.capabilityTool(value.capabilityTool);
|
|
208
|
+
if (value.capabilityKb !== undefined)
|
|
209
|
+
return visitor.capabilityKb(value.capabilityKb);
|
|
200
210
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
201
211
|
};
|
|
202
212
|
})(TraceToolCall || (TraceToolCall = {}));
|
|
@@ -580,10 +580,12 @@ const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
|
580
580
|
return take(input, {
|
|
581
581
|
'capabilities': _json,
|
|
582
582
|
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
583
|
+
'guidelines': _json,
|
|
583
584
|
'metadata': _json,
|
|
584
585
|
'model': [],
|
|
585
586
|
'prompt': [],
|
|
586
587
|
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
588
|
+
'variables': _json,
|
|
587
589
|
});
|
|
588
590
|
};
|
|
589
591
|
const se_VoiceBotTool = (input, context) => {
|
|
@@ -949,10 +951,12 @@ const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
|
949
951
|
return take(output, {
|
|
950
952
|
'capabilities': _json,
|
|
951
953
|
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
954
|
+
'guidelines': _json,
|
|
952
955
|
'metadata': _json,
|
|
953
956
|
'model': __expectString,
|
|
954
957
|
'prompt': __expectString,
|
|
955
958
|
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
959
|
+
'variables': _json,
|
|
956
960
|
});
|
|
957
961
|
};
|
|
958
962
|
const de_VoiceBotsList = (output, context) => {
|
|
@@ -63,6 +63,9 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
65
|
* model: "STRING_VALUE",
|
|
66
|
+
* guidelines: [ // AgentGuidelinesList
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
66
69
|
* metadata: { // VoiceBotPromptMetadata
|
|
67
70
|
* userName: { // VoiceBotPromptMetadataEnabled
|
|
68
71
|
* enabled: true || false, // required
|
|
@@ -148,6 +151,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
148
151
|
* },
|
|
149
152
|
* ],
|
|
150
153
|
* startMessage: "STRING_VALUE",
|
|
154
|
+
* pipeline: { // VoiceBotCapabilityToolPipeline
|
|
155
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
156
|
+
* instructions: "STRING_VALUE",
|
|
157
|
+
* },
|
|
151
158
|
* },
|
|
152
159
|
* kb: { // VoiceBotKnowledgeBase
|
|
153
160
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -155,6 +162,11 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
155
162
|
* },
|
|
156
163
|
* },
|
|
157
164
|
* ],
|
|
165
|
+
* variables: [ // VoiceBotVariablesList
|
|
166
|
+
* { // VoiceBotVariable
|
|
167
|
+
* name: "STRING_VALUE", // required
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
158
170
|
* },
|
|
159
171
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
160
172
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -195,6 +207,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
195
207
|
* },
|
|
196
208
|
* ],
|
|
197
209
|
* startMessage: "STRING_VALUE",
|
|
210
|
+
* pipeline: {
|
|
211
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
212
|
+
* instructions: "STRING_VALUE",
|
|
213
|
+
* },
|
|
198
214
|
* },
|
|
199
215
|
* kb: {
|
|
200
216
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -236,6 +252,9 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
236
252
|
* // llm: { // VoiceBotLlmEndpoint
|
|
237
253
|
* // prompt: "STRING_VALUE", // required
|
|
238
254
|
* // model: "STRING_VALUE",
|
|
255
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
256
|
+
* // "STRING_VALUE",
|
|
257
|
+
* // ],
|
|
239
258
|
* // metadata: { // VoiceBotPromptMetadata
|
|
240
259
|
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
241
260
|
* // enabled: true || false, // required
|
|
@@ -321,6 +340,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
321
340
|
* // },
|
|
322
341
|
* // ],
|
|
323
342
|
* // startMessage: "STRING_VALUE",
|
|
343
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
344
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
345
|
+
* // instructions: "STRING_VALUE",
|
|
346
|
+
* // },
|
|
324
347
|
* // },
|
|
325
348
|
* // kb: { // VoiceBotKnowledgeBase
|
|
326
349
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -328,6 +351,11 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
328
351
|
* // },
|
|
329
352
|
* // },
|
|
330
353
|
* // ],
|
|
354
|
+
* // variables: [ // VoiceBotVariablesList
|
|
355
|
+
* // { // VoiceBotVariable
|
|
356
|
+
* // name: "STRING_VALUE", // required
|
|
357
|
+
* // },
|
|
358
|
+
* // ],
|
|
331
359
|
* // },
|
|
332
360
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
333
361
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -368,6 +396,10 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
368
396
|
* // },
|
|
369
397
|
* // ],
|
|
370
398
|
* // startMessage: "STRING_VALUE",
|
|
399
|
+
* // pipeline: {
|
|
400
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
401
|
+
* // instructions: "STRING_VALUE",
|
|
402
|
+
* // },
|
|
371
403
|
* // },
|
|
372
404
|
* // kb: {
|
|
373
405
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -407,6 +407,14 @@ declare const DescribeEventCommand_base: {
|
|
|
407
407
|
* // body: "STRING_VALUE",
|
|
408
408
|
* // },
|
|
409
409
|
* // },
|
|
410
|
+
* // capabilityTool: { // TraceCapabilityToolCall
|
|
411
|
+
* // name: "STRING_VALUE",
|
|
412
|
+
* // args: "STRING_VALUE",
|
|
413
|
+
* // },
|
|
414
|
+
* // capabilityKb: { // TraceCapabilityKbCall
|
|
415
|
+
* // name: "STRING_VALUE",
|
|
416
|
+
* // args: "STRING_VALUE",
|
|
417
|
+
* // },
|
|
410
418
|
* // },
|
|
411
419
|
* // result: "STRING_VALUE",
|
|
412
420
|
* // },
|
|
@@ -438,6 +446,14 @@ declare const DescribeEventCommand_base: {
|
|
|
438
446
|
* // body: "STRING_VALUE",
|
|
439
447
|
* // },
|
|
440
448
|
* // },
|
|
449
|
+
* // capabilityTool: {
|
|
450
|
+
* // name: "STRING_VALUE",
|
|
451
|
+
* // args: "STRING_VALUE",
|
|
452
|
+
* // },
|
|
453
|
+
* // capabilityKb: {
|
|
454
|
+
* // name: "STRING_VALUE",
|
|
455
|
+
* // args: "STRING_VALUE",
|
|
456
|
+
* // },
|
|
441
457
|
* // },
|
|
442
458
|
* // result: "STRING_VALUE",
|
|
443
459
|
* // },
|
|
@@ -469,6 +485,14 @@ declare const DescribeEventCommand_base: {
|
|
|
469
485
|
* // body: "STRING_VALUE",
|
|
470
486
|
* // },
|
|
471
487
|
* // },
|
|
488
|
+
* // capabilityTool: {
|
|
489
|
+
* // name: "STRING_VALUE",
|
|
490
|
+
* // args: "STRING_VALUE",
|
|
491
|
+
* // },
|
|
492
|
+
* // capabilityKb: {
|
|
493
|
+
* // name: "STRING_VALUE",
|
|
494
|
+
* // args: "STRING_VALUE",
|
|
495
|
+
* // },
|
|
472
496
|
* // },
|
|
473
497
|
* // oauth: { // TraceOAuthInput
|
|
474
498
|
* // clientId: "STRING_VALUE",
|
|
@@ -220,6 +220,14 @@ declare const GetTraceCommand_base: {
|
|
|
220
220
|
* // body: "STRING_VALUE",
|
|
221
221
|
* // },
|
|
222
222
|
* // },
|
|
223
|
+
* // capabilityTool: { // TraceCapabilityToolCall
|
|
224
|
+
* // name: "STRING_VALUE",
|
|
225
|
+
* // args: "STRING_VALUE",
|
|
226
|
+
* // },
|
|
227
|
+
* // capabilityKb: { // TraceCapabilityKbCall
|
|
228
|
+
* // name: "STRING_VALUE",
|
|
229
|
+
* // args: "STRING_VALUE",
|
|
230
|
+
* // },
|
|
223
231
|
* // },
|
|
224
232
|
* // result: "STRING_VALUE",
|
|
225
233
|
* // },
|
|
@@ -251,6 +259,14 @@ declare const GetTraceCommand_base: {
|
|
|
251
259
|
* // body: "STRING_VALUE",
|
|
252
260
|
* // },
|
|
253
261
|
* // },
|
|
262
|
+
* // capabilityTool: {
|
|
263
|
+
* // name: "STRING_VALUE",
|
|
264
|
+
* // args: "STRING_VALUE",
|
|
265
|
+
* // },
|
|
266
|
+
* // capabilityKb: {
|
|
267
|
+
* // name: "STRING_VALUE",
|
|
268
|
+
* // args: "STRING_VALUE",
|
|
269
|
+
* // },
|
|
254
270
|
* // },
|
|
255
271
|
* // result: "STRING_VALUE",
|
|
256
272
|
* // },
|
|
@@ -282,6 +298,14 @@ declare const GetTraceCommand_base: {
|
|
|
282
298
|
* // body: "STRING_VALUE",
|
|
283
299
|
* // },
|
|
284
300
|
* // },
|
|
301
|
+
* // capabilityTool: {
|
|
302
|
+
* // name: "STRING_VALUE",
|
|
303
|
+
* // args: "STRING_VALUE",
|
|
304
|
+
* // },
|
|
305
|
+
* // capabilityKb: {
|
|
306
|
+
* // name: "STRING_VALUE",
|
|
307
|
+
* // args: "STRING_VALUE",
|
|
308
|
+
* // },
|
|
285
309
|
* // },
|
|
286
310
|
* // oauth: { // TraceOAuthInput
|
|
287
311
|
* // clientId: "STRING_VALUE",
|
|
@@ -70,6 +70,9 @@ declare const GetVoiceBotCommand_base: {
|
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
72
|
* // model: "STRING_VALUE",
|
|
73
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
73
76
|
* // metadata: { // VoiceBotPromptMetadata
|
|
74
77
|
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
75
78
|
* // enabled: true || false, // required
|
|
@@ -155,6 +158,10 @@ declare const GetVoiceBotCommand_base: {
|
|
|
155
158
|
* // },
|
|
156
159
|
* // ],
|
|
157
160
|
* // startMessage: "STRING_VALUE",
|
|
161
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
162
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
163
|
+
* // instructions: "STRING_VALUE",
|
|
164
|
+
* // },
|
|
158
165
|
* // },
|
|
159
166
|
* // kb: { // VoiceBotKnowledgeBase
|
|
160
167
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -162,6 +169,11 @@ declare const GetVoiceBotCommand_base: {
|
|
|
162
169
|
* // },
|
|
163
170
|
* // },
|
|
164
171
|
* // ],
|
|
172
|
+
* // variables: [ // VoiceBotVariablesList
|
|
173
|
+
* // { // VoiceBotVariable
|
|
174
|
+
* // name: "STRING_VALUE", // required
|
|
175
|
+
* // },
|
|
176
|
+
* // ],
|
|
165
177
|
* // },
|
|
166
178
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
167
179
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -202,6 +214,10 @@ declare const GetVoiceBotCommand_base: {
|
|
|
202
214
|
* // },
|
|
203
215
|
* // ],
|
|
204
216
|
* // startMessage: "STRING_VALUE",
|
|
217
|
+
* // pipeline: {
|
|
218
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
219
|
+
* // instructions: "STRING_VALUE",
|
|
220
|
+
* // },
|
|
205
221
|
* // },
|
|
206
222
|
* // kb: {
|
|
207
223
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -70,6 +70,9 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
70
70
|
* // llm: { // VoiceBotLlmEndpoint
|
|
71
71
|
* // prompt: "STRING_VALUE", // required
|
|
72
72
|
* // model: "STRING_VALUE",
|
|
73
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
73
76
|
* // metadata: { // VoiceBotPromptMetadata
|
|
74
77
|
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
75
78
|
* // enabled: true || false, // required
|
|
@@ -155,6 +158,10 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
155
158
|
* // },
|
|
156
159
|
* // ],
|
|
157
160
|
* // startMessage: "STRING_VALUE",
|
|
161
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
162
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
163
|
+
* // instructions: "STRING_VALUE",
|
|
164
|
+
* // },
|
|
158
165
|
* // },
|
|
159
166
|
* // kb: { // VoiceBotKnowledgeBase
|
|
160
167
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -162,6 +169,11 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
162
169
|
* // },
|
|
163
170
|
* // },
|
|
164
171
|
* // ],
|
|
172
|
+
* // variables: [ // VoiceBotVariablesList
|
|
173
|
+
* // { // VoiceBotVariable
|
|
174
|
+
* // name: "STRING_VALUE", // required
|
|
175
|
+
* // },
|
|
176
|
+
* // ],
|
|
165
177
|
* // },
|
|
166
178
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
167
179
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -202,6 +214,10 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
202
214
|
* // },
|
|
203
215
|
* // ],
|
|
204
216
|
* // startMessage: "STRING_VALUE",
|
|
217
|
+
* // pipeline: {
|
|
218
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
219
|
+
* // instructions: "STRING_VALUE",
|
|
220
|
+
* // },
|
|
205
221
|
* // },
|
|
206
222
|
* // kb: {
|
|
207
223
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -63,6 +63,9 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
63
63
|
* llm: { // VoiceBotLlmEndpoint
|
|
64
64
|
* prompt: "STRING_VALUE", // required
|
|
65
65
|
* model: "STRING_VALUE",
|
|
66
|
+
* guidelines: [ // AgentGuidelinesList
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
66
69
|
* metadata: { // VoiceBotPromptMetadata
|
|
67
70
|
* userName: { // VoiceBotPromptMetadataEnabled
|
|
68
71
|
* enabled: true || false, // required
|
|
@@ -148,6 +151,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
148
151
|
* },
|
|
149
152
|
* ],
|
|
150
153
|
* startMessage: "STRING_VALUE",
|
|
154
|
+
* pipeline: { // VoiceBotCapabilityToolPipeline
|
|
155
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
156
|
+
* instructions: "STRING_VALUE",
|
|
157
|
+
* },
|
|
151
158
|
* },
|
|
152
159
|
* kb: { // VoiceBotKnowledgeBase
|
|
153
160
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -155,6 +162,11 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
155
162
|
* },
|
|
156
163
|
* },
|
|
157
164
|
* ],
|
|
165
|
+
* variables: [ // VoiceBotVariablesList
|
|
166
|
+
* { // VoiceBotVariable
|
|
167
|
+
* name: "STRING_VALUE", // required
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
158
170
|
* },
|
|
159
171
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
160
172
|
* credentials: "DOCUMENT_VALUE", // required
|
|
@@ -195,6 +207,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
195
207
|
* },
|
|
196
208
|
* ],
|
|
197
209
|
* startMessage: "STRING_VALUE",
|
|
210
|
+
* pipeline: {
|
|
211
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
212
|
+
* instructions: "STRING_VALUE",
|
|
213
|
+
* },
|
|
198
214
|
* },
|
|
199
215
|
* kb: {
|
|
200
216
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -237,6 +253,9 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
237
253
|
* // llm: { // VoiceBotLlmEndpoint
|
|
238
254
|
* // prompt: "STRING_VALUE", // required
|
|
239
255
|
* // model: "STRING_VALUE",
|
|
256
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
257
|
+
* // "STRING_VALUE",
|
|
258
|
+
* // ],
|
|
240
259
|
* // metadata: { // VoiceBotPromptMetadata
|
|
241
260
|
* // userName: { // VoiceBotPromptMetadataEnabled
|
|
242
261
|
* // enabled: true || false, // required
|
|
@@ -322,6 +341,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
322
341
|
* // },
|
|
323
342
|
* // ],
|
|
324
343
|
* // startMessage: "STRING_VALUE",
|
|
344
|
+
* // pipeline: { // VoiceBotCapabilityToolPipeline
|
|
345
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
346
|
+
* // instructions: "STRING_VALUE",
|
|
347
|
+
* // },
|
|
325
348
|
* // },
|
|
326
349
|
* // kb: { // VoiceBotKnowledgeBase
|
|
327
350
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -329,6 +352,11 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
329
352
|
* // },
|
|
330
353
|
* // },
|
|
331
354
|
* // ],
|
|
355
|
+
* // variables: [ // VoiceBotVariablesList
|
|
356
|
+
* // { // VoiceBotVariable
|
|
357
|
+
* // name: "STRING_VALUE", // required
|
|
358
|
+
* // },
|
|
359
|
+
* // ],
|
|
332
360
|
* // },
|
|
333
361
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
334
362
|
* // credentials: "DOCUMENT_VALUE", // required
|
|
@@ -369,6 +397,10 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
369
397
|
* // },
|
|
370
398
|
* // ],
|
|
371
399
|
* // startMessage: "STRING_VALUE",
|
|
400
|
+
* // pipeline: {
|
|
401
|
+
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
402
|
+
* // instructions: "STRING_VALUE",
|
|
403
|
+
* // },
|
|
372
404
|
* // },
|
|
373
405
|
* // kb: {
|
|
374
406
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
@@ -98,6 +98,35 @@ export interface VoiceBotKnowledgeBase {
|
|
|
98
98
|
*/
|
|
99
99
|
instructions?: string | undefined;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
* @enum
|
|
104
|
+
*/
|
|
105
|
+
export declare const VoiceBotCapabilityToolPipelineType: {
|
|
106
|
+
readonly ASYNC_REQUEST: "async_request";
|
|
107
|
+
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
108
|
+
readonly BLOCKING_REQUEST: "blocking_request";
|
|
109
|
+
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export type VoiceBotCapabilityToolPipelineType = typeof VoiceBotCapabilityToolPipelineType[keyof typeof VoiceBotCapabilityToolPipelineType];
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export interface VoiceBotCapabilityToolPipeline {
|
|
119
|
+
/**
|
|
120
|
+
* Pipeline type for tool execution. Determines whether to wait for response and how to handle the reply.
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
type?: VoiceBotCapabilityToolPipelineType | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Instructions for generating a reply when using guided pipeline types. Use \{\{response\}\} to reference the tool response.
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
instructions?: string | undefined;
|
|
129
|
+
}
|
|
101
130
|
/**
|
|
102
131
|
* @public
|
|
103
132
|
*/
|
|
@@ -184,6 +213,11 @@ export interface VoiceBotCapabilityTool {
|
|
|
184
213
|
* @public
|
|
185
214
|
*/
|
|
186
215
|
startMessage?: string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Pipeline configuration for tool execution, similar to third-party function pipelines.
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
pipeline?: VoiceBotCapabilityToolPipeline | undefined;
|
|
187
221
|
}
|
|
188
222
|
/**
|
|
189
223
|
* @public
|
|
@@ -506,6 +540,12 @@ export interface VoiceBotTool {
|
|
|
506
540
|
type: VoiceBotToolType;
|
|
507
541
|
function?: VoiceBotFunctionDefinition | undefined;
|
|
508
542
|
}
|
|
543
|
+
/**
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
546
|
+
export interface VoiceBotVariable {
|
|
547
|
+
name: string;
|
|
548
|
+
}
|
|
509
549
|
/**
|
|
510
550
|
* @public
|
|
511
551
|
*/
|
|
@@ -516,6 +556,7 @@ export interface VoiceBotLlmEndpoint {
|
|
|
516
556
|
* @public
|
|
517
557
|
*/
|
|
518
558
|
model?: string | undefined;
|
|
559
|
+
guidelines?: (string)[] | undefined;
|
|
519
560
|
/**
|
|
520
561
|
* Metadata configuration to include in the system prompt context.
|
|
521
562
|
* @public
|
|
@@ -532,6 +573,11 @@ export interface VoiceBotLlmEndpoint {
|
|
|
532
573
|
*/
|
|
533
574
|
tools?: (VoiceBotTool)[] | undefined;
|
|
534
575
|
capabilities?: (VoiceBotCapability)[] | undefined;
|
|
576
|
+
/**
|
|
577
|
+
* Variables such as dialplan variables that can be used in the bot.
|
|
578
|
+
* @public
|
|
579
|
+
*/
|
|
580
|
+
variables?: (VoiceBotVariable)[] | undefined;
|
|
535
581
|
}
|
|
536
582
|
/**
|
|
537
583
|
* @public
|
|
@@ -1317,6 +1363,22 @@ export interface TraceActivity {
|
|
|
1317
1363
|
timings?: Record<string, number> | undefined;
|
|
1318
1364
|
usage?: TraceUsage | undefined;
|
|
1319
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Knowledge base capability call segment for trace.
|
|
1368
|
+
* @public
|
|
1369
|
+
*/
|
|
1370
|
+
export interface TraceCapabilityKbCall {
|
|
1371
|
+
name?: string | undefined;
|
|
1372
|
+
args?: string | undefined;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Capability tool call (wim-tools) segment for trace.
|
|
1376
|
+
* @public
|
|
1377
|
+
*/
|
|
1378
|
+
export interface TraceCapabilityToolCall {
|
|
1379
|
+
name?: string | undefined;
|
|
1380
|
+
args?: string | undefined;
|
|
1381
|
+
}
|
|
1320
1382
|
/**
|
|
1321
1383
|
* @public
|
|
1322
1384
|
*/
|
|
@@ -1360,7 +1422,7 @@ export interface TraceWaitToolCall {
|
|
|
1360
1422
|
/**
|
|
1361
1423
|
* @public
|
|
1362
1424
|
*/
|
|
1363
|
-
export type TraceToolCall = TraceToolCall.DelegationMember | TraceToolCall.FunctionMember | TraceToolCall.HangupMember | TraceToolCall.TransferMember | TraceToolCall.WaitMember | TraceToolCall.$UnknownMember;
|
|
1425
|
+
export type TraceToolCall = TraceToolCall.CapabilityKbMember | TraceToolCall.CapabilityToolMember | TraceToolCall.DelegationMember | TraceToolCall.FunctionMember | TraceToolCall.HangupMember | TraceToolCall.TransferMember | TraceToolCall.WaitMember | TraceToolCall.$UnknownMember;
|
|
1364
1426
|
/**
|
|
1365
1427
|
* @public
|
|
1366
1428
|
*/
|
|
@@ -1371,6 +1433,8 @@ export declare namespace TraceToolCall {
|
|
|
1371
1433
|
wait?: never;
|
|
1372
1434
|
delegation?: never;
|
|
1373
1435
|
function?: never;
|
|
1436
|
+
capabilityTool?: never;
|
|
1437
|
+
capabilityKb?: never;
|
|
1374
1438
|
$unknown?: never;
|
|
1375
1439
|
}
|
|
1376
1440
|
interface HangupMember {
|
|
@@ -1379,6 +1443,8 @@ export declare namespace TraceToolCall {
|
|
|
1379
1443
|
wait?: never;
|
|
1380
1444
|
delegation?: never;
|
|
1381
1445
|
function?: never;
|
|
1446
|
+
capabilityTool?: never;
|
|
1447
|
+
capabilityKb?: never;
|
|
1382
1448
|
$unknown?: never;
|
|
1383
1449
|
}
|
|
1384
1450
|
interface WaitMember {
|
|
@@ -1387,6 +1453,8 @@ export declare namespace TraceToolCall {
|
|
|
1387
1453
|
wait: TraceWaitToolCall;
|
|
1388
1454
|
delegation?: never;
|
|
1389
1455
|
function?: never;
|
|
1456
|
+
capabilityTool?: never;
|
|
1457
|
+
capabilityKb?: never;
|
|
1390
1458
|
$unknown?: never;
|
|
1391
1459
|
}
|
|
1392
1460
|
interface DelegationMember {
|
|
@@ -1395,6 +1463,8 @@ export declare namespace TraceToolCall {
|
|
|
1395
1463
|
wait?: never;
|
|
1396
1464
|
delegation: TraceDelegationToolCall;
|
|
1397
1465
|
function?: never;
|
|
1466
|
+
capabilityTool?: never;
|
|
1467
|
+
capabilityKb?: never;
|
|
1398
1468
|
$unknown?: never;
|
|
1399
1469
|
}
|
|
1400
1470
|
interface FunctionMember {
|
|
@@ -1403,6 +1473,36 @@ export declare namespace TraceToolCall {
|
|
|
1403
1473
|
wait?: never;
|
|
1404
1474
|
delegation?: never;
|
|
1405
1475
|
function: TraceFunctionToolCall;
|
|
1476
|
+
capabilityTool?: never;
|
|
1477
|
+
capabilityKb?: never;
|
|
1478
|
+
$unknown?: never;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Capability tool call (wim-tools) segment for trace.
|
|
1482
|
+
* @public
|
|
1483
|
+
*/
|
|
1484
|
+
interface CapabilityToolMember {
|
|
1485
|
+
transfer?: never;
|
|
1486
|
+
hangup?: never;
|
|
1487
|
+
wait?: never;
|
|
1488
|
+
delegation?: never;
|
|
1489
|
+
function?: never;
|
|
1490
|
+
capabilityTool: TraceCapabilityToolCall;
|
|
1491
|
+
capabilityKb?: never;
|
|
1492
|
+
$unknown?: never;
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Knowledge base capability call segment for trace.
|
|
1496
|
+
* @public
|
|
1497
|
+
*/
|
|
1498
|
+
interface CapabilityKbMember {
|
|
1499
|
+
transfer?: never;
|
|
1500
|
+
hangup?: never;
|
|
1501
|
+
wait?: never;
|
|
1502
|
+
delegation?: never;
|
|
1503
|
+
function?: never;
|
|
1504
|
+
capabilityTool?: never;
|
|
1505
|
+
capabilityKb: TraceCapabilityKbCall;
|
|
1406
1506
|
$unknown?: never;
|
|
1407
1507
|
}
|
|
1408
1508
|
/**
|
|
@@ -1414,6 +1514,8 @@ export declare namespace TraceToolCall {
|
|
|
1414
1514
|
wait?: never;
|
|
1415
1515
|
delegation?: never;
|
|
1416
1516
|
function?: never;
|
|
1517
|
+
capabilityTool?: never;
|
|
1518
|
+
capabilityKb?: never;
|
|
1417
1519
|
$unknown: [string, any];
|
|
1418
1520
|
}
|
|
1419
1521
|
interface Visitor<T> {
|
|
@@ -1422,6 +1524,8 @@ export declare namespace TraceToolCall {
|
|
|
1422
1524
|
wait: (value: TraceWaitToolCall) => T;
|
|
1423
1525
|
delegation: (value: TraceDelegationToolCall) => T;
|
|
1424
1526
|
function: (value: TraceFunctionToolCall) => T;
|
|
1527
|
+
capabilityTool: (value: TraceCapabilityToolCall) => T;
|
|
1528
|
+
capabilityKb: (value: TraceCapabilityKbCall) => T;
|
|
1425
1529
|
_: (name: string, value: any) => T;
|
|
1426
1530
|
}
|
|
1427
1531
|
const visit: <T>(value: TraceToolCall, visitor: Visitor<T>) => T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-voicebots-client",
|
|
3
3
|
"description": "@wildix/wim-voicebots-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|