@aws-sdk/client-bedrock-agent-runtime 3.739.0 → 3.741.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 +10 -2
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +55 -0
- package/dist-types/models/models_0.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -2097,7 +2097,13 @@ var RetrieveAndGenerateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
2097
2097
|
}), "RetrieveAndGenerateResponseFilterSensitiveLog");
|
|
2098
2098
|
var CitationEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2099
2099
|
...obj,
|
|
2100
|
-
...obj.citation && { citation: CitationFilterSensitiveLog(obj.citation) }
|
|
2100
|
+
...obj.citation && { citation: CitationFilterSensitiveLog(obj.citation) },
|
|
2101
|
+
...obj.generatedResponsePart && {
|
|
2102
|
+
generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart)
|
|
2103
|
+
},
|
|
2104
|
+
...obj.retrievedReferences && {
|
|
2105
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item))
|
|
2106
|
+
}
|
|
2101
2107
|
}), "CitationEventFilterSensitiveLog");
|
|
2102
2108
|
var RetrieveAndGenerateOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2103
2109
|
...obj
|
|
@@ -3703,7 +3709,9 @@ var de_Citation = /* @__PURE__ */ __name((output, context) => {
|
|
|
3703
3709
|
}, "de_Citation");
|
|
3704
3710
|
var de_CitationEvent = /* @__PURE__ */ __name((output, context) => {
|
|
3705
3711
|
return (0, import_smithy_client.take)(output, {
|
|
3706
|
-
citation: (_) => de_Citation(_, context)
|
|
3712
|
+
citation: (_) => de_Citation(_, context),
|
|
3713
|
+
generatedResponsePart: import_smithy_client._json,
|
|
3714
|
+
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
3707
3715
|
});
|
|
3708
3716
|
}, "de_CitationEvent");
|
|
3709
3717
|
var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1554,6 +1554,12 @@ export const RetrieveAndGenerateResponseFilterSensitiveLog = (obj) => ({
|
|
|
1554
1554
|
export const CitationEventFilterSensitiveLog = (obj) => ({
|
|
1555
1555
|
...obj,
|
|
1556
1556
|
...(obj.citation && { citation: CitationFilterSensitiveLog(obj.citation) }),
|
|
1557
|
+
...(obj.generatedResponsePart && {
|
|
1558
|
+
generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart),
|
|
1559
|
+
}),
|
|
1560
|
+
...(obj.retrievedReferences && {
|
|
1561
|
+
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
1562
|
+
}),
|
|
1557
1563
|
});
|
|
1558
1564
|
export const RetrieveAndGenerateOutputEventFilterSensitiveLog = (obj) => ({
|
|
1559
1565
|
...obj,
|
|
@@ -1372,6 +1372,8 @@ const de_Citation = (output, context) => {
|
|
|
1372
1372
|
const de_CitationEvent = (output, context) => {
|
|
1373
1373
|
return take(output, {
|
|
1374
1374
|
citation: (_) => de_Citation(_, context),
|
|
1375
|
+
generatedResponsePart: _json,
|
|
1376
|
+
retrievedReferences: (_) => de_RetrievedReferences(_, context),
|
|
1375
1377
|
});
|
|
1376
1378
|
};
|
|
1377
1379
|
const de_Citations = (output, context) => {
|
|
@@ -304,6 +304,61 @@ declare const RetrieveAndGenerateStreamCommand_base: {
|
|
|
304
304
|
* // },
|
|
305
305
|
* // ],
|
|
306
306
|
* // },
|
|
307
|
+
* // generatedResponsePart: {
|
|
308
|
+
* // textResponsePart: {
|
|
309
|
+
* // text: "STRING_VALUE",
|
|
310
|
+
* // span: {
|
|
311
|
+
* // start: Number("int"),
|
|
312
|
+
* // end: Number("int"),
|
|
313
|
+
* // },
|
|
314
|
+
* // },
|
|
315
|
+
* // },
|
|
316
|
+
* // retrievedReferences: [
|
|
317
|
+
* // {
|
|
318
|
+
* // content: {
|
|
319
|
+
* // type: "TEXT" || "IMAGE" || "ROW",
|
|
320
|
+
* // text: "STRING_VALUE",
|
|
321
|
+
* // byteContent: "STRING_VALUE",
|
|
322
|
+
* // row: [
|
|
323
|
+
* // {
|
|
324
|
+
* // columnName: "STRING_VALUE",
|
|
325
|
+
* // columnValue: "STRING_VALUE",
|
|
326
|
+
* // type: "BLOB" || "BOOLEAN" || "DOUBLE" || "NULL" || "LONG" || "STRING",
|
|
327
|
+
* // },
|
|
328
|
+
* // ],
|
|
329
|
+
* // },
|
|
330
|
+
* // location: {
|
|
331
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "KENDRA" || "SQL", // required
|
|
332
|
+
* // s3Location: {
|
|
333
|
+
* // uri: "STRING_VALUE",
|
|
334
|
+
* // },
|
|
335
|
+
* // webLocation: {
|
|
336
|
+
* // url: "STRING_VALUE",
|
|
337
|
+
* // },
|
|
338
|
+
* // confluenceLocation: {
|
|
339
|
+
* // url: "STRING_VALUE",
|
|
340
|
+
* // },
|
|
341
|
+
* // salesforceLocation: {
|
|
342
|
+
* // url: "STRING_VALUE",
|
|
343
|
+
* // },
|
|
344
|
+
* // sharePointLocation: {
|
|
345
|
+
* // url: "STRING_VALUE",
|
|
346
|
+
* // },
|
|
347
|
+
* // customDocumentLocation: {
|
|
348
|
+
* // id: "STRING_VALUE",
|
|
349
|
+
* // },
|
|
350
|
+
* // kendraDocumentLocation: {
|
|
351
|
+
* // uri: "STRING_VALUE",
|
|
352
|
+
* // },
|
|
353
|
+
* // sqlLocation: {
|
|
354
|
+
* // query: "STRING_VALUE",
|
|
355
|
+
* // },
|
|
356
|
+
* // },
|
|
357
|
+
* // metadata: {
|
|
358
|
+
* // "<keys>": "DOCUMENT_VALUE",
|
|
359
|
+
* // },
|
|
360
|
+
* // },
|
|
361
|
+
* // ],
|
|
307
362
|
* // },
|
|
308
363
|
* // guardrail: { // GuardrailEvent
|
|
309
364
|
* // action: "INTERVENED" || "NONE",
|
|
@@ -6475,10 +6475,22 @@ export interface RetrieveAndGenerateResponse {
|
|
|
6475
6475
|
*/
|
|
6476
6476
|
export interface CitationEvent {
|
|
6477
6477
|
/**
|
|
6478
|
+
* @deprecated
|
|
6479
|
+
*
|
|
6478
6480
|
* <p>The citation.</p>
|
|
6479
6481
|
* @public
|
|
6480
6482
|
*/
|
|
6481
6483
|
citation?: Citation | undefined;
|
|
6484
|
+
/**
|
|
6485
|
+
* <p>The generated response to the citation event.</p>
|
|
6486
|
+
* @public
|
|
6487
|
+
*/
|
|
6488
|
+
generatedResponsePart?: GeneratedResponsePart | undefined;
|
|
6489
|
+
/**
|
|
6490
|
+
* <p>The retrieved references of the citation event.</p>
|
|
6491
|
+
* @public
|
|
6492
|
+
*/
|
|
6493
|
+
retrievedReferences?: RetrievedReference[] | undefined;
|
|
6482
6494
|
}
|
|
6483
6495
|
/**
|
|
6484
6496
|
* <p>A guardrail event.</p>
|
|
@@ -2759,6 +2759,8 @@ export interface RetrieveAndGenerateResponse {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
export interface CitationEvent {
|
|
2761
2761
|
citation?: Citation | undefined;
|
|
2762
|
+
generatedResponsePart?: GeneratedResponsePart | undefined;
|
|
2763
|
+
retrievedReferences?: RetrievedReference[] | undefined;
|
|
2762
2764
|
}
|
|
2763
2765
|
export interface GuardrailEvent {
|
|
2764
2766
|
action?: GuadrailAction | undefined;
|
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.741.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.734.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.741.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|