aws-sdk-bedrockruntime 1.18.0 → 1.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +45 -11
- data/lib/aws-sdk-bedrockruntime/errors.rb +4 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +51 -11
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7956a8dc871c102e76cf223b199c6da8914d3d3082d6a2a893f225d928749ffb
|
|
4
|
+
data.tar.gz: aa984edbf6754274ecd9edfa570dd91cf521ce56677a01e6607dbcba0daa1850
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2240519cec22b30ccb0284e2abe88540f12aca00ce07368f7fdc845f0b195fd24b6d8837bb515410a30aabe974a9955cc2c609b37f17ca31c2d4aea05a8d0d7d
|
|
7
|
+
data.tar.gz: ca6ed03a4da0993aaf362d328dee019138a984ae7a4fc75c4d1612d5daeaf0e7037312375e02bbf5e20c6d866064b5e32cd750eb3844b8b791a9731d1ee29c67
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.19.0
|
|
@@ -548,26 +548,36 @@ module Aws::BedrockRuntime
|
|
|
548
548
|
# @option params [required, String] :model_id
|
|
549
549
|
# The identifier for the model that you want to call.
|
|
550
550
|
#
|
|
551
|
-
# The `modelId` to provide depends on the type of model
|
|
551
|
+
# The `modelId` to provide depends on the type of model or throughput
|
|
552
|
+
# that you use:
|
|
552
553
|
#
|
|
553
554
|
# * If you use a base model, specify the model ID or its ARN. For a list
|
|
554
555
|
# of model IDs for base models, see [Amazon Bedrock base model IDs
|
|
555
556
|
# (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
|
556
557
|
#
|
|
558
|
+
# * If you use an inference profile, specify the inference profile ID or
|
|
559
|
+
# its ARN. For a list of inference profile IDs, see [Supported Regions
|
|
560
|
+
# and models for cross-region inference][2] in the Amazon Bedrock User
|
|
561
|
+
# Guide.
|
|
562
|
+
#
|
|
557
563
|
# * If you use a provisioned model, specify the ARN of the Provisioned
|
|
558
564
|
# Throughput. For more information, see [Run inference using a
|
|
559
|
-
# Provisioned Throughput][
|
|
565
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
|
560
566
|
#
|
|
561
567
|
# * If you use a custom model, first purchase Provisioned Throughput for
|
|
562
568
|
# it. Then specify the ARN of the resulting provisioned model. For
|
|
563
|
-
# more information, see [Use a custom model in Amazon Bedrock][
|
|
569
|
+
# more information, see [Use a custom model in Amazon Bedrock][4] in
|
|
564
570
|
# the Amazon Bedrock User Guide.
|
|
565
571
|
#
|
|
572
|
+
# The Converse API doesn't support [imported models][5].
|
|
573
|
+
#
|
|
566
574
|
#
|
|
567
575
|
#
|
|
568
576
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
569
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
570
|
-
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
577
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
|
578
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
579
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
580
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
571
581
|
#
|
|
572
582
|
# @option params [required, Array<Types::Message>] :messages
|
|
573
583
|
# The messages that you want to send to the model.
|
|
@@ -891,26 +901,36 @@ module Aws::BedrockRuntime
|
|
|
891
901
|
# @option params [required, String] :model_id
|
|
892
902
|
# The ID for the model.
|
|
893
903
|
#
|
|
894
|
-
# The `modelId` to provide depends on the type of model
|
|
904
|
+
# The `modelId` to provide depends on the type of model or throughput
|
|
905
|
+
# that you use:
|
|
895
906
|
#
|
|
896
907
|
# * If you use a base model, specify the model ID or its ARN. For a list
|
|
897
908
|
# of model IDs for base models, see [Amazon Bedrock base model IDs
|
|
898
909
|
# (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
|
899
910
|
#
|
|
911
|
+
# * If you use an inference profile, specify the inference profile ID or
|
|
912
|
+
# its ARN. For a list of inference profile IDs, see [Supported Regions
|
|
913
|
+
# and models for cross-region inference][2] in the Amazon Bedrock User
|
|
914
|
+
# Guide.
|
|
915
|
+
#
|
|
900
916
|
# * If you use a provisioned model, specify the ARN of the Provisioned
|
|
901
917
|
# Throughput. For more information, see [Run inference using a
|
|
902
|
-
# Provisioned Throughput][
|
|
918
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
|
903
919
|
#
|
|
904
920
|
# * If you use a custom model, first purchase Provisioned Throughput for
|
|
905
921
|
# it. Then specify the ARN of the resulting provisioned model. For
|
|
906
|
-
# more information, see [Use a custom model in Amazon Bedrock][
|
|
922
|
+
# more information, see [Use a custom model in Amazon Bedrock][4] in
|
|
907
923
|
# the Amazon Bedrock User Guide.
|
|
908
924
|
#
|
|
925
|
+
# The Converse API doesn't support [imported models][5].
|
|
926
|
+
#
|
|
909
927
|
#
|
|
910
928
|
#
|
|
911
929
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
912
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
913
|
-
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
930
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
|
931
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
932
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
933
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
914
934
|
#
|
|
915
935
|
# @option params [required, Array<Types::Message>] :messages
|
|
916
936
|
# The messages that you want to send to the model.
|
|
@@ -1443,11 +1463,18 @@ module Aws::BedrockRuntime
|
|
|
1443
1463
|
# more information, see [Use a custom model in Amazon Bedrock][3] in
|
|
1444
1464
|
# the Amazon Bedrock User Guide.
|
|
1445
1465
|
#
|
|
1466
|
+
# * If you use an [imported model][4], specify the ARN of the imported
|
|
1467
|
+
# model. You can get the model ARN from a successful call to
|
|
1468
|
+
# [CreateModelImportJob][5] or from the Imported models page in the
|
|
1469
|
+
# Amazon Bedrock console.
|
|
1470
|
+
#
|
|
1446
1471
|
#
|
|
1447
1472
|
#
|
|
1448
1473
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
1449
1474
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
1450
1475
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
1476
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
1477
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
|
1451
1478
|
#
|
|
1452
1479
|
# @option params [String] :trace
|
|
1453
1480
|
# Specifies whether to enable or disable the Bedrock trace. If enabled,
|
|
@@ -1562,11 +1589,18 @@ module Aws::BedrockRuntime
|
|
|
1562
1589
|
# more information, see [Use a custom model in Amazon Bedrock][3] in
|
|
1563
1590
|
# the Amazon Bedrock User Guide.
|
|
1564
1591
|
#
|
|
1592
|
+
# * If you use an [imported model][4], specify the ARN of the imported
|
|
1593
|
+
# model. You can get the model ARN from a successful call to
|
|
1594
|
+
# [CreateModelImportJob][5] or from the Imported models page in the
|
|
1595
|
+
# Amazon Bedrock console.
|
|
1596
|
+
#
|
|
1565
1597
|
#
|
|
1566
1598
|
#
|
|
1567
1599
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
1568
1600
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
1569
1601
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
1602
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
1603
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
|
1570
1604
|
#
|
|
1571
1605
|
# @option params [String] :trace
|
|
1572
1606
|
# Specifies whether to enable or disable the Bedrock trace. If enabled,
|
|
@@ -1815,7 +1849,7 @@ module Aws::BedrockRuntime
|
|
|
1815
1849
|
params: params,
|
|
1816
1850
|
config: config)
|
|
1817
1851
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
1818
|
-
context[:gem_version] = '1.
|
|
1852
|
+
context[:gem_version] = '1.19.0'
|
|
1819
1853
|
Seahorse::Client::Request.new(handlers, context)
|
|
1820
1854
|
end
|
|
1821
1855
|
|
|
@@ -312,26 +312,36 @@ module Aws::BedrockRuntime
|
|
|
312
312
|
# @!attribute [rw] model_id
|
|
313
313
|
# The identifier for the model that you want to call.
|
|
314
314
|
#
|
|
315
|
-
# The `modelId` to provide depends on the type of model
|
|
315
|
+
# The `modelId` to provide depends on the type of model or throughput
|
|
316
|
+
# that you use:
|
|
316
317
|
#
|
|
317
318
|
# * If you use a base model, specify the model ID or its ARN. For a
|
|
318
319
|
# list of model IDs for base models, see [Amazon Bedrock base model
|
|
319
320
|
# IDs (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
|
320
321
|
#
|
|
322
|
+
# * If you use an inference profile, specify the inference profile ID
|
|
323
|
+
# or its ARN. For a list of inference profile IDs, see [Supported
|
|
324
|
+
# Regions and models for cross-region inference][2] in the Amazon
|
|
325
|
+
# Bedrock User Guide.
|
|
326
|
+
#
|
|
321
327
|
# * If you use a provisioned model, specify the ARN of the Provisioned
|
|
322
328
|
# Throughput. For more information, see [Run inference using a
|
|
323
|
-
# Provisioned Throughput][
|
|
329
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
|
324
330
|
#
|
|
325
331
|
# * If you use a custom model, first purchase Provisioned Throughput
|
|
326
332
|
# for it. Then specify the ARN of the resulting provisioned model.
|
|
327
333
|
# For more information, see [Use a custom model in Amazon
|
|
328
|
-
# Bedrock][
|
|
334
|
+
# Bedrock][4] in the Amazon Bedrock User Guide.
|
|
335
|
+
#
|
|
336
|
+
# The Converse API doesn't support [imported models][5].
|
|
329
337
|
#
|
|
330
338
|
#
|
|
331
339
|
#
|
|
332
340
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
333
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
334
|
-
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
341
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
|
342
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
343
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
344
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
335
345
|
# @return [String]
|
|
336
346
|
#
|
|
337
347
|
# @!attribute [rw] messages
|
|
@@ -498,26 +508,36 @@ module Aws::BedrockRuntime
|
|
|
498
508
|
# @!attribute [rw] model_id
|
|
499
509
|
# The ID for the model.
|
|
500
510
|
#
|
|
501
|
-
# The `modelId` to provide depends on the type of model
|
|
511
|
+
# The `modelId` to provide depends on the type of model or throughput
|
|
512
|
+
# that you use:
|
|
502
513
|
#
|
|
503
514
|
# * If you use a base model, specify the model ID or its ARN. For a
|
|
504
515
|
# list of model IDs for base models, see [Amazon Bedrock base model
|
|
505
516
|
# IDs (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
|
506
517
|
#
|
|
518
|
+
# * If you use an inference profile, specify the inference profile ID
|
|
519
|
+
# or its ARN. For a list of inference profile IDs, see [Supported
|
|
520
|
+
# Regions and models for cross-region inference][2] in the Amazon
|
|
521
|
+
# Bedrock User Guide.
|
|
522
|
+
#
|
|
507
523
|
# * If you use a provisioned model, specify the ARN of the Provisioned
|
|
508
524
|
# Throughput. For more information, see [Run inference using a
|
|
509
|
-
# Provisioned Throughput][
|
|
525
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
|
510
526
|
#
|
|
511
527
|
# * If you use a custom model, first purchase Provisioned Throughput
|
|
512
528
|
# for it. Then specify the ARN of the resulting provisioned model.
|
|
513
529
|
# For more information, see [Use a custom model in Amazon
|
|
514
|
-
# Bedrock][
|
|
530
|
+
# Bedrock][4] in the Amazon Bedrock User Guide.
|
|
531
|
+
#
|
|
532
|
+
# The Converse API doesn't support [imported models][5].
|
|
515
533
|
#
|
|
516
534
|
#
|
|
517
535
|
#
|
|
518
536
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
519
|
-
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
520
|
-
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
537
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
|
538
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
539
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
540
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
521
541
|
# @return [String]
|
|
522
542
|
#
|
|
523
543
|
# @!attribute [rw] messages
|
|
@@ -1399,11 +1419,18 @@ module Aws::BedrockRuntime
|
|
|
1399
1419
|
# For more information, see [Use a custom model in Amazon
|
|
1400
1420
|
# Bedrock][3] in the Amazon Bedrock User Guide.
|
|
1401
1421
|
#
|
|
1422
|
+
# * If you use an [imported model][4], specify the ARN of the imported
|
|
1423
|
+
# model. You can get the model ARN from a successful call to
|
|
1424
|
+
# [CreateModelImportJob][5] or from the Imported models page in the
|
|
1425
|
+
# Amazon Bedrock console.
|
|
1426
|
+
#
|
|
1402
1427
|
#
|
|
1403
1428
|
#
|
|
1404
1429
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
1405
1430
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
1406
1431
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
1432
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
1433
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
|
1407
1434
|
# @return [String]
|
|
1408
1435
|
#
|
|
1409
1436
|
# @!attribute [rw] trace
|
|
@@ -1510,11 +1537,18 @@ module Aws::BedrockRuntime
|
|
|
1510
1537
|
# For more information, see [Use a custom model in Amazon
|
|
1511
1538
|
# Bedrock][3] in the Amazon Bedrock User Guide.
|
|
1512
1539
|
#
|
|
1540
|
+
# * If you use an [imported model][4], specify the ARN of the imported
|
|
1541
|
+
# model. You can get the model ARN from a successful call to
|
|
1542
|
+
# [CreateModelImportJob][5] or from the Imported models page in the
|
|
1543
|
+
# Amazon Bedrock console.
|
|
1544
|
+
#
|
|
1513
1545
|
#
|
|
1514
1546
|
#
|
|
1515
1547
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
|
1516
1548
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
|
1517
1549
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
|
1550
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
|
1551
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
|
1518
1552
|
# @return [String]
|
|
1519
1553
|
#
|
|
1520
1554
|
# @!attribute [rw] trace
|
|
@@ -1675,7 +1709,13 @@ module Aws::BedrockRuntime
|
|
|
1675
1709
|
end
|
|
1676
1710
|
|
|
1677
1711
|
# The model specified in the request is not ready to serve inference
|
|
1678
|
-
# requests.
|
|
1712
|
+
# requests. The AWS SDK will automatically retry the operation up to 5
|
|
1713
|
+
# times. For information about configuring automatic retries, see [Retry
|
|
1714
|
+
# behavior][1] in the *AWS SDKs and Tools* reference guide.
|
|
1715
|
+
#
|
|
1716
|
+
#
|
|
1717
|
+
#
|
|
1718
|
+
# [1]: https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
|
1679
1719
|
#
|
|
1680
1720
|
# @!attribute [rw] message
|
|
1681
1721
|
# @return [String]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-bedrockruntime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-08-
|
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|