@aws-sdk/client-bedrock-agent-runtime 3.523.0 → 3.524.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +73 -2
- package/dist-es/models/models_0.js +51 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +6 -0
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +80 -22
- package/dist-types/ts3.4/models/models_0.d.ts +36 -6
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -24,15 +24,18 @@ __export(src_exports, {
|
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
25
|
ActionGroupInvocationInputFilterSensitiveLog: () => ActionGroupInvocationInputFilterSensitiveLog,
|
|
26
26
|
ActionGroupInvocationOutputFilterSensitiveLog: () => ActionGroupInvocationOutputFilterSensitiveLog,
|
|
27
|
+
AttributionFilterSensitiveLog: () => AttributionFilterSensitiveLog,
|
|
27
28
|
BadGatewayException: () => BadGatewayException,
|
|
28
29
|
BedrockAgentRuntime: () => BedrockAgentRuntime,
|
|
29
30
|
BedrockAgentRuntimeClient: () => BedrockAgentRuntimeClient,
|
|
30
31
|
BedrockAgentRuntimeServiceException: () => BedrockAgentRuntimeServiceException,
|
|
32
|
+
CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
|
|
31
33
|
ConflictException: () => ConflictException,
|
|
32
34
|
CreationMode: () => CreationMode,
|
|
33
35
|
DependencyFailedException: () => DependencyFailedException,
|
|
34
36
|
FailureTraceFilterSensitiveLog: () => FailureTraceFilterSensitiveLog,
|
|
35
37
|
FinalResponseFilterSensitiveLog: () => FinalResponseFilterSensitiveLog,
|
|
38
|
+
GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
|
|
36
39
|
InternalServerException: () => InternalServerException,
|
|
37
40
|
InvocationInputFilterSensitiveLog: () => InvocationInputFilterSensitiveLog,
|
|
38
41
|
InvocationType: () => InvocationType,
|
|
@@ -40,7 +43,9 @@ __export(src_exports, {
|
|
|
40
43
|
InvokeAgentRequestFilterSensitiveLog: () => InvokeAgentRequestFilterSensitiveLog,
|
|
41
44
|
InvokeAgentResponseFilterSensitiveLog: () => InvokeAgentResponseFilterSensitiveLog,
|
|
42
45
|
KnowledgeBaseLookupInputFilterSensitiveLog: () => KnowledgeBaseLookupInputFilterSensitiveLog,
|
|
46
|
+
KnowledgeBaseLookupOutputFilterSensitiveLog: () => KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
43
47
|
KnowledgeBaseQueryFilterSensitiveLog: () => KnowledgeBaseQueryFilterSensitiveLog,
|
|
48
|
+
KnowledgeBaseRetrievalResultFilterSensitiveLog: () => KnowledgeBaseRetrievalResultFilterSensitiveLog,
|
|
44
49
|
ModelInvocationInputFilterSensitiveLog: () => ModelInvocationInputFilterSensitiveLog,
|
|
45
50
|
ObservationFilterSensitiveLog: () => ObservationFilterSensitiveLog,
|
|
46
51
|
OrchestrationTrace: () => OrchestrationTrace,
|
|
@@ -60,6 +65,8 @@ __export(src_exports, {
|
|
|
60
65
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
61
66
|
ResponseStream: () => ResponseStream,
|
|
62
67
|
ResponseStreamFilterSensitiveLog: () => ResponseStreamFilterSensitiveLog,
|
|
68
|
+
RetrievalResultContentFilterSensitiveLog: () => RetrievalResultContentFilterSensitiveLog,
|
|
69
|
+
RetrievalResultLocationFilterSensitiveLog: () => RetrievalResultLocationFilterSensitiveLog,
|
|
63
70
|
RetrievalResultLocationType: () => RetrievalResultLocationType,
|
|
64
71
|
RetrieveAndGenerateCommand: () => RetrieveAndGenerateCommand,
|
|
65
72
|
RetrieveAndGenerateInputFilterSensitiveLog: () => RetrieveAndGenerateInputFilterSensitiveLog,
|
|
@@ -70,8 +77,11 @@ __export(src_exports, {
|
|
|
70
77
|
RetrieveCommand: () => RetrieveCommand,
|
|
71
78
|
RetrieveRequestFilterSensitiveLog: () => RetrieveRequestFilterSensitiveLog,
|
|
72
79
|
RetrieveResponseFilterSensitiveLog: () => RetrieveResponseFilterSensitiveLog,
|
|
80
|
+
RetrievedReferenceFilterSensitiveLog: () => RetrievedReferenceFilterSensitiveLog,
|
|
81
|
+
SearchType: () => SearchType,
|
|
73
82
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
74
83
|
Source: () => Source,
|
|
84
|
+
TextResponsePartFilterSensitiveLog: () => TextResponsePartFilterSensitiveLog,
|
|
75
85
|
ThrottlingException: () => ThrottlingException,
|
|
76
86
|
Trace: () => Trace,
|
|
77
87
|
TraceFilterSensitiveLog: () => TraceFilterSensitiveLog,
|
|
@@ -516,6 +526,10 @@ var ResponseStream;
|
|
|
516
526
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
517
527
|
}, "visit");
|
|
518
528
|
})(ResponseStream || (ResponseStream = {}));
|
|
529
|
+
var SearchType = {
|
|
530
|
+
HYBRID: "HYBRID",
|
|
531
|
+
SEMANTIC: "SEMANTIC"
|
|
532
|
+
};
|
|
519
533
|
var RetrieveAndGenerateType = {
|
|
520
534
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
521
535
|
};
|
|
@@ -533,9 +547,41 @@ var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
533
547
|
...obj,
|
|
534
548
|
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING }
|
|
535
549
|
}), "InvokeAgentRequestFilterSensitiveLog");
|
|
550
|
+
var TextResponsePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
551
|
+
...obj
|
|
552
|
+
}), "TextResponsePartFilterSensitiveLog");
|
|
553
|
+
var GeneratedResponsePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
554
|
+
...obj,
|
|
555
|
+
...obj.textResponsePart && { textResponsePart: import_smithy_client.SENSITIVE_STRING }
|
|
556
|
+
}), "GeneratedResponsePartFilterSensitiveLog");
|
|
557
|
+
var RetrievalResultContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
558
|
+
...obj
|
|
559
|
+
}), "RetrievalResultContentFilterSensitiveLog");
|
|
560
|
+
var RetrievalResultLocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
561
|
+
...obj
|
|
562
|
+
}), "RetrievalResultLocationFilterSensitiveLog");
|
|
563
|
+
var RetrievedReferenceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
564
|
+
...obj,
|
|
565
|
+
...obj.content && { content: import_smithy_client.SENSITIVE_STRING },
|
|
566
|
+
...obj.location && { location: import_smithy_client.SENSITIVE_STRING }
|
|
567
|
+
}), "RetrievedReferenceFilterSensitiveLog");
|
|
568
|
+
var CitationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
569
|
+
...obj,
|
|
570
|
+
...obj.generatedResponsePart && {
|
|
571
|
+
generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart)
|
|
572
|
+
},
|
|
573
|
+
...obj.retrievedReferences && {
|
|
574
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item))
|
|
575
|
+
}
|
|
576
|
+
}), "CitationFilterSensitiveLog");
|
|
577
|
+
var AttributionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
578
|
+
...obj,
|
|
579
|
+
...obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }
|
|
580
|
+
}), "AttributionFilterSensitiveLog");
|
|
536
581
|
var PayloadPartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
537
582
|
...obj,
|
|
538
|
-
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING }
|
|
583
|
+
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING },
|
|
584
|
+
...obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }
|
|
539
585
|
}), "PayloadPartFilterSensitiveLog");
|
|
540
586
|
var FailureTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
541
587
|
...obj,
|
|
@@ -563,6 +609,12 @@ var FinalResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
563
609
|
...obj,
|
|
564
610
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
565
611
|
}), "FinalResponseFilterSensitiveLog");
|
|
612
|
+
var KnowledgeBaseLookupOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
613
|
+
...obj,
|
|
614
|
+
...obj.retrievedReferences && {
|
|
615
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item))
|
|
616
|
+
}
|
|
617
|
+
}), "KnowledgeBaseLookupOutputFilterSensitiveLog");
|
|
566
618
|
var RepromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
567
619
|
...obj,
|
|
568
620
|
...obj.source && { source: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -572,6 +624,9 @@ var ObservationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
572
624
|
...obj.actionGroupInvocationOutput && {
|
|
573
625
|
actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput)
|
|
574
626
|
},
|
|
627
|
+
...obj.knowledgeBaseLookupOutput && {
|
|
628
|
+
knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput)
|
|
629
|
+
},
|
|
575
630
|
...obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) },
|
|
576
631
|
...obj.repromptResponse && { repromptResponse: import_smithy_client.SENSITIVE_STRING }
|
|
577
632
|
}), "ObservationFilterSensitiveLog");
|
|
@@ -681,7 +736,8 @@ var RetrieveAndGenerateOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
681
736
|
}), "RetrieveAndGenerateOutputFilterSensitiveLog");
|
|
682
737
|
var RetrieveAndGenerateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
683
738
|
...obj,
|
|
684
|
-
...obj.output && { output: import_smithy_client.SENSITIVE_STRING }
|
|
739
|
+
...obj.output && { output: import_smithy_client.SENSITIVE_STRING },
|
|
740
|
+
...obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }
|
|
685
741
|
}), "RetrieveAndGenerateResponseFilterSensitiveLog");
|
|
686
742
|
var KnowledgeBaseQueryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
687
743
|
...obj
|
|
@@ -690,6 +746,11 @@ var RetrieveRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
690
746
|
...obj,
|
|
691
747
|
...obj.retrievalQuery && { retrievalQuery: import_smithy_client.SENSITIVE_STRING }
|
|
692
748
|
}), "RetrieveRequestFilterSensitiveLog");
|
|
749
|
+
var KnowledgeBaseRetrievalResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
750
|
+
...obj,
|
|
751
|
+
...obj.content && { content: import_smithy_client.SENSITIVE_STRING },
|
|
752
|
+
...obj.location && { location: import_smithy_client.SENSITIVE_STRING }
|
|
753
|
+
}), "KnowledgeBaseRetrievalResultFilterSensitiveLog");
|
|
693
754
|
var RetrieveResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
694
755
|
...obj,
|
|
695
756
|
...obj.retrievalResults && { retrievalResults: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1382,16 +1443,25 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1382
1443
|
Trace,
|
|
1383
1444
|
ValidationException,
|
|
1384
1445
|
ResponseStream,
|
|
1446
|
+
SearchType,
|
|
1385
1447
|
RetrieveAndGenerateType,
|
|
1386
1448
|
ActionGroupInvocationInputFilterSensitiveLog,
|
|
1387
1449
|
ActionGroupInvocationOutputFilterSensitiveLog,
|
|
1388
1450
|
InvokeAgentRequestFilterSensitiveLog,
|
|
1451
|
+
TextResponsePartFilterSensitiveLog,
|
|
1452
|
+
GeneratedResponsePartFilterSensitiveLog,
|
|
1453
|
+
RetrievalResultContentFilterSensitiveLog,
|
|
1454
|
+
RetrievalResultLocationFilterSensitiveLog,
|
|
1455
|
+
RetrievedReferenceFilterSensitiveLog,
|
|
1456
|
+
CitationFilterSensitiveLog,
|
|
1457
|
+
AttributionFilterSensitiveLog,
|
|
1389
1458
|
PayloadPartFilterSensitiveLog,
|
|
1390
1459
|
FailureTraceFilterSensitiveLog,
|
|
1391
1460
|
KnowledgeBaseLookupInputFilterSensitiveLog,
|
|
1392
1461
|
InvocationInputFilterSensitiveLog,
|
|
1393
1462
|
ModelInvocationInputFilterSensitiveLog,
|
|
1394
1463
|
FinalResponseFilterSensitiveLog,
|
|
1464
|
+
KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
1395
1465
|
RepromptResponseFilterSensitiveLog,
|
|
1396
1466
|
ObservationFilterSensitiveLog,
|
|
1397
1467
|
RationaleFilterSensitiveLog,
|
|
@@ -1412,6 +1482,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1412
1482
|
RetrieveAndGenerateResponseFilterSensitiveLog,
|
|
1413
1483
|
KnowledgeBaseQueryFilterSensitiveLog,
|
|
1414
1484
|
RetrieveRequestFilterSensitiveLog,
|
|
1485
|
+
KnowledgeBaseRetrievalResultFilterSensitiveLog,
|
|
1415
1486
|
RetrieveResponseFilterSensitiveLog
|
|
1416
1487
|
});
|
|
1417
1488
|
|
|
@@ -216,6 +216,10 @@ export var ResponseStream;
|
|
|
216
216
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
217
217
|
};
|
|
218
218
|
})(ResponseStream || (ResponseStream = {}));
|
|
219
|
+
export const SearchType = {
|
|
220
|
+
HYBRID: "HYBRID",
|
|
221
|
+
SEMANTIC: "SEMANTIC",
|
|
222
|
+
};
|
|
219
223
|
export const RetrieveAndGenerateType = {
|
|
220
224
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
221
225
|
};
|
|
@@ -233,9 +237,41 @@ export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
|
|
|
233
237
|
...obj,
|
|
234
238
|
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
235
239
|
});
|
|
240
|
+
export const TextResponsePartFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
});
|
|
243
|
+
export const GeneratedResponsePartFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
...(obj.textResponsePart && { textResponsePart: SENSITIVE_STRING }),
|
|
246
|
+
});
|
|
247
|
+
export const RetrievalResultContentFilterSensitiveLog = (obj) => ({
|
|
248
|
+
...obj,
|
|
249
|
+
});
|
|
250
|
+
export const RetrievalResultLocationFilterSensitiveLog = (obj) => ({
|
|
251
|
+
...obj,
|
|
252
|
+
});
|
|
253
|
+
export const RetrievedReferenceFilterSensitiveLog = (obj) => ({
|
|
254
|
+
...obj,
|
|
255
|
+
...(obj.content && { content: SENSITIVE_STRING }),
|
|
256
|
+
...(obj.location && { location: SENSITIVE_STRING }),
|
|
257
|
+
});
|
|
258
|
+
export const CitationFilterSensitiveLog = (obj) => ({
|
|
259
|
+
...obj,
|
|
260
|
+
...(obj.generatedResponsePart && {
|
|
261
|
+
generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart),
|
|
262
|
+
}),
|
|
263
|
+
...(obj.retrievedReferences && {
|
|
264
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
265
|
+
}),
|
|
266
|
+
});
|
|
267
|
+
export const AttributionFilterSensitiveLog = (obj) => ({
|
|
268
|
+
...obj,
|
|
269
|
+
...(obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }),
|
|
270
|
+
});
|
|
236
271
|
export const PayloadPartFilterSensitiveLog = (obj) => ({
|
|
237
272
|
...obj,
|
|
238
273
|
...(obj.bytes && { bytes: SENSITIVE_STRING }),
|
|
274
|
+
...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
|
|
239
275
|
});
|
|
240
276
|
export const FailureTraceFilterSensitiveLog = (obj) => ({
|
|
241
277
|
...obj,
|
|
@@ -263,6 +299,12 @@ export const FinalResponseFilterSensitiveLog = (obj) => ({
|
|
|
263
299
|
...obj,
|
|
264
300
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
265
301
|
});
|
|
302
|
+
export const KnowledgeBaseLookupOutputFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
...(obj.retrievedReferences && {
|
|
305
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
306
|
+
}),
|
|
307
|
+
});
|
|
266
308
|
export const RepromptResponseFilterSensitiveLog = (obj) => ({
|
|
267
309
|
...obj,
|
|
268
310
|
...(obj.source && { source: SENSITIVE_STRING }),
|
|
@@ -272,6 +314,9 @@ export const ObservationFilterSensitiveLog = (obj) => ({
|
|
|
272
314
|
...(obj.actionGroupInvocationOutput && {
|
|
273
315
|
actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput),
|
|
274
316
|
}),
|
|
317
|
+
...(obj.knowledgeBaseLookupOutput && {
|
|
318
|
+
knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput),
|
|
319
|
+
}),
|
|
275
320
|
...(obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) }),
|
|
276
321
|
...(obj.repromptResponse && { repromptResponse: SENSITIVE_STRING }),
|
|
277
322
|
});
|
|
@@ -382,6 +427,7 @@ export const RetrieveAndGenerateOutputFilterSensitiveLog = (obj) => ({
|
|
|
382
427
|
export const RetrieveAndGenerateResponseFilterSensitiveLog = (obj) => ({
|
|
383
428
|
...obj,
|
|
384
429
|
...(obj.output && { output: SENSITIVE_STRING }),
|
|
430
|
+
...(obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }),
|
|
385
431
|
});
|
|
386
432
|
export const KnowledgeBaseQueryFilterSensitiveLog = (obj) => ({
|
|
387
433
|
...obj,
|
|
@@ -390,6 +436,11 @@ export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
|
390
436
|
...obj,
|
|
391
437
|
...(obj.retrievalQuery && { retrievalQuery: SENSITIVE_STRING }),
|
|
392
438
|
});
|
|
439
|
+
export const KnowledgeBaseRetrievalResultFilterSensitiveLog = (obj) => ({
|
|
440
|
+
...obj,
|
|
441
|
+
...(obj.content && { content: SENSITIVE_STRING }),
|
|
442
|
+
...(obj.location && { location: SENSITIVE_STRING }),
|
|
443
|
+
});
|
|
393
444
|
export const RetrieveResponseFilterSensitiveLog = (obj) => ({
|
|
394
445
|
...obj,
|
|
395
446
|
...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
|
|
@@ -43,6 +43,12 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
43
43
|
* knowledgeBaseConfiguration: { // KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
44
44
|
* knowledgeBaseId: "STRING_VALUE", // required
|
|
45
45
|
* modelArn: "STRING_VALUE", // required
|
|
46
|
+
* retrievalConfiguration: { // KnowledgeBaseRetrievalConfiguration
|
|
47
|
+
* vectorSearchConfiguration: { // KnowledgeBaseVectorSearchConfiguration
|
|
48
|
+
* numberOfResults: Number("int"),
|
|
49
|
+
* overrideSearchType: "HYBRID" || "SEMANTIC",
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
46
52
|
* },
|
|
47
53
|
* },
|
|
48
54
|
* sessionConfiguration: { // RetrieveAndGenerateSessionConfiguration
|
|
@@ -40,7 +40,8 @@ declare const RetrieveCommand_base: {
|
|
|
40
40
|
* },
|
|
41
41
|
* retrievalConfiguration: { // KnowledgeBaseRetrievalConfiguration
|
|
42
42
|
* vectorSearchConfiguration: { // KnowledgeBaseVectorSearchConfiguration
|
|
43
|
-
* numberOfResults: Number("int"),
|
|
43
|
+
* numberOfResults: Number("int"),
|
|
44
|
+
* overrideSearchType: "HYBRID" || "SEMANTIC",
|
|
44
45
|
* },
|
|
45
46
|
* },
|
|
46
47
|
* nextToken: "STRING_VALUE",
|
|
@@ -1272,6 +1272,45 @@ export interface RetrieveAndGenerateInput {
|
|
|
1272
1272
|
*/
|
|
1273
1273
|
text: string | undefined;
|
|
1274
1274
|
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @public
|
|
1277
|
+
* @enum
|
|
1278
|
+
*/
|
|
1279
|
+
export declare const SearchType: {
|
|
1280
|
+
readonly HYBRID: "HYBRID";
|
|
1281
|
+
readonly SEMANTIC: "SEMANTIC";
|
|
1282
|
+
};
|
|
1283
|
+
/**
|
|
1284
|
+
* @public
|
|
1285
|
+
*/
|
|
1286
|
+
export type SearchType = (typeof SearchType)[keyof typeof SearchType];
|
|
1287
|
+
/**
|
|
1288
|
+
* @public
|
|
1289
|
+
* Knowledge base vector search configuration
|
|
1290
|
+
*/
|
|
1291
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
1292
|
+
/**
|
|
1293
|
+
* @public
|
|
1294
|
+
* Top-K results to retrieve from knowledge base.
|
|
1295
|
+
*/
|
|
1296
|
+
numberOfResults?: number;
|
|
1297
|
+
/**
|
|
1298
|
+
* @public
|
|
1299
|
+
* Override the type of query to be performed on data store
|
|
1300
|
+
*/
|
|
1301
|
+
overrideSearchType?: SearchType;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* @public
|
|
1305
|
+
* Search parameters for retrieving from knowledge base.
|
|
1306
|
+
*/
|
|
1307
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
|
1308
|
+
/**
|
|
1309
|
+
* @public
|
|
1310
|
+
* Knowledge base vector search configuration
|
|
1311
|
+
*/
|
|
1312
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
1313
|
+
}
|
|
1275
1314
|
/**
|
|
1276
1315
|
* @public
|
|
1277
1316
|
* Configurations for retrieval and generation for knowledge base.
|
|
@@ -1287,6 +1326,11 @@ export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
|
1287
1326
|
* Arn of a Bedrock model.
|
|
1288
1327
|
*/
|
|
1289
1328
|
modelArn: string | undefined;
|
|
1329
|
+
/**
|
|
1330
|
+
* @public
|
|
1331
|
+
* Search parameters for retrieving from knowledge base.
|
|
1332
|
+
*/
|
|
1333
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
|
|
1290
1334
|
}
|
|
1291
1335
|
/**
|
|
1292
1336
|
* @public
|
|
@@ -1382,28 +1426,6 @@ export interface RetrieveAndGenerateResponse {
|
|
|
1382
1426
|
*/
|
|
1383
1427
|
citations?: Citation[];
|
|
1384
1428
|
}
|
|
1385
|
-
/**
|
|
1386
|
-
* @public
|
|
1387
|
-
* Knowledge base vector search configuration
|
|
1388
|
-
*/
|
|
1389
|
-
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
1390
|
-
/**
|
|
1391
|
-
* @public
|
|
1392
|
-
* Top-K results to retrieve from knowledge base.
|
|
1393
|
-
*/
|
|
1394
|
-
numberOfResults: number | undefined;
|
|
1395
|
-
}
|
|
1396
|
-
/**
|
|
1397
|
-
* @public
|
|
1398
|
-
* Search parameters for retrieving from knowledge base.
|
|
1399
|
-
*/
|
|
1400
|
-
export interface KnowledgeBaseRetrievalConfiguration {
|
|
1401
|
-
/**
|
|
1402
|
-
* @public
|
|
1403
|
-
* Knowledge base vector search configuration
|
|
1404
|
-
*/
|
|
1405
|
-
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
1406
|
-
}
|
|
1407
1429
|
/**
|
|
1408
1430
|
* @public
|
|
1409
1431
|
* Knowledge base input query.
|
|
@@ -1488,6 +1510,34 @@ export declare const ActionGroupInvocationOutputFilterSensitiveLog: (obj: Action
|
|
|
1488
1510
|
* @internal
|
|
1489
1511
|
*/
|
|
1490
1512
|
export declare const InvokeAgentRequestFilterSensitiveLog: (obj: InvokeAgentRequest) => any;
|
|
1513
|
+
/**
|
|
1514
|
+
* @internal
|
|
1515
|
+
*/
|
|
1516
|
+
export declare const TextResponsePartFilterSensitiveLog: (obj: TextResponsePart) => any;
|
|
1517
|
+
/**
|
|
1518
|
+
* @internal
|
|
1519
|
+
*/
|
|
1520
|
+
export declare const GeneratedResponsePartFilterSensitiveLog: (obj: GeneratedResponsePart) => any;
|
|
1521
|
+
/**
|
|
1522
|
+
* @internal
|
|
1523
|
+
*/
|
|
1524
|
+
export declare const RetrievalResultContentFilterSensitiveLog: (obj: RetrievalResultContent) => any;
|
|
1525
|
+
/**
|
|
1526
|
+
* @internal
|
|
1527
|
+
*/
|
|
1528
|
+
export declare const RetrievalResultLocationFilterSensitiveLog: (obj: RetrievalResultLocation) => any;
|
|
1529
|
+
/**
|
|
1530
|
+
* @internal
|
|
1531
|
+
*/
|
|
1532
|
+
export declare const RetrievedReferenceFilterSensitiveLog: (obj: RetrievedReference) => any;
|
|
1533
|
+
/**
|
|
1534
|
+
* @internal
|
|
1535
|
+
*/
|
|
1536
|
+
export declare const CitationFilterSensitiveLog: (obj: Citation) => any;
|
|
1537
|
+
/**
|
|
1538
|
+
* @internal
|
|
1539
|
+
*/
|
|
1540
|
+
export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
|
|
1491
1541
|
/**
|
|
1492
1542
|
* @internal
|
|
1493
1543
|
*/
|
|
@@ -1512,6 +1562,10 @@ export declare const ModelInvocationInputFilterSensitiveLog: (obj: ModelInvocati
|
|
|
1512
1562
|
* @internal
|
|
1513
1563
|
*/
|
|
1514
1564
|
export declare const FinalResponseFilterSensitiveLog: (obj: FinalResponse) => any;
|
|
1565
|
+
/**
|
|
1566
|
+
* @internal
|
|
1567
|
+
*/
|
|
1568
|
+
export declare const KnowledgeBaseLookupOutputFilterSensitiveLog: (obj: KnowledgeBaseLookupOutput) => any;
|
|
1515
1569
|
/**
|
|
1516
1570
|
* @internal
|
|
1517
1571
|
*/
|
|
@@ -1592,6 +1646,10 @@ export declare const KnowledgeBaseQueryFilterSensitiveLog: (obj: KnowledgeBaseQu
|
|
|
1592
1646
|
* @internal
|
|
1593
1647
|
*/
|
|
1594
1648
|
export declare const RetrieveRequestFilterSensitiveLog: (obj: RetrieveRequest) => any;
|
|
1649
|
+
/**
|
|
1650
|
+
* @internal
|
|
1651
|
+
*/
|
|
1652
|
+
export declare const KnowledgeBaseRetrievalResultFilterSensitiveLog: (obj: KnowledgeBaseRetrievalResult) => any;
|
|
1595
1653
|
/**
|
|
1596
1654
|
* @internal
|
|
1597
1655
|
*/
|
|
@@ -603,9 +603,22 @@ export interface InvokeAgentResponse {
|
|
|
603
603
|
export interface RetrieveAndGenerateInput {
|
|
604
604
|
text: string | undefined;
|
|
605
605
|
}
|
|
606
|
+
export declare const SearchType: {
|
|
607
|
+
readonly HYBRID: "HYBRID";
|
|
608
|
+
readonly SEMANTIC: "SEMANTIC";
|
|
609
|
+
};
|
|
610
|
+
export type SearchType = (typeof SearchType)[keyof typeof SearchType];
|
|
611
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
612
|
+
numberOfResults?: number;
|
|
613
|
+
overrideSearchType?: SearchType;
|
|
614
|
+
}
|
|
615
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
|
616
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
617
|
+
}
|
|
606
618
|
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
607
619
|
knowledgeBaseId: string | undefined;
|
|
608
620
|
modelArn: string | undefined;
|
|
621
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
|
|
609
622
|
}
|
|
610
623
|
export declare const RetrieveAndGenerateType: {
|
|
611
624
|
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
@@ -633,12 +646,6 @@ export interface RetrieveAndGenerateResponse {
|
|
|
633
646
|
output: RetrieveAndGenerateOutput | undefined;
|
|
634
647
|
citations?: Citation[];
|
|
635
648
|
}
|
|
636
|
-
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
637
|
-
numberOfResults: number | undefined;
|
|
638
|
-
}
|
|
639
|
-
export interface KnowledgeBaseRetrievalConfiguration {
|
|
640
|
-
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
641
|
-
}
|
|
642
649
|
export interface KnowledgeBaseQuery {
|
|
643
650
|
text: string | undefined;
|
|
644
651
|
}
|
|
@@ -666,6 +673,23 @@ export declare const ActionGroupInvocationOutputFilterSensitiveLog: (
|
|
|
666
673
|
export declare const InvokeAgentRequestFilterSensitiveLog: (
|
|
667
674
|
obj: InvokeAgentRequest
|
|
668
675
|
) => any;
|
|
676
|
+
export declare const TextResponsePartFilterSensitiveLog: (
|
|
677
|
+
obj: TextResponsePart
|
|
678
|
+
) => any;
|
|
679
|
+
export declare const GeneratedResponsePartFilterSensitiveLog: (
|
|
680
|
+
obj: GeneratedResponsePart
|
|
681
|
+
) => any;
|
|
682
|
+
export declare const RetrievalResultContentFilterSensitiveLog: (
|
|
683
|
+
obj: RetrievalResultContent
|
|
684
|
+
) => any;
|
|
685
|
+
export declare const RetrievalResultLocationFilterSensitiveLog: (
|
|
686
|
+
obj: RetrievalResultLocation
|
|
687
|
+
) => any;
|
|
688
|
+
export declare const RetrievedReferenceFilterSensitiveLog: (
|
|
689
|
+
obj: RetrievedReference
|
|
690
|
+
) => any;
|
|
691
|
+
export declare const CitationFilterSensitiveLog: (obj: Citation) => any;
|
|
692
|
+
export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
|
|
669
693
|
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
670
694
|
export declare const FailureTraceFilterSensitiveLog: (obj: FailureTrace) => any;
|
|
671
695
|
export declare const KnowledgeBaseLookupInputFilterSensitiveLog: (
|
|
@@ -680,6 +704,9 @@ export declare const ModelInvocationInputFilterSensitiveLog: (
|
|
|
680
704
|
export declare const FinalResponseFilterSensitiveLog: (
|
|
681
705
|
obj: FinalResponse
|
|
682
706
|
) => any;
|
|
707
|
+
export declare const KnowledgeBaseLookupOutputFilterSensitiveLog: (
|
|
708
|
+
obj: KnowledgeBaseLookupOutput
|
|
709
|
+
) => any;
|
|
683
710
|
export declare const RepromptResponseFilterSensitiveLog: (
|
|
684
711
|
obj: RepromptResponse
|
|
685
712
|
) => any;
|
|
@@ -732,6 +759,9 @@ export declare const KnowledgeBaseQueryFilterSensitiveLog: (
|
|
|
732
759
|
export declare const RetrieveRequestFilterSensitiveLog: (
|
|
733
760
|
obj: RetrieveRequest
|
|
734
761
|
) => any;
|
|
762
|
+
export declare const KnowledgeBaseRetrievalResultFilterSensitiveLog: (
|
|
763
|
+
obj: KnowledgeBaseRetrievalResult
|
|
764
|
+
) => any;
|
|
735
765
|
export declare const RetrieveResponseFilterSensitiveLog: (
|
|
736
766
|
obj: RetrieveResponse
|
|
737
767
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.524.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|