@aws-sdk/client-bedrock-agent-runtime 3.734.0 → 3.739.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 +8 -1
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +1 -0
- package/dist-types/commands/InvokeFlowCommand.d.ts +1 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +1 -0
- package/dist-types/commands/OptimizePromptCommand.d.ts +1 -0
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -637,6 +637,11 @@ var InternalServerException = class _InternalServerException extends BedrockAgen
|
|
|
637
637
|
}
|
|
638
638
|
name = "InternalServerException";
|
|
639
639
|
$fault = "server";
|
|
640
|
+
/**
|
|
641
|
+
* <p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>
|
|
642
|
+
* @public
|
|
643
|
+
*/
|
|
644
|
+
reason;
|
|
640
645
|
/**
|
|
641
646
|
* @internal
|
|
642
647
|
*/
|
|
@@ -647,6 +652,7 @@ var InternalServerException = class _InternalServerException extends BedrockAgen
|
|
|
647
652
|
...opts
|
|
648
653
|
});
|
|
649
654
|
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
655
|
+
this.reason = opts.reason;
|
|
650
656
|
}
|
|
651
657
|
};
|
|
652
658
|
var FlowInputContent;
|
|
@@ -2748,7 +2754,8 @@ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
|
|
|
2748
2754
|
const contents = (0, import_smithy_client.map)({});
|
|
2749
2755
|
const data = parsedOutput.body;
|
|
2750
2756
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2751
|
-
message: import_smithy_client.expectString
|
|
2757
|
+
message: import_smithy_client.expectString,
|
|
2758
|
+
reason: import_smithy_client.expectString
|
|
2752
2759
|
});
|
|
2753
2760
|
Object.assign(contents, doc);
|
|
2754
2761
|
const exception = new InternalServerException({
|
|
@@ -142,6 +142,7 @@ export class DependencyFailedException extends __BaseException {
|
|
|
142
142
|
export class InternalServerException extends __BaseException {
|
|
143
143
|
name = "InternalServerException";
|
|
144
144
|
$fault = "server";
|
|
145
|
+
reason;
|
|
145
146
|
constructor(opts) {
|
|
146
147
|
super({
|
|
147
148
|
name: "InternalServerException",
|
|
@@ -149,6 +150,7 @@ export class InternalServerException extends __BaseException {
|
|
|
149
150
|
...opts,
|
|
150
151
|
});
|
|
151
152
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
153
|
+
this.reason = opts.reason;
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
export var FlowInputContent;
|
|
@@ -449,6 +449,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
449
449
|
const data = parsedOutput.body;
|
|
450
450
|
const doc = take(data, {
|
|
451
451
|
message: __expectString,
|
|
452
|
+
reason: __expectString,
|
|
452
453
|
});
|
|
453
454
|
Object.assign(contents, doc);
|
|
454
455
|
const exception = new InternalServerException({
|
|
@@ -1061,6 +1061,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
1061
1061
|
* // },
|
|
1062
1062
|
* // internalServerException: { // InternalServerException
|
|
1063
1063
|
* // message: "STRING_VALUE",
|
|
1064
|
+
* // reason: "STRING_VALUE",
|
|
1064
1065
|
* // },
|
|
1065
1066
|
* // validationException: { // ValidationException
|
|
1066
1067
|
* // message: "STRING_VALUE",
|
|
@@ -111,6 +111,7 @@ declare const InvokeFlowCommand_base: {
|
|
|
111
111
|
* // },
|
|
112
112
|
* // internalServerException: { // InternalServerException
|
|
113
113
|
* // message: "STRING_VALUE",
|
|
114
|
+
* // reason: "STRING_VALUE",
|
|
114
115
|
* // },
|
|
115
116
|
* // validationException: { // ValidationException
|
|
116
117
|
* // message: "STRING_VALUE",
|
|
@@ -1073,6 +1073,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1073
1073
|
* // },
|
|
1074
1074
|
* // internalServerException: { // InternalServerException
|
|
1075
1075
|
* // message: "STRING_VALUE",
|
|
1076
|
+
* // reason: "STRING_VALUE",
|
|
1076
1077
|
* // },
|
|
1077
1078
|
* // validationException: { // ValidationException
|
|
1078
1079
|
* // message: "STRING_VALUE",
|
|
@@ -58,6 +58,7 @@ declare const OptimizePromptCommand_base: {
|
|
|
58
58
|
* // },
|
|
59
59
|
* // internalServerException: { // InternalServerException
|
|
60
60
|
* // message: "STRING_VALUE",
|
|
61
|
+
* // reason: "STRING_VALUE",
|
|
61
62
|
* // },
|
|
62
63
|
* // throttlingException: { // ThrottlingException
|
|
63
64
|
* // message: "STRING_VALUE",
|
|
@@ -31,6 +31,7 @@ declare const RetrieveAndGenerateStreamCommand_base: {
|
|
|
31
31
|
* <note>
|
|
32
32
|
* <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p>
|
|
33
33
|
* </note>
|
|
34
|
+
* <p>This operation requires permission for the <code> bedrock:RetrieveAndGenerate</code> action.</p>
|
|
34
35
|
* @example
|
|
35
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
37
|
* ```javascript
|
|
@@ -309,6 +310,7 @@ declare const RetrieveAndGenerateStreamCommand_base: {
|
|
|
309
310
|
* // },
|
|
310
311
|
* // internalServerException: { // InternalServerException
|
|
311
312
|
* // message: "STRING_VALUE",
|
|
313
|
+
* // reason: "STRING_VALUE",
|
|
312
314
|
* // },
|
|
313
315
|
* // validationException: { // ValidationException
|
|
314
316
|
* // message: "STRING_VALUE",
|
|
@@ -1062,6 +1062,11 @@ export declare class DependencyFailedException extends __BaseException {
|
|
|
1062
1062
|
export declare class InternalServerException extends __BaseException {
|
|
1063
1063
|
readonly name: "InternalServerException";
|
|
1064
1064
|
readonly $fault: "server";
|
|
1065
|
+
/**
|
|
1066
|
+
* <p>The reason for the exception. If the reason is <code>BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE</code>, the model invocation service is unavailable. Retry your request.</p>
|
|
1067
|
+
* @public
|
|
1068
|
+
*/
|
|
1069
|
+
reason?: string | undefined;
|
|
1065
1070
|
/**
|
|
1066
1071
|
* @internal
|
|
1067
1072
|
*/
|
|
@@ -338,6 +338,7 @@ export declare class DependencyFailedException extends __BaseException {
|
|
|
338
338
|
export declare class InternalServerException extends __BaseException {
|
|
339
339
|
readonly name: "InternalServerException";
|
|
340
340
|
readonly $fault: "server";
|
|
341
|
+
reason?: string | undefined;
|
|
341
342
|
constructor(
|
|
342
343
|
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
343
344
|
);
|
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.739.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.738.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",
|