@wildix/wilma-agents-client 1.0.37 → 1.0.38
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/enums.js +11 -1
- package/dist-cjs/schemas/schemas_0.js +9 -6
- package/dist-es/models/enums.js +10 -0
- package/dist-es/schemas/schemas_0.js +9 -6
- package/dist-types/commands/CreateAgentCommand.d.ts +16 -0
- package/dist-types/commands/GetAgentCommand.d.ts +8 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +8 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +8 -0
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +8 -0
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +8 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +16 -0
- package/dist-types/models/enums.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +30 -1
- package/package.json +1 -1
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentStatus = exports.AgentWorkflowLayout = exports.AgentWorkflowFailureKind = exports.AgentWorkflowMessageButtonVariant = exports.AgentWorkflowEntryBehavior = exports.AgentVariableType = exports.AgentGuardrailWindow = exports.AgentGuardrailMode = exports.AgentGuardrailErrorMode = exports.AgentGuardrailSensitivity = exports.AgentGuardrailPreset = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.SandboxSize = exports.SandboxNetworkAccess = exports.AgentHangupPipelineType = exports.AgentHandoverVariant = exports.AgentHandoverPipelineType = exports.AgentToolPipelineType = exports.ChannelType = exports.ActorType = exports.VoicePronunciationEncoding = exports.AgentVisibility = void 0;
|
|
3
|
+
exports.AgentStatus = exports.AgentWorkflowLayout = exports.AgentWorkflowFailureKind = exports.AgentWorkflowMessageButtonVariant = exports.AgentWorkflowEntryBehavior = exports.AgentVariableType = exports.AgentGuardrailWindow = exports.AgentGuardrailMode = exports.AgentGuardrailErrorMode = exports.AgentGuardrailSensitivity = exports.AgentGuardrailPreset = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.SandboxSize = exports.SandboxNetworkAccess = exports.KnowledgeBaseSearchThreshold = exports.KnowledgeBaseSearchStrategy = exports.AgentHangupPipelineType = exports.AgentHandoverVariant = exports.AgentHandoverPipelineType = exports.AgentToolPipelineType = exports.ChannelType = exports.ActorType = exports.VoicePronunciationEncoding = exports.AgentVisibility = void 0;
|
|
4
4
|
exports.AgentVisibility = {
|
|
5
5
|
EXPLICIT: "explicit",
|
|
6
6
|
ORGANIZATION: "organization",
|
|
@@ -40,6 +40,16 @@ exports.AgentHangupPipelineType = {
|
|
|
40
40
|
REPLY_AND_HANGUP: "reply_and_hangup",
|
|
41
41
|
REPLY_INSTRUCTED_AND_HANGUP: "reply_instructed_and_hangup",
|
|
42
42
|
};
|
|
43
|
+
exports.KnowledgeBaseSearchStrategy = {
|
|
44
|
+
BM25: "bm25",
|
|
45
|
+
HYBRID: "hybrid",
|
|
46
|
+
VECTOR: "vector",
|
|
47
|
+
};
|
|
48
|
+
exports.KnowledgeBaseSearchThreshold = {
|
|
49
|
+
HIGH: "high",
|
|
50
|
+
LOW: "low",
|
|
51
|
+
MEDIUM: "medium",
|
|
52
|
+
};
|
|
43
53
|
exports.SandboxNetworkAccess = {
|
|
44
54
|
ALL: "allow-all",
|
|
45
55
|
ALLOWLIST: "allowlist",
|
|
@@ -356,8 +356,11 @@ const _s = "smithy.ts.sdk.synthetic.wildix.wilma.agents";
|
|
|
356
356
|
const _sC = "speechConfigured";
|
|
357
357
|
const _sI = "skillIds";
|
|
358
358
|
const _sIn = "snapshotId";
|
|
359
|
+
const _sL = "searchLimit";
|
|
359
360
|
const _sM = "startMessage";
|
|
360
|
-
const
|
|
361
|
+
const _sS = "searchStrategy";
|
|
362
|
+
const _sT = "searchThreshold";
|
|
363
|
+
const _sTi = "silenceTimeout";
|
|
361
364
|
const _sV = "skillVersion";
|
|
362
365
|
const _sa = "sandbox";
|
|
363
366
|
const _se = "settings";
|
|
@@ -588,8 +591,8 @@ exports.AgentInfo$ = [3, n2, _AI,
|
|
|
588
591
|
];
|
|
589
592
|
exports.AgentKnowledgeBase$ = [3, n2, _AKB,
|
|
590
593
|
0,
|
|
591
|
-
[_kBI, _in, _ch, _an],
|
|
592
|
-
[0, 0, 64 | 0, () => AgentToolAnnotationsList]
|
|
594
|
+
[_kBI, _in, _sS, _sT, _sL, _ch, _an],
|
|
595
|
+
[0, 0, 0, 0, 1, 64 | 0, () => AgentToolAnnotationsList]
|
|
593
596
|
];
|
|
594
597
|
exports.AgentSettings$ = [3, n2, _AS,
|
|
595
598
|
0,
|
|
@@ -608,8 +611,8 @@ exports.AgentSqsEngine$ = [3, n2, _ASE,
|
|
|
608
611
|
];
|
|
609
612
|
exports.AgentSuggestionsCapability$ = [3, n2, _ASC,
|
|
610
613
|
0,
|
|
611
|
-
[_n, _ch, _an],
|
|
612
|
-
[0, 64 | 0, () => AgentToolAnnotationsList]
|
|
614
|
+
[_n, _in, _ch, _an],
|
|
615
|
+
[0, 0, 64 | 0, () => AgentToolAnnotationsList]
|
|
613
616
|
];
|
|
614
617
|
exports.AgentTool$ = [3, n2, _AT,
|
|
615
618
|
0,
|
|
@@ -1088,7 +1091,7 @@ exports.VoiceCallerMetadataSettings$ = [3, n2, _VCMS,
|
|
|
1088
1091
|
];
|
|
1089
1092
|
exports.VoiceChannelSettings$ = [3, n2, _VCS,
|
|
1090
1093
|
0,
|
|
1091
|
-
[_gr, _bS, _sp, _int,
|
|
1094
|
+
[_gr, _bS, _sp, _int, _sTi, _mD, _eC, _cM],
|
|
1092
1095
|
[0, () => exports.VoiceBackgroundSoundSettings$, () => exports.VoiceSpeechSettings$, () => exports.VoiceInterruptionSettings$, () => exports.VoiceSilenceTimeoutSettings$, () => exports.VoiceMaxDurationSettings$, () => exports.VoiceEndCallSettings$, () => exports.VoiceCallerMetadataSettings$]
|
|
1093
1096
|
];
|
|
1094
1097
|
exports.VoiceEndCallSettings$ = [3, n2, _VECS,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -37,6 +37,16 @@ export const AgentHangupPipelineType = {
|
|
|
37
37
|
REPLY_AND_HANGUP: "reply_and_hangup",
|
|
38
38
|
REPLY_INSTRUCTED_AND_HANGUP: "reply_instructed_and_hangup",
|
|
39
39
|
};
|
|
40
|
+
export const KnowledgeBaseSearchStrategy = {
|
|
41
|
+
BM25: "bm25",
|
|
42
|
+
HYBRID: "hybrid",
|
|
43
|
+
VECTOR: "vector",
|
|
44
|
+
};
|
|
45
|
+
export const KnowledgeBaseSearchThreshold = {
|
|
46
|
+
HIGH: "high",
|
|
47
|
+
LOW: "low",
|
|
48
|
+
MEDIUM: "medium",
|
|
49
|
+
};
|
|
40
50
|
export const SandboxNetworkAccess = {
|
|
41
51
|
ALL: "allow-all",
|
|
42
52
|
ALLOWLIST: "allowlist",
|
|
@@ -350,8 +350,11 @@ const _s = "smithy.ts.sdk.synthetic.wildix.wilma.agents";
|
|
|
350
350
|
const _sC = "speechConfigured";
|
|
351
351
|
const _sI = "skillIds";
|
|
352
352
|
const _sIn = "snapshotId";
|
|
353
|
+
const _sL = "searchLimit";
|
|
353
354
|
const _sM = "startMessage";
|
|
354
|
-
const
|
|
355
|
+
const _sS = "searchStrategy";
|
|
356
|
+
const _sT = "searchThreshold";
|
|
357
|
+
const _sTi = "silenceTimeout";
|
|
355
358
|
const _sV = "skillVersion";
|
|
356
359
|
const _sa = "sandbox";
|
|
357
360
|
const _se = "settings";
|
|
@@ -582,8 +585,8 @@ export var AgentInfo$ = [3, n2, _AI,
|
|
|
582
585
|
];
|
|
583
586
|
export var AgentKnowledgeBase$ = [3, n2, _AKB,
|
|
584
587
|
0,
|
|
585
|
-
[_kBI, _in, _ch, _an],
|
|
586
|
-
[0, 0, 64 | 0, () => AgentToolAnnotationsList]
|
|
588
|
+
[_kBI, _in, _sS, _sT, _sL, _ch, _an],
|
|
589
|
+
[0, 0, 0, 0, 1, 64 | 0, () => AgentToolAnnotationsList]
|
|
587
590
|
];
|
|
588
591
|
export var AgentSettings$ = [3, n2, _AS,
|
|
589
592
|
0,
|
|
@@ -602,8 +605,8 @@ export var AgentSqsEngine$ = [3, n2, _ASE,
|
|
|
602
605
|
];
|
|
603
606
|
export var AgentSuggestionsCapability$ = [3, n2, _ASC,
|
|
604
607
|
0,
|
|
605
|
-
[_n, _ch, _an],
|
|
606
|
-
[0, 64 | 0, () => AgentToolAnnotationsList]
|
|
608
|
+
[_n, _in, _ch, _an],
|
|
609
|
+
[0, 0, 64 | 0, () => AgentToolAnnotationsList]
|
|
607
610
|
];
|
|
608
611
|
export var AgentTool$ = [3, n2, _AT,
|
|
609
612
|
0,
|
|
@@ -1082,7 +1085,7 @@ export var VoiceCallerMetadataSettings$ = [3, n2, _VCMS,
|
|
|
1082
1085
|
];
|
|
1083
1086
|
export var VoiceChannelSettings$ = [3, n2, _VCS,
|
|
1084
1087
|
0,
|
|
1085
|
-
[_gr, _bS, _sp, _int,
|
|
1088
|
+
[_gr, _bS, _sp, _int, _sTi, _mD, _eC, _cM],
|
|
1086
1089
|
[0, () => VoiceBackgroundSoundSettings$, () => VoiceSpeechSettings$, () => VoiceInterruptionSettings$, () => VoiceSilenceTimeoutSettings$, () => VoiceMaxDurationSettings$, () => VoiceEndCallSettings$, () => VoiceCallerMetadataSettings$]
|
|
1087
1090
|
];
|
|
1088
1091
|
export var VoiceEndCallSettings$ = [3, n2, _VECS,
|
|
@@ -237,6 +237,9 @@ declare const CreateAgentCommand_base: {
|
|
|
237
237
|
* kb: { // AgentKnowledgeBase
|
|
238
238
|
* knowledgeBaseId: "STRING_VALUE",
|
|
239
239
|
* instructions: "STRING_VALUE",
|
|
240
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
241
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
242
|
+
* searchLimit: Number("int"),
|
|
240
243
|
* channels: [
|
|
241
244
|
* "voice" || "chat" || "assistant",
|
|
242
245
|
* ],
|
|
@@ -393,6 +396,7 @@ declare const CreateAgentCommand_base: {
|
|
|
393
396
|
* },
|
|
394
397
|
* suggestions: { // AgentSuggestionsCapability
|
|
395
398
|
* name: "STRING_VALUE",
|
|
399
|
+
* instructions: "STRING_VALUE",
|
|
396
400
|
* channels: "<AgentCapabilityChannelsList>",
|
|
397
401
|
* annotations: "<AgentToolAnnotationsList>",
|
|
398
402
|
* },
|
|
@@ -647,6 +651,9 @@ declare const CreateAgentCommand_base: {
|
|
|
647
651
|
* kb: {
|
|
648
652
|
* knowledgeBaseId: "STRING_VALUE",
|
|
649
653
|
* instructions: "STRING_VALUE",
|
|
654
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
655
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
656
|
+
* searchLimit: Number("int"),
|
|
650
657
|
* channels: "<AgentCapabilityChannelsList>",
|
|
651
658
|
* annotations: "<AgentToolAnnotationsList>",
|
|
652
659
|
* },
|
|
@@ -684,6 +691,7 @@ declare const CreateAgentCommand_base: {
|
|
|
684
691
|
* transfer: "<AgentTransferCapability>",
|
|
685
692
|
* suggestions: {
|
|
686
693
|
* name: "STRING_VALUE",
|
|
694
|
+
* instructions: "STRING_VALUE",
|
|
687
695
|
* channels: "<AgentCapabilityChannelsList>",
|
|
688
696
|
* annotations: "<AgentToolAnnotationsList>",
|
|
689
697
|
* },
|
|
@@ -1083,6 +1091,9 @@ declare const CreateAgentCommand_base: {
|
|
|
1083
1091
|
* // kb: { // AgentKnowledgeBase
|
|
1084
1092
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1085
1093
|
* // instructions: "STRING_VALUE",
|
|
1094
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1095
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1096
|
+
* // searchLimit: Number("int"),
|
|
1086
1097
|
* // channels: [
|
|
1087
1098
|
* // "voice" || "chat" || "assistant",
|
|
1088
1099
|
* // ],
|
|
@@ -1239,6 +1250,7 @@ declare const CreateAgentCommand_base: {
|
|
|
1239
1250
|
* // },
|
|
1240
1251
|
* // suggestions: { // AgentSuggestionsCapability
|
|
1241
1252
|
* // name: "STRING_VALUE",
|
|
1253
|
+
* // instructions: "STRING_VALUE",
|
|
1242
1254
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1243
1255
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1244
1256
|
* // },
|
|
@@ -1493,6 +1505,9 @@ declare const CreateAgentCommand_base: {
|
|
|
1493
1505
|
* // kb: {
|
|
1494
1506
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1495
1507
|
* // instructions: "STRING_VALUE",
|
|
1508
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1509
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1510
|
+
* // searchLimit: Number("int"),
|
|
1496
1511
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1497
1512
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1498
1513
|
* // },
|
|
@@ -1530,6 +1545,7 @@ declare const CreateAgentCommand_base: {
|
|
|
1530
1545
|
* // transfer: "<AgentTransferCapability>",
|
|
1531
1546
|
* // suggestions: {
|
|
1532
1547
|
* // name: "STRING_VALUE",
|
|
1548
|
+
* // instructions: "STRING_VALUE",
|
|
1533
1549
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1534
1550
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1535
1551
|
* // },
|
|
@@ -244,6 +244,9 @@ declare const GetAgentCommand_base: {
|
|
|
244
244
|
* // kb: { // AgentKnowledgeBase
|
|
245
245
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
246
246
|
* // instructions: "STRING_VALUE",
|
|
247
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
248
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
249
|
+
* // searchLimit: Number("int"),
|
|
247
250
|
* // channels: [
|
|
248
251
|
* // "voice" || "chat" || "assistant",
|
|
249
252
|
* // ],
|
|
@@ -400,6 +403,7 @@ declare const GetAgentCommand_base: {
|
|
|
400
403
|
* // },
|
|
401
404
|
* // suggestions: { // AgentSuggestionsCapability
|
|
402
405
|
* // name: "STRING_VALUE",
|
|
406
|
+
* // instructions: "STRING_VALUE",
|
|
403
407
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
404
408
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
405
409
|
* // },
|
|
@@ -654,6 +658,9 @@ declare const GetAgentCommand_base: {
|
|
|
654
658
|
* // kb: {
|
|
655
659
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
656
660
|
* // instructions: "STRING_VALUE",
|
|
661
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
662
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
663
|
+
* // searchLimit: Number("int"),
|
|
657
664
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
658
665
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
659
666
|
* // },
|
|
@@ -691,6 +698,7 @@ declare const GetAgentCommand_base: {
|
|
|
691
698
|
* // transfer: "<AgentTransferCapability>",
|
|
692
699
|
* // suggestions: {
|
|
693
700
|
* // name: "STRING_VALUE",
|
|
701
|
+
* // instructions: "STRING_VALUE",
|
|
694
702
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
695
703
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
696
704
|
* // },
|
|
@@ -251,6 +251,9 @@ declare const GetAgentVersionCommand_base: {
|
|
|
251
251
|
* // kb: { // AgentKnowledgeBase
|
|
252
252
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
253
253
|
* // instructions: "STRING_VALUE",
|
|
254
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
255
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
256
|
+
* // searchLimit: Number("int"),
|
|
254
257
|
* // channels: [
|
|
255
258
|
* // "voice" || "chat" || "assistant",
|
|
256
259
|
* // ],
|
|
@@ -407,6 +410,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
407
410
|
* // },
|
|
408
411
|
* // suggestions: { // AgentSuggestionsCapability
|
|
409
412
|
* // name: "STRING_VALUE",
|
|
413
|
+
* // instructions: "STRING_VALUE",
|
|
410
414
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
411
415
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
412
416
|
* // },
|
|
@@ -661,6 +665,9 @@ declare const GetAgentVersionCommand_base: {
|
|
|
661
665
|
* // kb: {
|
|
662
666
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
663
667
|
* // instructions: "STRING_VALUE",
|
|
668
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
669
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
670
|
+
* // searchLimit: Number("int"),
|
|
664
671
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
665
672
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
666
673
|
* // },
|
|
@@ -698,6 +705,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
698
705
|
* // transfer: "<AgentTransferCapability>",
|
|
699
706
|
* // suggestions: {
|
|
700
707
|
* // name: "STRING_VALUE",
|
|
708
|
+
* // instructions: "STRING_VALUE",
|
|
701
709
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
702
710
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
703
711
|
* // },
|
|
@@ -249,6 +249,9 @@ declare const ListAgentsCommand_base: {
|
|
|
249
249
|
* // kb: { // AgentKnowledgeBase
|
|
250
250
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
251
251
|
* // instructions: "STRING_VALUE",
|
|
252
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
253
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
254
|
+
* // searchLimit: Number("int"),
|
|
252
255
|
* // channels: [
|
|
253
256
|
* // "voice" || "chat" || "assistant",
|
|
254
257
|
* // ],
|
|
@@ -405,6 +408,7 @@ declare const ListAgentsCommand_base: {
|
|
|
405
408
|
* // },
|
|
406
409
|
* // suggestions: { // AgentSuggestionsCapability
|
|
407
410
|
* // name: "STRING_VALUE",
|
|
411
|
+
* // instructions: "STRING_VALUE",
|
|
408
412
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
409
413
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
410
414
|
* // },
|
|
@@ -659,6 +663,9 @@ declare const ListAgentsCommand_base: {
|
|
|
659
663
|
* // kb: {
|
|
660
664
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
661
665
|
* // instructions: "STRING_VALUE",
|
|
666
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
667
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
668
|
+
* // searchLimit: Number("int"),
|
|
662
669
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
663
670
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
664
671
|
* // },
|
|
@@ -696,6 +703,7 @@ declare const ListAgentsCommand_base: {
|
|
|
696
703
|
* // transfer: "<AgentTransferCapability>",
|
|
697
704
|
* // suggestions: {
|
|
698
705
|
* // name: "STRING_VALUE",
|
|
706
|
+
* // instructions: "STRING_VALUE",
|
|
699
707
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
700
708
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
701
709
|
* // },
|
|
@@ -253,6 +253,9 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
253
253
|
* // kb: { // AgentKnowledgeBase
|
|
254
254
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
255
255
|
* // instructions: "STRING_VALUE",
|
|
256
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
257
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
258
|
+
* // searchLimit: Number("int"),
|
|
256
259
|
* // channels: [
|
|
257
260
|
* // "voice" || "chat" || "assistant",
|
|
258
261
|
* // ],
|
|
@@ -409,6 +412,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
409
412
|
* // },
|
|
410
413
|
* // suggestions: { // AgentSuggestionsCapability
|
|
411
414
|
* // name: "STRING_VALUE",
|
|
415
|
+
* // instructions: "STRING_VALUE",
|
|
412
416
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
413
417
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
414
418
|
* // },
|
|
@@ -663,6 +667,9 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
663
667
|
* // kb: {
|
|
664
668
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
665
669
|
* // instructions: "STRING_VALUE",
|
|
670
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
671
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
672
|
+
* // searchLimit: Number("int"),
|
|
666
673
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
667
674
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
668
675
|
* // },
|
|
@@ -700,6 +707,7 @@ declare const PublishAgentVersionCommand_base: {
|
|
|
700
707
|
* // transfer: "<AgentTransferCapability>",
|
|
701
708
|
* // suggestions: {
|
|
702
709
|
* // name: "STRING_VALUE",
|
|
710
|
+
* // instructions: "STRING_VALUE",
|
|
703
711
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
704
712
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
705
713
|
* // },
|
|
@@ -246,6 +246,9 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
246
246
|
* // kb: { // AgentKnowledgeBase
|
|
247
247
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
248
248
|
* // instructions: "STRING_VALUE",
|
|
249
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
250
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
251
|
+
* // searchLimit: Number("int"),
|
|
249
252
|
* // channels: [
|
|
250
253
|
* // "voice" || "chat" || "assistant",
|
|
251
254
|
* // ],
|
|
@@ -402,6 +405,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
402
405
|
* // },
|
|
403
406
|
* // suggestions: { // AgentSuggestionsCapability
|
|
404
407
|
* // name: "STRING_VALUE",
|
|
408
|
+
* // instructions: "STRING_VALUE",
|
|
405
409
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
406
410
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
407
411
|
* // },
|
|
@@ -656,6 +660,9 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
656
660
|
* // kb: {
|
|
657
661
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
658
662
|
* // instructions: "STRING_VALUE",
|
|
663
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
664
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
665
|
+
* // searchLimit: Number("int"),
|
|
659
666
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
660
667
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
661
668
|
* // },
|
|
@@ -693,6 +700,7 @@ declare const RestoreAgentVersionToDraftCommand_base: {
|
|
|
693
700
|
* // transfer: "<AgentTransferCapability>",
|
|
694
701
|
* // suggestions: {
|
|
695
702
|
* // name: "STRING_VALUE",
|
|
703
|
+
* // instructions: "STRING_VALUE",
|
|
696
704
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
697
705
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
698
706
|
* // },
|
|
@@ -237,6 +237,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
237
237
|
* kb: { // AgentKnowledgeBase
|
|
238
238
|
* knowledgeBaseId: "STRING_VALUE",
|
|
239
239
|
* instructions: "STRING_VALUE",
|
|
240
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
241
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
242
|
+
* searchLimit: Number("int"),
|
|
240
243
|
* channels: [
|
|
241
244
|
* "voice" || "chat" || "assistant",
|
|
242
245
|
* ],
|
|
@@ -393,6 +396,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
393
396
|
* },
|
|
394
397
|
* suggestions: { // AgentSuggestionsCapability
|
|
395
398
|
* name: "STRING_VALUE",
|
|
399
|
+
* instructions: "STRING_VALUE",
|
|
396
400
|
* channels: "<AgentCapabilityChannelsList>",
|
|
397
401
|
* annotations: "<AgentToolAnnotationsList>",
|
|
398
402
|
* },
|
|
@@ -647,6 +651,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
647
651
|
* kb: {
|
|
648
652
|
* knowledgeBaseId: "STRING_VALUE",
|
|
649
653
|
* instructions: "STRING_VALUE",
|
|
654
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
655
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
656
|
+
* searchLimit: Number("int"),
|
|
650
657
|
* channels: "<AgentCapabilityChannelsList>",
|
|
651
658
|
* annotations: "<AgentToolAnnotationsList>",
|
|
652
659
|
* },
|
|
@@ -684,6 +691,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
684
691
|
* transfer: "<AgentTransferCapability>",
|
|
685
692
|
* suggestions: {
|
|
686
693
|
* name: "STRING_VALUE",
|
|
694
|
+
* instructions: "STRING_VALUE",
|
|
687
695
|
* channels: "<AgentCapabilityChannelsList>",
|
|
688
696
|
* annotations: "<AgentToolAnnotationsList>",
|
|
689
697
|
* },
|
|
@@ -1085,6 +1093,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
1085
1093
|
* // kb: { // AgentKnowledgeBase
|
|
1086
1094
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1087
1095
|
* // instructions: "STRING_VALUE",
|
|
1096
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1097
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1098
|
+
* // searchLimit: Number("int"),
|
|
1088
1099
|
* // channels: [
|
|
1089
1100
|
* // "voice" || "chat" || "assistant",
|
|
1090
1101
|
* // ],
|
|
@@ -1241,6 +1252,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1241
1252
|
* // },
|
|
1242
1253
|
* // suggestions: { // AgentSuggestionsCapability
|
|
1243
1254
|
* // name: "STRING_VALUE",
|
|
1255
|
+
* // instructions: "STRING_VALUE",
|
|
1244
1256
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1245
1257
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1246
1258
|
* // },
|
|
@@ -1495,6 +1507,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
1495
1507
|
* // kb: {
|
|
1496
1508
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1497
1509
|
* // instructions: "STRING_VALUE",
|
|
1510
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1511
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1512
|
+
* // searchLimit: Number("int"),
|
|
1498
1513
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1499
1514
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1500
1515
|
* // },
|
|
@@ -1532,6 +1547,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1532
1547
|
* // transfer: "<AgentTransferCapability>",
|
|
1533
1548
|
* // suggestions: {
|
|
1534
1549
|
* // name: "STRING_VALUE",
|
|
1550
|
+
* // instructions: "STRING_VALUE",
|
|
1535
1551
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1536
1552
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1537
1553
|
* // },
|
|
@@ -161,6 +161,41 @@ export declare const AgentHangupPipelineType: {
|
|
|
161
161
|
* @public
|
|
162
162
|
*/
|
|
163
163
|
export type AgentHangupPipelineType = (typeof AgentHangupPipelineType)[keyof typeof AgentHangupPipelineType];
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
* @enum
|
|
167
|
+
*/
|
|
168
|
+
export declare const KnowledgeBaseSearchStrategy: {
|
|
169
|
+
/**
|
|
170
|
+
* Full-text keyword search. Suits corpora callers address by exact product name, code or error string.
|
|
171
|
+
*/
|
|
172
|
+
readonly BM25: "bm25";
|
|
173
|
+
/**
|
|
174
|
+
* Both, combined. The service default and the right answer for most agents.
|
|
175
|
+
*/
|
|
176
|
+
readonly HYBRID: "hybrid";
|
|
177
|
+
/**
|
|
178
|
+
* Semantic similarity over embeddings. Suits callers who paraphrase rather than quote.
|
|
179
|
+
*/
|
|
180
|
+
readonly VECTOR: "vector";
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
export type KnowledgeBaseSearchStrategy = (typeof KnowledgeBaseSearchStrategy)[keyof typeof KnowledgeBaseSearchStrategy];
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
* @enum
|
|
189
|
+
*/
|
|
190
|
+
export declare const KnowledgeBaseSearchThreshold: {
|
|
191
|
+
readonly HIGH: "high";
|
|
192
|
+
readonly LOW: "low";
|
|
193
|
+
readonly MEDIUM: "medium";
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
export type KnowledgeBaseSearchThreshold = (typeof KnowledgeBaseSearchThreshold)[keyof typeof KnowledgeBaseSearchThreshold];
|
|
164
199
|
/**
|
|
165
200
|
* @public
|
|
166
201
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { ActorType, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, SandboxNetworkAccess, SandboxSize, VoicePronunciationEncoding, WebSearchContextSize } from "./enums";
|
|
2
|
+
import type { ActorType, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, KnowledgeBaseSearchStrategy, KnowledgeBaseSearchThreshold, SandboxNetworkAccess, SandboxSize, VoicePronunciationEncoding, WebSearchContextSize } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A user or group that access is granted to.
|
|
5
5
|
* @public
|
|
@@ -975,6 +975,21 @@ export interface AgentKnowledgeBase {
|
|
|
975
975
|
* @public
|
|
976
976
|
*/
|
|
977
977
|
instructions?: string | undefined;
|
|
978
|
+
/**
|
|
979
|
+
* Search algorithm used for this capability. Defaults to the knowledge base service's own default (`hybrid`) when omitted.
|
|
980
|
+
* @public
|
|
981
|
+
*/
|
|
982
|
+
searchStrategy?: KnowledgeBaseSearchStrategy | undefined;
|
|
983
|
+
/**
|
|
984
|
+
* Minimum similarity a passage needs to be returned by this capability. Defaults to the knowledge base service's own default (`medium`) when omitted. Worth raising on voice, where an off-target passage is spoken aloud.
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
searchThreshold?: KnowledgeBaseSearchThreshold | undefined;
|
|
988
|
+
/**
|
|
989
|
+
* Maximum number of passages this capability returns. Defaults to the knowledge base service's own default (10) when omitted. Keep it low on voice: every passage is prompt the model reads before it can speak.
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
992
|
+
searchLimit?: number | undefined;
|
|
978
993
|
/**
|
|
979
994
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
980
995
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -1086,6 +1101,20 @@ export interface AgentSuggestionsCapability {
|
|
|
1086
1101
|
* @public
|
|
1087
1102
|
*/
|
|
1088
1103
|
name?: string | undefined;
|
|
1104
|
+
/**
|
|
1105
|
+
* Steers what the suggestions say. Appended to the platform's own generation prompt rather than
|
|
1106
|
+
* replacing it, so the shape of a suggestion — short, tappable, a plausible next thing to send —
|
|
1107
|
+
* stays the platform's to keep, and this narrows the subject: 'offer a callback and a link to the
|
|
1108
|
+
* status page, never a discount'.
|
|
1109
|
+
*
|
|
1110
|
+
* NOT a tool description, unlike the `description` every other capability carries: suggestions are
|
|
1111
|
+
* not a tool the model chooses to call. They are generated from a reply that has already been
|
|
1112
|
+
* written, so there is no decision to describe — only the generation to steer.
|
|
1113
|
+
*
|
|
1114
|
+
* Absent means the platform's prompt alone.
|
|
1115
|
+
* @public
|
|
1116
|
+
*/
|
|
1117
|
+
instructions?: string | undefined;
|
|
1089
1118
|
/**
|
|
1090
1119
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1091
1120
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-agents-client",
|
|
3
3
|
"description": "@wildix/wilma-agents-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.38",
|
|
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",
|