@aws-sdk/client-bedrock-runtime 3.637.0 → 3.645.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
@@ -630,6 +630,7 @@ var _ModelNotReadyException = class _ModelNotReadyException extends BedrockRunti
630
630
  });
631
631
  this.name = "ModelNotReadyException";
632
632
  this.$fault = "client";
633
+ this.$retryable = {};
633
634
  Object.setPrototypeOf(this, _ModelNotReadyException.prototype);
634
635
  }
635
636
  };
@@ -334,6 +334,7 @@ export class ModelNotReadyException extends __BaseException {
334
334
  });
335
335
  this.name = "ModelNotReadyException";
336
336
  this.$fault = "client";
337
+ this.$retryable = {};
337
338
  Object.setPrototypeOf(this, ModelNotReadyException.prototype);
338
339
  }
339
340
  }
@@ -387,7 +387,10 @@ declare const ConverseCommand_base: {
387
387
  * <p>The request failed due to an error while processing the model.</p>
388
388
  *
389
389
  * @throws {@link ModelNotReadyException} (client fault)
390
- * <p>The model specified in the request is not ready to serve inference requests.</p>
390
+ * <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
391
+ * will automatically retry the operation up to 5 times. For information about configuring
392
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
393
+ * reference guide.</p>
391
394
  *
392
395
  * @throws {@link ModelTimeoutException} (client fault)
393
396
  * <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
@@ -382,7 +382,10 @@ declare const ConverseStreamCommand_base: {
382
382
  * <p>The request failed due to an error while processing the model.</p>
383
383
  *
384
384
  * @throws {@link ModelNotReadyException} (client fault)
385
- * <p>The model specified in the request is not ready to serve inference requests.</p>
385
+ * <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
386
+ * will automatically retry the operation up to 5 times. For information about configuring
387
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
388
+ * reference guide.</p>
386
389
  *
387
390
  * @throws {@link ModelTimeoutException} (client fault)
388
391
  * <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
@@ -85,7 +85,10 @@ declare const InvokeModelCommand_base: {
85
85
  * <p>The request failed due to an error while processing the model.</p>
86
86
  *
87
87
  * @throws {@link ModelNotReadyException} (client fault)
88
- * <p>The model specified in the request is not ready to serve inference requests.</p>
88
+ * <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
89
+ * will automatically retry the operation up to 5 times. For information about configuring
90
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
91
+ * reference guide.</p>
89
92
  *
90
93
  * @throws {@link ModelTimeoutException} (client fault)
91
94
  * <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
@@ -107,7 +107,10 @@ declare const InvokeModelWithResponseStreamCommand_base: {
107
107
  * <p>The request failed due to an error while processing the model.</p>
108
108
  *
109
109
  * @throws {@link ModelNotReadyException} (client fault)
110
- * <p>The model specified in the request is not ready to serve inference requests.</p>
110
+ * <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
111
+ * will automatically retry the operation up to 5 times. For information about configuring
112
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
113
+ * reference guide.</p>
111
114
  *
112
115
  * @throws {@link ModelStreamErrorException} (client fault)
113
116
  * <p>An error occurred while streaming the response. Retry your request.</p>
@@ -1480,18 +1480,22 @@ export interface ToolConfiguration {
1480
1480
  export interface ConverseRequest {
1481
1481
  /**
1482
1482
  * <p>The identifier for the model that you want to call.</p>
1483
- * <p>The <code>modelId</code> to provide depends on the type of model that you use:</p>
1483
+ * <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p>
1484
1484
  * <ul>
1485
1485
  * <li>
1486
1486
  * <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p>
1487
1487
  * </li>
1488
1488
  * <li>
1489
+ * <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p>
1490
+ * </li>
1491
+ * <li>
1489
1492
  * <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
1490
1493
  * </li>
1491
1494
  * <li>
1492
1495
  * <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
1493
1496
  * </li>
1494
1497
  * </ul>
1498
+ * <p>The Converse API doesn't support <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported models</a>.</p>
1495
1499
  * @public
1496
1500
  */
1497
1501
  modelId: string | undefined;
@@ -1721,12 +1725,16 @@ export declare class ModelErrorException extends __BaseException {
1721
1725
  constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
1722
1726
  }
1723
1727
  /**
1724
- * <p>The model specified in the request is not ready to serve inference requests.</p>
1728
+ * <p>The model specified in the request is not ready to serve inference requests. The AWS SDK
1729
+ * will automatically retry the operation up to 5 times. For information about configuring
1730
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
1731
+ * reference guide.</p>
1725
1732
  * @public
1726
1733
  */
1727
1734
  export declare class ModelNotReadyException extends __BaseException {
1728
1735
  readonly name: "ModelNotReadyException";
1729
1736
  readonly $fault: "client";
1737
+ $retryable: {};
1730
1738
  /**
1731
1739
  * @internal
1732
1740
  */
@@ -1803,18 +1811,22 @@ export interface GuardrailStreamConfiguration {
1803
1811
  export interface ConverseStreamRequest {
1804
1812
  /**
1805
1813
  * <p>The ID for the model.</p>
1806
- * <p>The <code>modelId</code> to provide depends on the type of model that you use:</p>
1814
+ * <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p>
1807
1815
  * <ul>
1808
1816
  * <li>
1809
1817
  * <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p>
1810
1818
  * </li>
1811
1819
  * <li>
1820
+ * <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p>
1821
+ * </li>
1822
+ * <li>
1812
1823
  * <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
1813
1824
  * </li>
1814
1825
  * <li>
1815
1826
  * <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
1816
1827
  * </li>
1817
1828
  * </ul>
1829
+ * <p>The Converse API doesn't support <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported models</a>.</p>
1818
1830
  * @public
1819
1831
  */
1820
1832
  modelId: string | undefined;
@@ -2403,6 +2415,9 @@ export interface InvokeModelRequest {
2403
2415
  * <li>
2404
2416
  * <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
2405
2417
  * </li>
2418
+ * <li>
2419
+ * <p>If you use an <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p>
2420
+ * </li>
2406
2421
  * </ul>
2407
2422
  * @public
2408
2423
  */
@@ -2485,6 +2500,9 @@ export interface InvokeModelWithResponseStreamRequest {
2485
2500
  * <li>
2486
2501
  * <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
2487
2502
  * </li>
2503
+ * <li>
2504
+ * <p>If you use an <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p>
2505
+ * </li>
2488
2506
  * </ul>
2489
2507
  * @public
2490
2508
  */
@@ -721,6 +721,7 @@ export declare class ModelErrorException extends __BaseException {
721
721
  export declare class ModelNotReadyException extends __BaseException {
722
722
  readonly name: "ModelNotReadyException";
723
723
  readonly $fault: "client";
724
+ $retryable: {};
724
725
  constructor(
725
726
  opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
726
727
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.637.0",
4
+ "version": "3.645.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-runtime",
@@ -20,17 +20,17 @@
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.637.0",
24
- "@aws-sdk/client-sts": "3.637.0",
23
+ "@aws-sdk/client-sso-oidc": "3.645.0",
24
+ "@aws-sdk/client-sts": "3.645.0",
25
25
  "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.637.0",
26
+ "@aws-sdk/credential-provider-node": "3.645.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.637.0",
30
+ "@aws-sdk/middleware-user-agent": "3.645.0",
31
31
  "@aws-sdk/region-config-resolver": "3.614.0",
32
32
  "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.637.0",
33
+ "@aws-sdk/util-endpoints": "3.645.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",