@wildix/wilma-agents-client 1.0.43 → 1.0.45
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 +38 -22
- package/dist-es/models/enums.js +10 -0
- package/dist-es/schemas/schemas_0.js +34 -18
- package/dist-types/commands/CreateAgentCommand.d.ts +82 -0
- package/dist-types/commands/GetAgentCommand.d.ts +41 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +41 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +41 -0
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +41 -0
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +41 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +82 -0
- package/dist-types/models/enums.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +79 -5
- 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
|
|
@@ -194,6 +206,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
194
206
|
* },
|
|
195
207
|
* ],
|
|
196
208
|
* startMessage: "STRING_VALUE",
|
|
209
|
+
* startMessages: [
|
|
210
|
+
* {
|
|
211
|
+
* language: "STRING_VALUE", // required
|
|
212
|
+
* text: "STRING_VALUE", // required
|
|
213
|
+
* },
|
|
214
|
+
* ],
|
|
197
215
|
* pipeline: { // AgentToolPipeline
|
|
198
216
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
199
217
|
* instructions: "STRING_VALUE",
|
|
@@ -224,6 +242,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
224
242
|
* connector: { // AgentConnectorCapability
|
|
225
243
|
* id: "STRING_VALUE", // required
|
|
226
244
|
* startMessage: "STRING_VALUE",
|
|
245
|
+
* startMessages: [
|
|
246
|
+
* {
|
|
247
|
+
* language: "STRING_VALUE", // required
|
|
248
|
+
* text: "STRING_VALUE", // required
|
|
249
|
+
* },
|
|
250
|
+
* ],
|
|
227
251
|
* pipeline: {
|
|
228
252
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
229
253
|
* instructions: "STRING_VALUE",
|
|
@@ -254,6 +278,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
254
278
|
* kb: { // AgentKnowledgeBase
|
|
255
279
|
* knowledgeBaseId: "STRING_VALUE",
|
|
256
280
|
* instructions: "STRING_VALUE",
|
|
281
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
282
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
283
|
+
* searchLimit: Number("int"),
|
|
257
284
|
* channels: [
|
|
258
285
|
* "voice" || "chat" || "assistant",
|
|
259
286
|
* ],
|
|
@@ -410,6 +437,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
410
437
|
* },
|
|
411
438
|
* suggestions: { // AgentSuggestionsCapability
|
|
412
439
|
* name: "STRING_VALUE",
|
|
440
|
+
* instructions: "STRING_VALUE",
|
|
413
441
|
* channels: "<AgentCapabilityChannelsList>",
|
|
414
442
|
* annotations: "<AgentToolAnnotationsList>",
|
|
415
443
|
* },
|
|
@@ -427,6 +455,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
427
455
|
* name: "STRING_VALUE",
|
|
428
456
|
* description: "STRING_VALUE",
|
|
429
457
|
* message: "STRING_VALUE",
|
|
458
|
+
* messages: [
|
|
459
|
+
* {
|
|
460
|
+
* language: "STRING_VALUE", // required
|
|
461
|
+
* text: "STRING_VALUE", // required
|
|
462
|
+
* },
|
|
463
|
+
* ],
|
|
430
464
|
* channels: "<AgentCapabilityChannelsList>",
|
|
431
465
|
* annotations: "<AgentToolAnnotationsList>",
|
|
432
466
|
* },
|
|
@@ -485,6 +519,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
485
519
|
* },
|
|
486
520
|
* ],
|
|
487
521
|
* startMessage: "STRING_VALUE",
|
|
522
|
+
* startMessages: "<AgentSpokenPhraseList>",
|
|
488
523
|
* pipeline: {
|
|
489
524
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
490
525
|
* instructions: "STRING_VALUE",
|
|
@@ -498,6 +533,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
498
533
|
* connector: {
|
|
499
534
|
* id: "STRING_VALUE", // required
|
|
500
535
|
* startMessage: "STRING_VALUE",
|
|
536
|
+
* startMessages: "<AgentSpokenPhraseList>",
|
|
501
537
|
* pipeline: {
|
|
502
538
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
503
539
|
* instructions: "STRING_VALUE",
|
|
@@ -586,6 +622,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
586
622
|
* name: "STRING_VALUE",
|
|
587
623
|
* description: "STRING_VALUE",
|
|
588
624
|
* message: "STRING_VALUE",
|
|
625
|
+
* messages: "<AgentSpokenPhraseList>",
|
|
589
626
|
* channels: "<AgentCapabilityChannelsList>",
|
|
590
627
|
* annotations: "<AgentToolAnnotationsList>",
|
|
591
628
|
* },
|
|
@@ -664,6 +701,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
664
701
|
* kb: {
|
|
665
702
|
* knowledgeBaseId: "STRING_VALUE",
|
|
666
703
|
* instructions: "STRING_VALUE",
|
|
704
|
+
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
705
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
706
|
+
* searchLimit: Number("int"),
|
|
667
707
|
* channels: "<AgentCapabilityChannelsList>",
|
|
668
708
|
* annotations: "<AgentToolAnnotationsList>",
|
|
669
709
|
* },
|
|
@@ -701,6 +741,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
701
741
|
* transfer: "<AgentTransferCapability>",
|
|
702
742
|
* suggestions: {
|
|
703
743
|
* name: "STRING_VALUE",
|
|
744
|
+
* instructions: "STRING_VALUE",
|
|
704
745
|
* channels: "<AgentCapabilityChannelsList>",
|
|
705
746
|
* annotations: "<AgentToolAnnotationsList>",
|
|
706
747
|
* },
|
|
@@ -944,6 +985,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
944
985
|
* // action: { // VoiceTerminateAction Union: only one key present
|
|
945
986
|
* // hangup: { // VoiceTerminateHangupAction
|
|
946
987
|
* // message: "STRING_VALUE",
|
|
988
|
+
* // messages: [ // AgentSpokenPhraseList
|
|
989
|
+
* // { // AgentSpokenPhrase
|
|
990
|
+
* // language: "STRING_VALUE", // required
|
|
991
|
+
* // text: "STRING_VALUE", // required
|
|
992
|
+
* // },
|
|
993
|
+
* // ],
|
|
947
994
|
* // },
|
|
948
995
|
* // transfer: { // VoiceTransferTarget
|
|
949
996
|
* // name: "STRING_VALUE", // required
|
|
@@ -958,6 +1005,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
958
1005
|
* // action: {// Union: only one key present
|
|
959
1006
|
* // hangup: {
|
|
960
1007
|
* // message: "STRING_VALUE",
|
|
1008
|
+
* // messages: [
|
|
1009
|
+
* // {
|
|
1010
|
+
* // language: "STRING_VALUE", // required
|
|
1011
|
+
* // text: "STRING_VALUE", // required
|
|
1012
|
+
* // },
|
|
1013
|
+
* // ],
|
|
961
1014
|
* // },
|
|
962
1015
|
* // transfer: {
|
|
963
1016
|
* // name: "STRING_VALUE", // required
|
|
@@ -1059,6 +1112,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1059
1112
|
* // },
|
|
1060
1113
|
* // ],
|
|
1061
1114
|
* // startMessage: "STRING_VALUE",
|
|
1115
|
+
* // startMessages: [
|
|
1116
|
+
* // {
|
|
1117
|
+
* // language: "STRING_VALUE", // required
|
|
1118
|
+
* // text: "STRING_VALUE", // required
|
|
1119
|
+
* // },
|
|
1120
|
+
* // ],
|
|
1062
1121
|
* // pipeline: { // AgentToolPipeline
|
|
1063
1122
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1064
1123
|
* // instructions: "STRING_VALUE",
|
|
@@ -1089,6 +1148,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1089
1148
|
* // connector: { // AgentConnectorCapability
|
|
1090
1149
|
* // id: "STRING_VALUE", // required
|
|
1091
1150
|
* // startMessage: "STRING_VALUE",
|
|
1151
|
+
* // startMessages: [
|
|
1152
|
+
* // {
|
|
1153
|
+
* // language: "STRING_VALUE", // required
|
|
1154
|
+
* // text: "STRING_VALUE", // required
|
|
1155
|
+
* // },
|
|
1156
|
+
* // ],
|
|
1092
1157
|
* // pipeline: {
|
|
1093
1158
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1094
1159
|
* // instructions: "STRING_VALUE",
|
|
@@ -1119,6 +1184,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
1119
1184
|
* // kb: { // AgentKnowledgeBase
|
|
1120
1185
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1121
1186
|
* // instructions: "STRING_VALUE",
|
|
1187
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1188
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1189
|
+
* // searchLimit: Number("int"),
|
|
1122
1190
|
* // channels: [
|
|
1123
1191
|
* // "voice" || "chat" || "assistant",
|
|
1124
1192
|
* // ],
|
|
@@ -1275,6 +1343,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1275
1343
|
* // },
|
|
1276
1344
|
* // suggestions: { // AgentSuggestionsCapability
|
|
1277
1345
|
* // name: "STRING_VALUE",
|
|
1346
|
+
* // instructions: "STRING_VALUE",
|
|
1278
1347
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1279
1348
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1280
1349
|
* // },
|
|
@@ -1292,6 +1361,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
1292
1361
|
* // name: "STRING_VALUE",
|
|
1293
1362
|
* // description: "STRING_VALUE",
|
|
1294
1363
|
* // message: "STRING_VALUE",
|
|
1364
|
+
* // messages: [
|
|
1365
|
+
* // {
|
|
1366
|
+
* // language: "STRING_VALUE", // required
|
|
1367
|
+
* // text: "STRING_VALUE", // required
|
|
1368
|
+
* // },
|
|
1369
|
+
* // ],
|
|
1295
1370
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1296
1371
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1297
1372
|
* // },
|
|
@@ -1350,6 +1425,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1350
1425
|
* // },
|
|
1351
1426
|
* // ],
|
|
1352
1427
|
* // startMessage: "STRING_VALUE",
|
|
1428
|
+
* // startMessages: "<AgentSpokenPhraseList>",
|
|
1353
1429
|
* // pipeline: {
|
|
1354
1430
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1355
1431
|
* // instructions: "STRING_VALUE",
|
|
@@ -1363,6 +1439,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1363
1439
|
* // connector: {
|
|
1364
1440
|
* // id: "STRING_VALUE", // required
|
|
1365
1441
|
* // startMessage: "STRING_VALUE",
|
|
1442
|
+
* // startMessages: "<AgentSpokenPhraseList>",
|
|
1366
1443
|
* // pipeline: {
|
|
1367
1444
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
1368
1445
|
* // instructions: "STRING_VALUE",
|
|
@@ -1451,6 +1528,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1451
1528
|
* // name: "STRING_VALUE",
|
|
1452
1529
|
* // description: "STRING_VALUE",
|
|
1453
1530
|
* // message: "STRING_VALUE",
|
|
1531
|
+
* // messages: "<AgentSpokenPhraseList>",
|
|
1454
1532
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1455
1533
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1456
1534
|
* // },
|
|
@@ -1529,6 +1607,9 @@ declare const UpdateAgentCommand_base: {
|
|
|
1529
1607
|
* // kb: {
|
|
1530
1608
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
1531
1609
|
* // instructions: "STRING_VALUE",
|
|
1610
|
+
* // searchStrategy: "bm25" || "vector" || "hybrid",
|
|
1611
|
+
* // searchThreshold: "low" || "medium" || "high",
|
|
1612
|
+
* // searchLimit: Number("int"),
|
|
1532
1613
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1533
1614
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1534
1615
|
* // },
|
|
@@ -1566,6 +1647,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
1566
1647
|
* // transfer: "<AgentTransferCapability>",
|
|
1567
1648
|
* // suggestions: {
|
|
1568
1649
|
* // name: "STRING_VALUE",
|
|
1650
|
+
* // instructions: "STRING_VALUE",
|
|
1569
1651
|
* // channels: "<AgentCapabilityChannelsList>",
|
|
1570
1652
|
* // annotations: "<AgentToolAnnotationsList>",
|
|
1571
1653
|
* // },
|
|
@@ -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
|
|
@@ -322,15 +322,41 @@ export interface VoiceInterruptionSettings {
|
|
|
322
322
|
*/
|
|
323
323
|
minWords?: number | undefined;
|
|
324
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* One phrase in one language, for a capability that speaks a fixed line on the voice channel.
|
|
327
|
+
* Which entry is spoken is decided by the call's current language — the one the call resolved
|
|
328
|
+
* to at connect, or the one automatic detection switched to — matched on `language`
|
|
329
|
+
* CASE-INSENSITIVELY, the same rule `VoiceBotSpokenPhrase` states for the legacy stack, so a
|
|
330
|
+
* code written in either case reaches the same entry on either. Blank `text` means the agent
|
|
331
|
+
* says nothing in that language; it does NOT fall back to the language-agnostic member beside
|
|
332
|
+
* the list, which would speak one language's text in another language's voice.
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
export interface AgentSpokenPhrase {
|
|
336
|
+
/**
|
|
337
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
338
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
339
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
340
|
+
* when the model was released.
|
|
341
|
+
* @public
|
|
342
|
+
*/
|
|
343
|
+
language: string;
|
|
344
|
+
text: string;
|
|
345
|
+
}
|
|
325
346
|
/**
|
|
326
347
|
* @public
|
|
327
348
|
*/
|
|
328
349
|
export interface VoiceTerminateHangupAction {
|
|
329
350
|
/**
|
|
330
|
-
* Message played before hanging up.
|
|
351
|
+
* 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.
|
|
331
352
|
* @public
|
|
332
353
|
*/
|
|
333
354
|
message?: string | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* 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.
|
|
357
|
+
* @public
|
|
358
|
+
*/
|
|
359
|
+
messages?: AgentSpokenPhrase[] | undefined;
|
|
334
360
|
}
|
|
335
361
|
/**
|
|
336
362
|
* @public
|
|
@@ -921,10 +947,15 @@ export interface AgentConnectorCapability {
|
|
|
921
947
|
*/
|
|
922
948
|
id: string;
|
|
923
949
|
/**
|
|
924
|
-
* Message spoken when a connector action call starts. Honoured on the voice channel. Mirrors `AgentTool.startMessage`. Not applied to the read-only `help` action.
|
|
950
|
+
* 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.
|
|
925
951
|
* @public
|
|
926
952
|
*/
|
|
927
953
|
startMessage?: string | undefined;
|
|
954
|
+
/**
|
|
955
|
+
* Forward-compatible per-language connector start messages, mirroring `AgentTool.startMessages`. Accepted and stored so clients can configure connector and tool phrases consistently, but currently ignored at execution time because the voice runtime does not read connector start messages yet. Runtime enablement is tracked in wilma-services docs/todo.md item 8.
|
|
956
|
+
* @public
|
|
957
|
+
*/
|
|
958
|
+
startMessages?: AgentSpokenPhrase[] | undefined;
|
|
928
959
|
/**
|
|
929
960
|
* How the model waits for a connector action and whether it synthesizes a reply from the result. The `help` action carries no pipeline.
|
|
930
961
|
* @public
|
|
@@ -1081,6 +1112,21 @@ export interface AgentKnowledgeBase {
|
|
|
1081
1112
|
* @public
|
|
1082
1113
|
*/
|
|
1083
1114
|
instructions?: string | undefined;
|
|
1115
|
+
/**
|
|
1116
|
+
* Search algorithm used for this capability. Defaults to the knowledge base service's own default (`hybrid`) when omitted.
|
|
1117
|
+
* @public
|
|
1118
|
+
*/
|
|
1119
|
+
searchStrategy?: KnowledgeBaseSearchStrategy | undefined;
|
|
1120
|
+
/**
|
|
1121
|
+
* 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.
|
|
1122
|
+
* @public
|
|
1123
|
+
*/
|
|
1124
|
+
searchThreshold?: KnowledgeBaseSearchThreshold | undefined;
|
|
1125
|
+
/**
|
|
1126
|
+
* 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.
|
|
1127
|
+
* @public
|
|
1128
|
+
*/
|
|
1129
|
+
searchLimit?: number | undefined;
|
|
1084
1130
|
/**
|
|
1085
1131
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1086
1132
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -1192,6 +1238,20 @@ export interface AgentSuggestionsCapability {
|
|
|
1192
1238
|
* @public
|
|
1193
1239
|
*/
|
|
1194
1240
|
name?: string | undefined;
|
|
1241
|
+
/**
|
|
1242
|
+
* Steers what the suggestions say. Appended to the platform's own generation prompt rather than
|
|
1243
|
+
* replacing it, so the shape of a suggestion — short, tappable, a plausible next thing to send —
|
|
1244
|
+
* stays the platform's to keep, and this narrows the subject: 'offer a callback and a link to the
|
|
1245
|
+
* status page, never a discount'.
|
|
1246
|
+
*
|
|
1247
|
+
* NOT a tool description, unlike the `description` every other capability carries: suggestions are
|
|
1248
|
+
* not a tool the model chooses to call. They are generated from a reply that has already been
|
|
1249
|
+
* written, so there is no decision to describe — only the generation to steer.
|
|
1250
|
+
*
|
|
1251
|
+
* Absent means the platform's prompt alone.
|
|
1252
|
+
* @public
|
|
1253
|
+
*/
|
|
1254
|
+
instructions?: string | undefined;
|
|
1195
1255
|
/**
|
|
1196
1256
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1197
1257
|
* that can honour it. Listing channels narrows that set and never widens it: a `transfer` listed for `chat` is
|
|
@@ -1296,10 +1356,19 @@ export interface AgentTool {
|
|
|
1296
1356
|
*/
|
|
1297
1357
|
fields?: AgentToolField[] | undefined;
|
|
1298
1358
|
/**
|
|
1299
|
-
* Message spoken when the tool call starts. Honoured on the voice channel.
|
|
1359
|
+
* 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.
|
|
1300
1360
|
* @public
|
|
1301
1361
|
*/
|
|
1302
1362
|
startMessage?: string | undefined;
|
|
1363
|
+
/**
|
|
1364
|
+
* Per-language start messages. When present and non-empty, the entry for the call's current
|
|
1365
|
+
* language is spoken and `startMessage` is not consulted; a language with no entry is silent.
|
|
1366
|
+
* When absent or empty, `startMessage` is spoken as before. On a call with no effective speech
|
|
1367
|
+
* configuration — no configured languages, or a PBX below protocol 2 — `startMessage` is spoken
|
|
1368
|
+
* regardless, because there is no current language to choose by.
|
|
1369
|
+
* @public
|
|
1370
|
+
*/
|
|
1371
|
+
startMessages?: AgentSpokenPhrase[] | undefined;
|
|
1303
1372
|
/**
|
|
1304
1373
|
* How the model waits for the tool and whether it synthesizes a reply from the result.
|
|
1305
1374
|
* @public
|
|
@@ -1382,10 +1451,15 @@ export interface AgentWaitCapability {
|
|
|
1382
1451
|
*/
|
|
1383
1452
|
description?: string | undefined;
|
|
1384
1453
|
/**
|
|
1385
|
-
* Message spoken when entering the wait state.
|
|
1454
|
+
* 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.
|
|
1386
1455
|
* @public
|
|
1387
1456
|
*/
|
|
1388
1457
|
message?: string | undefined;
|
|
1458
|
+
/**
|
|
1459
|
+
* 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.
|
|
1460
|
+
* @public
|
|
1461
|
+
*/
|
|
1462
|
+
messages?: AgentSpokenPhrase[] | undefined;
|
|
1389
1463
|
/**
|
|
1390
1464
|
* Channels this capability is offered on. Absent or empty — the default — means every channel the agent serves
|
|
1391
1465
|
* 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.45",
|
|
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",
|