@aws-sdk/client-bedrock-agent-runtime 3.658.1 → 3.663.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
CHANGED
|
@@ -1130,7 +1130,9 @@ var PostProcessingParsedResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj
|
|
|
1130
1130
|
}), "PostProcessingParsedResponseFilterSensitiveLog");
|
|
1131
1131
|
var PostProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1132
1132
|
...obj,
|
|
1133
|
-
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING }
|
|
1133
|
+
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1134
|
+
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1135
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1134
1136
|
}), "PostProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1135
1137
|
var PostProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1136
1138
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -1146,7 +1148,9 @@ var PreProcessingParsedResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1146
1148
|
}), "PreProcessingParsedResponseFilterSensitiveLog");
|
|
1147
1149
|
var PreProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1148
1150
|
...obj,
|
|
1149
|
-
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING }
|
|
1151
|
+
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1152
|
+
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1153
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1150
1154
|
}), "PreProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1151
1155
|
var PreProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1152
1156
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -746,6 +746,8 @@ export const PostProcessingParsedResponseFilterSensitiveLog = (obj) => ({
|
|
|
746
746
|
export const PostProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
747
747
|
...obj,
|
|
748
748
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
749
|
+
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
750
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
749
751
|
});
|
|
750
752
|
export const PostProcessingTraceFilterSensitiveLog = (obj) => {
|
|
751
753
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -762,6 +764,8 @@ export const PreProcessingParsedResponseFilterSensitiveLog = (obj) => ({
|
|
|
762
764
|
export const PreProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
763
765
|
...obj,
|
|
764
766
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
767
|
+
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
768
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
765
769
|
});
|
|
766
770
|
export const PreProcessingTraceFilterSensitiveLog = (obj) => {
|
|
767
771
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -383,6 +383,15 @@ declare const InvokeAgentCommand_base: {
|
|
|
383
383
|
* // rationale: "STRING_VALUE",
|
|
384
384
|
* // isValid: true || false,
|
|
385
385
|
* // },
|
|
386
|
+
* // rawResponse: { // RawResponse
|
|
387
|
+
* // content: "STRING_VALUE",
|
|
388
|
+
* // },
|
|
389
|
+
* // metadata: { // Metadata
|
|
390
|
+
* // usage: { // Usage
|
|
391
|
+
* // inputTokens: Number("int"),
|
|
392
|
+
* // outputTokens: Number("int"),
|
|
393
|
+
* // },
|
|
394
|
+
* // },
|
|
386
395
|
* // },
|
|
387
396
|
* // },
|
|
388
397
|
* // orchestrationTrace: { // OrchestrationTrace Union: only one key present
|
|
@@ -501,11 +510,11 @@ declare const InvokeAgentCommand_base: {
|
|
|
501
510
|
* // },
|
|
502
511
|
* // modelInvocationOutput: { // OrchestrationModelInvocationOutput
|
|
503
512
|
* // traceId: "STRING_VALUE",
|
|
504
|
-
* // rawResponse: {
|
|
513
|
+
* // rawResponse: {
|
|
505
514
|
* // content: "STRING_VALUE",
|
|
506
515
|
* // },
|
|
507
|
-
* // metadata: {
|
|
508
|
-
* // usage: {
|
|
516
|
+
* // metadata: {
|
|
517
|
+
* // usage: {
|
|
509
518
|
* // inputTokens: Number("int"),
|
|
510
519
|
* // outputTokens: Number("int"),
|
|
511
520
|
* // },
|
|
@@ -535,6 +544,15 @@ declare const InvokeAgentCommand_base: {
|
|
|
535
544
|
* // parsedResponse: { // PostProcessingParsedResponse
|
|
536
545
|
* // text: "STRING_VALUE",
|
|
537
546
|
* // },
|
|
547
|
+
* // rawResponse: {
|
|
548
|
+
* // content: "STRING_VALUE",
|
|
549
|
+
* // },
|
|
550
|
+
* // metadata: {
|
|
551
|
+
* // usage: {
|
|
552
|
+
* // inputTokens: Number("int"),
|
|
553
|
+
* // outputTokens: Number("int"),
|
|
554
|
+
* // },
|
|
555
|
+
* // },
|
|
538
556
|
* // },
|
|
539
557
|
* // },
|
|
540
558
|
* // failureTrace: { // FailureTrace
|
|
@@ -2532,6 +2532,16 @@ export interface PostProcessingModelInvocationOutput {
|
|
|
2532
2532
|
* @public
|
|
2533
2533
|
*/
|
|
2534
2534
|
parsedResponse?: PostProcessingParsedResponse;
|
|
2535
|
+
/**
|
|
2536
|
+
* <p>Contains the raw output from the foundation model.</p>
|
|
2537
|
+
* @public
|
|
2538
|
+
*/
|
|
2539
|
+
rawResponse?: RawResponse;
|
|
2540
|
+
/**
|
|
2541
|
+
* <p>Provides details of the foundation model.</p>
|
|
2542
|
+
* @public
|
|
2543
|
+
*/
|
|
2544
|
+
metadata?: Metadata;
|
|
2535
2545
|
}
|
|
2536
2546
|
/**
|
|
2537
2547
|
* <p>Details about the post-processing step, in which the agent shapes the response.</p>
|
|
@@ -2617,6 +2627,16 @@ export interface PreProcessingModelInvocationOutput {
|
|
|
2617
2627
|
* @public
|
|
2618
2628
|
*/
|
|
2619
2629
|
parsedResponse?: PreProcessingParsedResponse;
|
|
2630
|
+
/**
|
|
2631
|
+
* <p>Contains the raw output from the foundation model.</p>
|
|
2632
|
+
* @public
|
|
2633
|
+
*/
|
|
2634
|
+
rawResponse?: RawResponse;
|
|
2635
|
+
/**
|
|
2636
|
+
* <p>Provides details of the foundation model.</p>
|
|
2637
|
+
* @public
|
|
2638
|
+
*/
|
|
2639
|
+
metadata?: Metadata;
|
|
2620
2640
|
}
|
|
2621
2641
|
/**
|
|
2622
2642
|
* <p>Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.</p>
|
|
@@ -3481,22 +3501,22 @@ export interface ExternalSource {
|
|
|
3481
3501
|
byteContent?: ByteContentDoc;
|
|
3482
3502
|
}
|
|
3483
3503
|
/**
|
|
3484
|
-
* <p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>
|
|
3504
|
+
* <p>The configurations of the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>
|
|
3485
3505
|
* @public
|
|
3486
3506
|
*/
|
|
3487
3507
|
export interface ExternalSourcesRetrieveAndGenerateConfiguration {
|
|
3488
3508
|
/**
|
|
3489
|
-
* <p>The
|
|
3509
|
+
* <p>The model Amazon Resource Name (ARN) for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>
|
|
3490
3510
|
* @public
|
|
3491
3511
|
*/
|
|
3492
3512
|
modelArn: string | undefined;
|
|
3493
3513
|
/**
|
|
3494
|
-
* <p>The document
|
|
3514
|
+
* <p>The document for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>
|
|
3495
3515
|
* @public
|
|
3496
3516
|
*/
|
|
3497
3517
|
sources: ExternalSource[] | undefined;
|
|
3498
3518
|
/**
|
|
3499
|
-
* <p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>
|
|
3519
|
+
* <p>The prompt used with the external source wrapper object with the <code>retrieveAndGenerate</code> function.</p>
|
|
3500
3520
|
* @public
|
|
3501
3521
|
*/
|
|
3502
3522
|
generationConfiguration?: ExternalSourcesGenerationConfiguration;
|
|
@@ -4242,17 +4262,18 @@ export interface RetrieveRequest {
|
|
|
4242
4262
|
*/
|
|
4243
4263
|
export interface RetrieveAndGenerateConfiguration {
|
|
4244
4264
|
/**
|
|
4245
|
-
* <p>The type of resource that
|
|
4265
|
+
* <p>The type of resource that contains your data for retrieving information and generating responses.</p>
|
|
4266
|
+
* <p>If you choose ot use <code>EXTERNAL_SOURCES</code>, then currently only Claude 3 Sonnet models for knowledge bases are supported.</p>
|
|
4246
4267
|
* @public
|
|
4247
4268
|
*/
|
|
4248
4269
|
type: RetrieveAndGenerateType | undefined;
|
|
4249
4270
|
/**
|
|
4250
|
-
* <p>Contains details about the
|
|
4271
|
+
* <p>Contains details about the knowledge base for retrieving information and generating responses.</p>
|
|
4251
4272
|
* @public
|
|
4252
4273
|
*/
|
|
4253
4274
|
knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration;
|
|
4254
4275
|
/**
|
|
4255
|
-
* <p>The configuration
|
|
4276
|
+
* <p>The configuration for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>
|
|
4256
4277
|
* @public
|
|
4257
4278
|
*/
|
|
4258
4279
|
externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration;
|
|
@@ -923,6 +923,8 @@ export interface PostProcessingParsedResponse {
|
|
|
923
923
|
export interface PostProcessingModelInvocationOutput {
|
|
924
924
|
traceId?: string;
|
|
925
925
|
parsedResponse?: PostProcessingParsedResponse;
|
|
926
|
+
rawResponse?: RawResponse;
|
|
927
|
+
metadata?: Metadata;
|
|
926
928
|
}
|
|
927
929
|
export type PostProcessingTrace =
|
|
928
930
|
| PostProcessingTrace.ModelInvocationInputMember
|
|
@@ -958,6 +960,8 @@ export interface PreProcessingParsedResponse {
|
|
|
958
960
|
export interface PreProcessingModelInvocationOutput {
|
|
959
961
|
traceId?: string;
|
|
960
962
|
parsedResponse?: PreProcessingParsedResponse;
|
|
963
|
+
rawResponse?: RawResponse;
|
|
964
|
+
metadata?: Metadata;
|
|
961
965
|
}
|
|
962
966
|
export type PreProcessingTrace =
|
|
963
967
|
| PreProcessingTrace.ModelInvocationInputMember
|
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.663.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",
|
|
@@ -20,46 +20,46 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.4.
|
|
38
|
-
"@smithy/eventstream-serde-browser": "^3.0.
|
|
39
|
-
"@smithy/eventstream-serde-config-resolver": "^3.0.
|
|
40
|
-
"@smithy/eventstream-serde-node": "^3.0.
|
|
41
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
42
|
-
"@smithy/hash-node": "^3.0.
|
|
43
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
44
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
45
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
46
|
-
"@smithy/middleware-retry": "^3.0.
|
|
47
|
-
"@smithy/middleware-serde": "^3.0.
|
|
48
|
-
"@smithy/middleware-stack": "^3.0.
|
|
49
|
-
"@smithy/node-config-provider": "^3.1.
|
|
50
|
-
"@smithy/node-http-handler": "^3.2.
|
|
51
|
-
"@smithy/protocol-http": "^4.1.
|
|
52
|
-
"@smithy/smithy-client": "^3.3.
|
|
53
|
-
"@smithy/types": "^3.
|
|
54
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.662.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.662.0",
|
|
25
|
+
"@aws-sdk/core": "3.662.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.662.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.662.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.662.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.662.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.662.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.662.0",
|
|
32
|
+
"@aws-sdk/types": "3.662.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.662.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.662.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.662.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.9",
|
|
37
|
+
"@smithy/core": "^2.4.7",
|
|
38
|
+
"@smithy/eventstream-serde-browser": "^3.0.10",
|
|
39
|
+
"@smithy/eventstream-serde-config-resolver": "^3.0.7",
|
|
40
|
+
"@smithy/eventstream-serde-node": "^3.0.9",
|
|
41
|
+
"@smithy/fetch-http-handler": "^3.2.9",
|
|
42
|
+
"@smithy/hash-node": "^3.0.7",
|
|
43
|
+
"@smithy/invalid-dependency": "^3.0.7",
|
|
44
|
+
"@smithy/middleware-content-length": "^3.0.9",
|
|
45
|
+
"@smithy/middleware-endpoint": "^3.1.4",
|
|
46
|
+
"@smithy/middleware-retry": "^3.0.22",
|
|
47
|
+
"@smithy/middleware-serde": "^3.0.7",
|
|
48
|
+
"@smithy/middleware-stack": "^3.0.7",
|
|
49
|
+
"@smithy/node-config-provider": "^3.1.8",
|
|
50
|
+
"@smithy/node-http-handler": "^3.2.4",
|
|
51
|
+
"@smithy/protocol-http": "^4.1.4",
|
|
52
|
+
"@smithy/smithy-client": "^3.3.6",
|
|
53
|
+
"@smithy/types": "^3.5.0",
|
|
54
|
+
"@smithy/url-parser": "^3.0.7",
|
|
55
55
|
"@smithy/util-base64": "^3.0.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
60
|
-
"@smithy/util-endpoints": "^2.1.
|
|
61
|
-
"@smithy/util-middleware": "^3.0.
|
|
62
|
-
"@smithy/util-retry": "^3.0.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^3.0.22",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^3.0.22",
|
|
60
|
+
"@smithy/util-endpoints": "^2.1.3",
|
|
61
|
+
"@smithy/util-middleware": "^3.0.7",
|
|
62
|
+
"@smithy/util-retry": "^3.0.7",
|
|
63
63
|
"@smithy/util-utf8": "^3.0.0",
|
|
64
64
|
"tslib": "^2.6.2"
|
|
65
65
|
},
|