@wildix/wilma-agents-client 1.0.39 → 1.0.40
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 +1 -11
- package/dist-cjs/schemas/schemas_0.js +35 -25
- package/dist-es/models/enums.js +0 -10
- package/dist-es/schemas/schemas_0.js +31 -21
- package/dist-types/commands/CreateAgentCommand.d.ts +66 -16
- package/dist-types/commands/GetAgentCommand.d.ts +33 -8
- package/dist-types/commands/GetAgentVersionCommand.d.ts +33 -8
- package/dist-types/commands/ListAgentsCommand.d.ts +33 -8
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +33 -8
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +33 -8
- package/dist-types/commands/UpdateAgentCommand.d.ts +66 -16
- package/dist-types/models/enums.d.ts +0 -35
- package/dist-types/models/models_0.d.ts +49 -34
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
|
@@ -79,6 +79,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
79
79
|
* action: { // VoiceTerminateAction Union: only one key present
|
|
80
80
|
* hangup: { // VoiceTerminateHangupAction
|
|
81
81
|
* message: "STRING_VALUE",
|
|
82
|
+
* messages: [ // AgentSpokenPhraseList
|
|
83
|
+
* { // AgentSpokenPhrase
|
|
84
|
+
* language: "STRING_VALUE", // required
|
|
85
|
+
* text: "STRING_VALUE", // required
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
82
88
|
* },
|
|
83
89
|
* transfer: { // VoiceTransferTarget
|
|
84
90
|
* name: "STRING_VALUE", // required
|
|
@@ -93,6 +99,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
93
99
|
* action: {// Union: only one key present
|
|
94
100
|
* hangup: {
|
|
95
101
|
* message: "STRING_VALUE",
|
|
102
|
+
* messages: [
|
|
103
|
+
* {
|
|
104
|
+
* language: "STRING_VALUE", // required
|
|
105
|
+
* text: "STRING_VALUE", // required
|
|
106
|
+
* },
|
|
107
|
+
* ],
|
|
96
108
|
* },
|
|
97
109
|
* transfer: {
|
|
98
110
|
* name: "STRING_VALUE", // required
|
|
@@ -177,6 +189,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
177
189
|
* },
|
|
178
190
|
* ],
|
|
179
191
|
* startMessage: "STRING_VALUE",
|
|
192
|
+
* startMessages: [
|
|
193
|
+
* {
|
|
194
|
+
* language: "STRING_VALUE", // required
|
|
195
|
+
* text: "STRING_VALUE", // required
|
|
196
|
+
* },
|
|
197
|
+
* ],
|
|
180
198
|
* pipeline: { // AgentToolPipeline
|
|
181
199
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
182
200
|
* instructions: "STRING_VALUE",
|
|
@@ -207,6 +225,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
207
225
|
* connector: { // AgentConnectorCapability
|
|
208
226
|
* id: "STRING_VALUE", // required
|
|
209
227
|
* startMessage: "STRING_VALUE",
|
|
228
|
+
* startMessages: [
|
|
229
|
+
* {
|
|
230
|
+
* language: "STRING_VALUE", // required
|
|
231
|
+
* text: "STRING_VALUE", // required
|
|
232
|
+
* },
|
|
233
|
+
* ],
|
|
210
234
|
* pipeline: {
|
|
211
235
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
212
236
|
* instructions: "STRING_VALUE",
|
|
@@ -237,9 +261,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
237
261
|
* kb: { // AgentKnowledgeBase
|
|
238
262
|
* knowledgeBaseId: "STRING_VALUE",
|
|
239
263
|
* instructions: "STRING_VALUE",
|
|
240
|
-
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
241
|
-
* searchThreshold: "low" || "medium" || "high",
|
|
242
|
-
* searchLimit: Number("int"),
|
|
243
264
|
* channels: [
|
|
244
265
|
* "voice" || "chat" || "assistant",
|
|
245
266
|
* ],
|
|
@@ -396,7 +417,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
396
417
|
* },
|
|
397
418
|
* suggestions: { // AgentSuggestionsCapability
|
|
398
419
|
* name: "STRING_VALUE",
|
|
399
|
-
* instructions: "STRING_VALUE",
|
|
400
420
|
* channels: "<AgentCapabilityChannelsList>",
|
|
401
421
|
* annotations: "<AgentToolAnnotationsList>",
|
|
402
422
|
* },
|
|
@@ -414,6 +434,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
414
434
|
* name: "STRING_VALUE",
|
|
415
435
|
* description: "STRING_VALUE",
|
|
416
436
|
* message: "STRING_VALUE",
|
|
437
|
+
* messages: [
|
|
438
|
+
* {
|
|
439
|
+
* language: "STRING_VALUE", // required
|
|
440
|
+
* text: "STRING_VALUE", // required
|
|
441
|
+
* },
|
|
442
|
+
* ],
|
|
417
443
|
* channels: "<AgentCapabilityChannelsList>",
|
|
418
444
|
* annotations: "<AgentToolAnnotationsList>",
|
|
419
445
|
* },
|
|
@@ -472,6 +498,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
472
498
|
* },
|
|
473
499
|
* ],
|
|
474
500
|
* startMessage: "STRING_VALUE",
|
|
501
|
+
* startMessages: "<AgentSpokenPhraseList>",
|
|
475
502
|
* pipeline: {
|
|
476
503
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
477
504
|
* instructions: "STRING_VALUE",
|
|
@@ -485,6 +512,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
485
512
|
* connector: {
|
|
486
513
|
* id: "STRING_VALUE", // required
|
|
487
514
|
* startMessage: "STRING_VALUE",
|
|
515
|
+
* startMessages: "<AgentSpokenPhraseList>",
|
|
488
516
|
* pipeline: {
|
|
489
517
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
490
518
|
* instructions: "STRING_VALUE",
|
|
@@ -573,6 +601,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
573
601
|
* name: "STRING_VALUE",
|
|
574
602
|
* description: "STRING_VALUE",
|
|
575
603
|
* message: "STRING_VALUE",
|
|
604
|
+
* messages: "<AgentSpokenPhraseList>",
|
|
576
605
|
* channels: "<AgentCapabilityChannelsList>",
|
|
577
606
|
* annotations: "<AgentToolAnnotationsList>",
|
|
578
607
|
* },
|
|
@@ -651,9 +680,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
651
680
|
* kb: {
|
|
652
681
|
* knowledgeBaseId: "STRING_VALUE",
|
|
653
682
|
* instructions: "STRING_VALUE",
|
|
654
|
-
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
655
|
-
* searchThreshold: "low" || "medium" || "high",
|
|
656
|
-
* searchLimit: Number("int"),
|
|
657
683
|
* channels: "<AgentCapabilityChannelsList>",
|
|
658
684
|
* annotations: "<AgentToolAnnotationsList>",
|
|
659
685
|
* },
|
|
@@ -691,7 +717,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
691
717
|
* transfer: "<AgentTransferCapability>",
|
|
692
718
|
* suggestions: {
|
|
693
719
|
* name: "STRING_VALUE",
|
|
694
|
-
* instructions: "STRING_VALUE",
|
|
695
720
|
* channels: "<AgentCapabilityChannelsList>",
|
|
696
721
|
* annotations: "<AgentToolAnnotationsList>",
|
|
697
722
|
* },
|
|
@@ -935,6 +960,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
935
960
|
* // action: { // VoiceTerminateAction Union: only one key present
|
|
936
961
|
* // hangup: { // VoiceTerminateHangupAction
|
|
937
962
|
* // message: "STRING_VALUE",
|
|
963
|
+
* // messages: [ // AgentSpokenPhraseList
|
|
964
|
+
* // { // AgentSpokenPhrase
|
|
965
|
+
* // language: "STRING_VALUE", // required
|
|
966
|
+
* // text: "STRING_VALUE", // required
|
|
967
|
+
* // },
|
|
968
|
+
* // ],
|
|
938
969
|
* // },
|
|
939
970
|
* // transfer: { // VoiceTransferTarget
|
|
940
971
|
* // name: "STRING_VALUE", // required
|
|
@@ -949,6 +980,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
949
980
|
* // action: {// Union: only one key present
|
|
950
981
|
* // hangup: {
|
|
951
982
|
* // message: "STRING_VALUE",
|
|
983
|
+
* // messages: [
|
|
984
|
+
* // {
|
|
985
|
+
* // language: "STRING_VALUE", // required
|
|
986
|
+
* // text: "STRING_VALUE", // required
|
|
987
|
+
* // },
|
|
988
|
+
* // ],
|
|
952
989
|
* // },
|
|
953
990
|
* // transfer: {
|
|
954
991
|
* // name: "STRING_VALUE", // required
|
|
@@ -1033,6 +1070,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1033
1070
|
* // },
|
|
1034
1071
|
* // ],
|
|
1035
1072
|
* // startMessage: "STRING_VALUE",
|
|
1073
|
+
* // startMessages: [
|
|
1074
|
+
* // {
|
|
1075
|
+
* // language: "STRING_VALUE", // required
|
|
1076
|
+
* // text: "STRING_VALUE", // required
|
|
1077
|
+
* // },
|
|
1078
|
+
* // ],
|
|
1036
1079
|
* // pipeline: { // AgentToolPipeline
|
|
1037
1080
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1038
1081
|
* // instructions: "STRING_VALUE",
|
|
@@ -1063,6 +1106,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1063
1106
|
* // connector: { // AgentConnectorCapability
|
|
1064
1107
|
* // id: "STRING_VALUE", // required
|
|
1065
1108
|
* // startMessage: "STRING_VALUE",
|
|
1109
|
+
* // startMessages: [
|
|
1110
|
+
* // {
|
|
1111
|
+
* // language: "STRING_VALUE", // required
|
|
1112
|
+
* // text: "STRING_VALUE", // required
|
|
1113
|
+
* // },
|
|
1114
|
+
* // ],
|
|
1066
1115
|
* // pipeline: {
|
|
1067
1116
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1068
1117
|
* // instructions: "STRING_VALUE",
|
|
@@ -1093,9 +1142,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
1093
1142
|
* // kb: { // AgentKnowledgeBase
|
|
1094
1143
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1095
1144
|
* // instructions: "STRING_VALUE",
|
|
1096
|
-
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1097
|
-
* // searchThreshold: "low" || "medium" || "high",
|
|
1098
|
-
* // searchLimit: Number("int"),
|
|
1099
1145
|
* // channels: [
|
|
1100
1146
|
* // "voice" || "chat" || "assistant",
|
|
1101
1147
|
* // ],
|
|
@@ -1252,7 +1298,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
1252
1298
|
* // },
|
|
1253
1299
|
* // suggestions: { // AgentSuggestionsCapability
|
|
1254
1300
|
* // name: "STRING_VALUE",
|
|
1255
|
-
* // instructions: "STRING_VALUE",
|
|
1256
1301
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1257
1302
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1258
1303
|
* // },
|
|
@@ -1270,6 +1315,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1270
1315
|
* // name: "STRING_VALUE",
|
|
1271
1316
|
* // description: "STRING_VALUE",
|
|
1272
1317
|
* // message: "STRING_VALUE",
|
|
1318
|
+
* // messages: [
|
|
1319
|
+
* // {
|
|
1320
|
+
* // language: "STRING_VALUE", // required
|
|
1321
|
+
* // text: "STRING_VALUE", // required
|
|
1322
|
+
* // },
|
|
1323
|
+
* // ],
|
|
1273
1324
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1274
1325
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1275
1326
|
* // },
|
|
@@ -1328,6 +1379,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1328
1379
|
* // },
|
|
1329
1380
|
* // ],
|
|
1330
1381
|
* // startMessage: "STRING_VALUE",
|
|
1382
|
+
* // startMessages: "<AgentSpokenPhraseList>",
|
|
1331
1383
|
* // pipeline: {
|
|
1332
1384
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1333
1385
|
* // instructions: "STRING_VALUE",
|
|
@@ -1341,6 +1393,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1341
1393
|
* // connector: {
|
|
1342
1394
|
* // id: "STRING_VALUE", // required
|
|
1343
1395
|
* // startMessage: "STRING_VALUE",
|
|
1396
|
+
* // startMessages: "<AgentSpokenPhraseList>",
|
|
1344
1397
|
* // pipeline: {
|
|
1345
1398
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1346
1399
|
* // instructions: "STRING_VALUE",
|
|
@@ -1429,6 +1482,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1429
1482
|
* // name: "STRING_VALUE",
|
|
1430
1483
|
* // description: "STRING_VALUE",
|
|
1431
1484
|
* // message: "STRING_VALUE",
|
|
1485
|
+
* // messages: "<AgentSpokenPhraseList>",
|
|
1432
1486
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1433
1487
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1434
1488
|
* // },
|
|
@@ -1507,9 +1561,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
1507
1561
|
* // kb: {
|
|
1508
1562
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1509
1563
|
* // instructions: "STRING_VALUE",
|
|
1510
|
-
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1511
|
-
* // searchThreshold: "low" || "medium" || "high",
|
|
1512
|
-
* // searchLimit: Number("int"),
|
|
1513
1564
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1514
1565
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1515
1566
|
* // },
|
|
@@ -1547,7 +1598,6 @@ declare const UpdateAgentCommand_base: {
|
|
|
1547
1598
|
* // transfer: "<AgentTransferCapability>",
|
|
1548
1599
|
* // suggestions: {
|
|
1549
1600
|
* // name: "STRING_VALUE",
|
|
1550
|
-
* // instructions: "STRING_VALUE",
|
|
1551
1601
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1552
1602
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1553
1603
|
* // },
|
|
@@ -161,41 +161,6 @@ 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];
|
|
199
164
|
/**
|
|
200
165
|
* @public
|
|
201
166
|
* @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,
|
|
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";
|
|
3
3
|
/**
|
|
4
4
|
* A user or group that access is granted to.
|
|
5
5
|
* @public
|
|
@@ -220,15 +220,40 @@ export interface VoiceInterruptionSettings {
|
|
|
220
220
|
*/
|
|
221
221
|
minWords?: number | undefined;
|
|
222
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* One phrase in one language, for a capability that speaks a fixed line on the voice channel.
|
|
225
|
+
* Which entry is spoken is decided by the call's current language — the one the call resolved
|
|
226
|
+
* to at connect, or the one automatic detection switched to — matched on `language`.
|
|
227
|
+
* Blank `text` means the agent says nothing in that language; it does NOT fall back to the
|
|
228
|
+
* language-agnostic member beside the list, which would speak one language's text in another
|
|
229
|
+
* language's voice.
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
export interface AgentSpokenPhrase {
|
|
233
|
+
/**
|
|
234
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
235
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
236
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
237
|
+
* when the model was released.
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
language: string;
|
|
241
|
+
text: string;
|
|
242
|
+
}
|
|
223
243
|
/**
|
|
224
244
|
* @public
|
|
225
245
|
*/
|
|
226
246
|
export interface VoiceTerminateHangupAction {
|
|
227
247
|
/**
|
|
228
|
-
* Message played before hanging up.
|
|
248
|
+
* Message played before hanging up. Played in every language of the call while `messages` is absent or empty; not consulted once `messages` carries any entry.
|
|
229
249
|
* @public
|
|
230
250
|
*/
|
|
231
251
|
message?: string | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* Per-language messages played before hanging up. Same rule as `AgentTool.startMessages`: the entry for the call's current language is played, a language with no entry is silent, and with no effective speech configuration `message` is played.
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
messages?: AgentSpokenPhrase[] | undefined;
|
|
232
257
|
}
|
|
233
258
|
/**
|
|
234
259
|
* @public
|
|
@@ -815,10 +840,15 @@ export interface AgentConnectorCapability {
|
|
|
815
840
|
*/
|
|
816
841
|
id: string;
|
|
817
842
|
/**
|
|
818
|
-
* Message spoken when a connector action call starts. Honoured on the voice channel. Mirrors `AgentTool.startMessage`. Not applied to the read-only `help` action.
|
|
843
|
+
* Message spoken when a connector action call starts. Honoured on the voice channel. Mirrors `AgentTool.startMessage`. Not applied to the read-only `help` action. Not consulted once `startMessages` carries any entry.
|
|
819
844
|
* @public
|
|
820
845
|
*/
|
|
821
846
|
startMessage?: string | undefined;
|
|
847
|
+
/**
|
|
848
|
+
* Mirrors `AgentTool.startMessages`. Stored for contract symmetry; the voice runtime does not read connector start messages yet (wilma-services docs/todo.md item 8).
|
|
849
|
+
* @public
|
|
850
|
+
*/
|
|
851
|
+
startMessages?: AgentSpokenPhrase[] | undefined;
|
|
822
852
|
/**
|
|
823
853
|
* How the model waits for a connector action and whether it synthesizes a reply from the result. The `help` action carries no pipeline.
|
|
824
854
|
* @public
|
|
@@ -975,21 +1005,6 @@ export interface AgentKnowledgeBase {
|
|
|
975
1005
|
* @public
|
|
976
1006
|
*/
|
|
977
1007
|
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;
|
|
993
1008
|
/**
|
|
994
1009
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
995
1010
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -1101,20 +1116,6 @@ export interface AgentSuggestionsCapability {
|
|
|
1101
1116
|
* @public
|
|
1102
1117
|
*/
|
|
1103
1118
|
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;
|
|
1118
1119
|
/**
|
|
1119
1120
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1120
1121
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -1219,10 +1220,19 @@ export interface AgentTool {
|
|
|
1219
1220
|
*/
|
|
1220
1221
|
fields?: AgentToolField[] | undefined;
|
|
1221
1222
|
/**
|
|
1222
|
-
* Message spoken when the tool call starts. Honoured on the voice channel.
|
|
1223
|
+
* Message spoken when the tool call starts. Honoured on the voice channel. Spoken in every language of the call while `startMessages` is absent or empty; not consulted once `startMessages` carries any entry.
|
|
1223
1224
|
* @public
|
|
1224
1225
|
*/
|
|
1225
1226
|
startMessage?: string | undefined;
|
|
1227
|
+
/**
|
|
1228
|
+
* Per-language start messages. When present and non-empty, the entry for the call's current
|
|
1229
|
+
* language is spoken and `startMessage` is not consulted; a language with no entry is silent.
|
|
1230
|
+
* When absent or empty, `startMessage` is spoken as before. On a call with no effective speech
|
|
1231
|
+
* configuration — no configured languages, or a PBX below protocol 2 — `startMessage` is spoken
|
|
1232
|
+
* regardless, because there is no current language to choose by.
|
|
1233
|
+
* @public
|
|
1234
|
+
*/
|
|
1235
|
+
startMessages?: AgentSpokenPhrase[] | undefined;
|
|
1226
1236
|
/**
|
|
1227
1237
|
* How the model waits for the tool and whether it synthesizes a reply from the result.
|
|
1228
1238
|
* @public
|
|
@@ -1305,10 +1315,15 @@ export interface AgentWaitCapability {
|
|
|
1305
1315
|
*/
|
|
1306
1316
|
description?: string | undefined;
|
|
1307
1317
|
/**
|
|
1308
|
-
* Message spoken when entering the wait state.
|
|
1318
|
+
* Message spoken when entering the wait state. Spoken in every language of the call while `messages` is absent or empty; not consulted once `messages` carries any entry.
|
|
1309
1319
|
* @public
|
|
1310
1320
|
*/
|
|
1311
1321
|
message?: string | undefined;
|
|
1322
|
+
/**
|
|
1323
|
+
* Per-language wait messages. Same rule as `AgentTool.startMessages`: the entry for the call's current language is spoken, a language with no entry is silent, and with no effective speech configuration `message` is spoken.
|
|
1324
|
+
* @public
|
|
1325
|
+
*/
|
|
1326
|
+
messages?: AgentSpokenPhrase[] | undefined;
|
|
1312
1327
|
/**
|
|
1313
1328
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1314
1329
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -39,6 +39,7 @@ export declare var AgentInfo$: StaticStructureSchema;
|
|
|
39
39
|
export declare var AgentKnowledgeBase$: StaticStructureSchema;
|
|
40
40
|
export declare var AgentSettings$: StaticStructureSchema;
|
|
41
41
|
export declare var AgentSnapshotSandboxOptions$: StaticStructureSchema;
|
|
42
|
+
export declare var AgentSpokenPhrase$: StaticStructureSchema;
|
|
42
43
|
export declare var AgentSqsEngine$: StaticStructureSchema;
|
|
43
44
|
export declare var AgentSuggestionsCapability$: StaticStructureSchema;
|
|
44
45
|
export declare var AgentTool$: StaticStructureSchema;
|
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.40",
|
|
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",
|