aws-sdk-bedrockruntime 1.16.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +42 -6
- data/lib/aws-sdk-bedrockruntime/client_api.rb +12 -1
- data/lib/aws-sdk-bedrockruntime/errors.rb +16 -0
- data/lib/aws-sdk-bedrockruntime/event_streams.rb +10 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +32 -4
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +8 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33cd36154146924d39255d028476c5025147790fc801dba1e46ec90da47a6fd7
|
4
|
+
data.tar.gz: c8b86f4a6e8ea248f830a67506ffe77870f537ac4db7ae03122aede570c282d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1323ceb9970cc9335e29a0cd6ce06214bf958d6cbeb1b867309b9c28ff12be954ebfab38e472d469b445e753e19091efada9b3d81aba1882e5a00ea19c8919
|
7
|
+
data.tar.gz: 063bc5599b39a4ff55a41f2d8bdb68c82e6de6d1a8faecfa17aac69c0e5cf63a333003f45e66c457504854c00416035ed960c71b3569f6a2c4cbe7c8f739a96f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.18.0 (2024-08-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Bedrock SDK updates for Inference Profile.
|
8
|
+
|
9
|
+
1.17.0 (2024-07-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Provides ServiceUnavailableException error message
|
13
|
+
|
4
14
|
1.16.0 (2024-07-10)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.18.0
|
@@ -527,8 +527,11 @@ module Aws::BedrockRuntime
|
|
527
527
|
# Sends messages to the specified Amazon Bedrock model. `Converse`
|
528
528
|
# provides a consistent interface that works with all models that
|
529
529
|
# support messages. This allows you to write code once and use it with
|
530
|
-
# different models.
|
531
|
-
#
|
530
|
+
# different models. If a model has unique inference parameters, you can
|
531
|
+
# also pass those unique parameters to the model.
|
532
|
+
#
|
533
|
+
# Amazon Bedrock doesn't store any text, images, or documents that you
|
534
|
+
# provide as content. The data is only used to generate the response.
|
532
535
|
#
|
533
536
|
# For information about the Converse API, see *Use the Converse API* in
|
534
537
|
# the *Amazon Bedrock User Guide*. To use a guardrail, see *Use a
|
@@ -861,6 +864,14 @@ module Aws::BedrockRuntime
|
|
861
864
|
# [GetFoundationModel][1] and check the `responseStreamingSupported`
|
862
865
|
# field in the response.
|
863
866
|
#
|
867
|
+
# <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
|
868
|
+
# including `ConverseStream`.
|
869
|
+
#
|
870
|
+
# </note>
|
871
|
+
#
|
872
|
+
# Amazon Bedrock doesn't store any text, images, or documents that you
|
873
|
+
# provide as content. The data is only used to generate the response.
|
874
|
+
#
|
864
875
|
# For information about the Converse API, see *Use the Converse API* in
|
865
876
|
# the *Amazon Bedrock User Guide*. To use a guardrail, see *Use a
|
866
877
|
# guardrail with the Converse API* in the *Amazon Bedrock User Guide*.
|
@@ -1032,6 +1043,9 @@ module Aws::BedrockRuntime
|
|
1032
1043
|
# handler.on_throttling_exception_event do |event|
|
1033
1044
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
1034
1045
|
# end
|
1046
|
+
# handler.on_service_unavailable_exception_event do |event|
|
1047
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1048
|
+
# end
|
1035
1049
|
#
|
1036
1050
|
# client.converse_stream( # params input #, event_stream_handler: handler)
|
1037
1051
|
#
|
@@ -1069,6 +1083,9 @@ module Aws::BedrockRuntime
|
|
1069
1083
|
# stream.on_throttling_exception_event do |event|
|
1070
1084
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
1071
1085
|
# end
|
1086
|
+
# stream.on_service_unavailable_exception_event do |event|
|
1087
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1088
|
+
# end
|
1072
1089
|
# end
|
1073
1090
|
#
|
1074
1091
|
# client.converse_stream( # params input #, event_stream_handler: handler)
|
@@ -1106,6 +1123,9 @@ module Aws::BedrockRuntime
|
|
1106
1123
|
# handler.on_throttling_exception_event do |event|
|
1107
1124
|
# event # => Aws::BedrockRuntime::Types::throttlingException
|
1108
1125
|
# end
|
1126
|
+
# handler.on_service_unavailable_exception_event do |event|
|
1127
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1128
|
+
# end
|
1109
1129
|
#
|
1110
1130
|
# client.converse_stream( # params input #, event_stream_handler: handler) do |stream|
|
1111
1131
|
# stream.on_error_event do |event|
|
@@ -1241,7 +1261,7 @@ module Aws::BedrockRuntime
|
|
1241
1261
|
#
|
1242
1262
|
# All events are available at resp.stream:
|
1243
1263
|
# resp.stream #=> Enumerator
|
1244
|
-
# resp.stream.event_types #=> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception]
|
1264
|
+
# resp.stream.event_types #=> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :service_unavailable_exception]
|
1245
1265
|
#
|
1246
1266
|
# For :message_start event available at #on_message_start_event callback and response eventstream enumerator:
|
1247
1267
|
# event.role #=> String, one of "user", "assistant"
|
@@ -1345,6 +1365,9 @@ module Aws::BedrockRuntime
|
|
1345
1365
|
# For :throttling_exception event available at #on_throttling_exception_event callback and response eventstream enumerator:
|
1346
1366
|
# event.message #=> String
|
1347
1367
|
#
|
1368
|
+
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
1369
|
+
# event.message #=> String
|
1370
|
+
#
|
1348
1371
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ConverseStream AWS API Documentation
|
1349
1372
|
#
|
1350
1373
|
# @overload converse_stream(params = {})
|
@@ -1486,7 +1509,8 @@ module Aws::BedrockRuntime
|
|
1486
1509
|
# To see if a model supports streaming, call [GetFoundationModel][1] and
|
1487
1510
|
# check the `responseStreamingSupported` field in the response.
|
1488
1511
|
#
|
1489
|
-
# <note markdown="1"> The CLI doesn't support
|
1512
|
+
# <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
|
1513
|
+
# including `InvokeModelWithResponseStream`.
|
1490
1514
|
#
|
1491
1515
|
# </note>
|
1492
1516
|
#
|
@@ -1632,6 +1656,9 @@ module Aws::BedrockRuntime
|
|
1632
1656
|
# handler.on_model_timeout_exception_event do |event|
|
1633
1657
|
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
1634
1658
|
# end
|
1659
|
+
# handler.on_service_unavailable_exception_event do |event|
|
1660
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1661
|
+
# end
|
1635
1662
|
#
|
1636
1663
|
# client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
|
1637
1664
|
#
|
@@ -1657,6 +1684,9 @@ module Aws::BedrockRuntime
|
|
1657
1684
|
# stream.on_model_timeout_exception_event do |event|
|
1658
1685
|
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
1659
1686
|
# end
|
1687
|
+
# stream.on_service_unavailable_exception_event do |event|
|
1688
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1689
|
+
# end
|
1660
1690
|
# end
|
1661
1691
|
#
|
1662
1692
|
# client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
|
@@ -1682,6 +1712,9 @@ module Aws::BedrockRuntime
|
|
1682
1712
|
# handler.on_model_timeout_exception_event do |event|
|
1683
1713
|
# event # => Aws::BedrockRuntime::Types::modelTimeoutException
|
1684
1714
|
# end
|
1715
|
+
# handler.on_service_unavailable_exception_event do |event|
|
1716
|
+
# event # => Aws::BedrockRuntime::Types::serviceUnavailableException
|
1717
|
+
# end
|
1685
1718
|
#
|
1686
1719
|
# client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler) do |stream|
|
1687
1720
|
# stream.on_error_event do |event|
|
@@ -1715,7 +1748,7 @@ module Aws::BedrockRuntime
|
|
1715
1748
|
#
|
1716
1749
|
# All events are available at resp.body:
|
1717
1750
|
# resp.body #=> Enumerator
|
1718
|
-
# resp.body.event_types #=> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception]
|
1751
|
+
# resp.body.event_types #=> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
1719
1752
|
#
|
1720
1753
|
# For :chunk event available at #on_chunk_event callback and response eventstream enumerator:
|
1721
1754
|
# event.bytes #=> String
|
@@ -1737,6 +1770,9 @@ module Aws::BedrockRuntime
|
|
1737
1770
|
# For :model_timeout_exception event available at #on_model_timeout_exception_event callback and response eventstream enumerator:
|
1738
1771
|
# event.message #=> String
|
1739
1772
|
#
|
1773
|
+
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
1774
|
+
# event.message #=> String
|
1775
|
+
#
|
1740
1776
|
# resp.content_type #=> String
|
1741
1777
|
#
|
1742
1778
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStream AWS API Documentation
|
@@ -1779,7 +1815,7 @@ module Aws::BedrockRuntime
|
|
1779
1815
|
params: params,
|
1780
1816
|
config: config)
|
1781
1817
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
1782
|
-
context[:gem_version] = '1.
|
1818
|
+
context[:gem_version] = '1.18.0'
|
1783
1819
|
Seahorse::Client::Request.new(handlers, context)
|
1784
1820
|
end
|
1785
1821
|
|
@@ -147,6 +147,7 @@ module Aws::BedrockRuntime
|
|
147
147
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
148
148
|
ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
|
149
149
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
150
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
150
151
|
SpecificToolChoice = Shapes::StructureShape.new(name: 'SpecificToolChoice')
|
151
152
|
StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
|
152
153
|
StopReason = Shapes::StringShape.new(name: 'StopReason')
|
@@ -285,6 +286,7 @@ module Aws::BedrockRuntime
|
|
285
286
|
ConverseStreamOutput.add_member(:model_stream_error_exception, Shapes::ShapeRef.new(shape: ModelStreamErrorException, location_name: "modelStreamErrorException"))
|
286
287
|
ConverseStreamOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
287
288
|
ConverseStreamOutput.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
|
289
|
+
ConverseStreamOutput.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException"))
|
288
290
|
ConverseStreamOutput.struct_class = Types::ConverseStreamOutput
|
289
291
|
|
290
292
|
ConverseStreamRequest.add_member(:model_id, Shapes::ShapeRef.new(shape: ConversationalModelId, required: true, location: "uri", location_name: "modelId"))
|
@@ -556,11 +558,15 @@ module Aws::BedrockRuntime
|
|
556
558
|
ResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
557
559
|
ResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
|
558
560
|
ResponseStream.add_member(:model_timeout_exception, Shapes::ShapeRef.new(shape: ModelTimeoutException, location_name: "modelTimeoutException"))
|
561
|
+
ResponseStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, location_name: "serviceUnavailableException"))
|
559
562
|
ResponseStream.struct_class = Types::ResponseStream
|
560
563
|
|
561
564
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
562
565
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
563
566
|
|
567
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
568
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
569
|
+
|
564
570
|
SpecificToolChoice.add_member(:name, Shapes::ShapeRef.new(shape: ToolName, required: true, location_name: "name"))
|
565
571
|
SpecificToolChoice.struct_class = Types::SpecificToolChoice
|
566
572
|
|
@@ -657,9 +663,10 @@ module Aws::BedrockRuntime
|
|
657
663
|
|
658
664
|
api.metadata = {
|
659
665
|
"apiVersion" => "2023-09-30",
|
666
|
+
"auth" => ["aws.auth#sigv4"],
|
660
667
|
"endpointPrefix" => "bedrock-runtime",
|
661
|
-
"jsonVersion" => "1.1",
|
662
668
|
"protocol" => "rest-json",
|
669
|
+
"protocols" => ["rest-json"],
|
663
670
|
"serviceFullName" => "Amazon Bedrock Runtime",
|
664
671
|
"serviceId" => "Bedrock Runtime",
|
665
672
|
"signatureVersion" => "v4",
|
@@ -692,6 +699,7 @@ module Aws::BedrockRuntime
|
|
692
699
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
693
700
|
o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
|
694
701
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
702
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
695
703
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
696
704
|
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
697
705
|
o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
|
@@ -708,6 +716,7 @@ module Aws::BedrockRuntime
|
|
708
716
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
709
717
|
o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
|
710
718
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
719
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
711
720
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
712
721
|
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
713
722
|
o.errors << Shapes::ShapeRef.new(shape: ModelErrorException)
|
@@ -724,6 +733,7 @@ module Aws::BedrockRuntime
|
|
724
733
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
725
734
|
o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
|
726
735
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
736
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
727
737
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
728
738
|
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
729
739
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
@@ -741,6 +751,7 @@ module Aws::BedrockRuntime
|
|
741
751
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
742
752
|
o.errors << Shapes::ShapeRef.new(shape: ModelTimeoutException)
|
743
753
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
754
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
744
755
|
o.errors << Shapes::ShapeRef.new(shape: ModelStreamErrorException)
|
745
756
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
746
757
|
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
@@ -35,6 +35,7 @@ module Aws::BedrockRuntime
|
|
35
35
|
# * {ModelTimeoutException}
|
36
36
|
# * {ResourceNotFoundException}
|
37
37
|
# * {ServiceQuotaExceededException}
|
38
|
+
# * {ServiceUnavailableException}
|
38
39
|
# * {ThrottlingException}
|
39
40
|
# * {ValidationException}
|
40
41
|
#
|
@@ -184,6 +185,21 @@ module Aws::BedrockRuntime
|
|
184
185
|
end
|
185
186
|
end
|
186
187
|
|
188
|
+
class ServiceUnavailableException < ServiceError
|
189
|
+
|
190
|
+
# @param [Seahorse::Client::RequestContext] context
|
191
|
+
# @param [String] message
|
192
|
+
# @param [Aws::BedrockRuntime::Types::ServiceUnavailableException] data
|
193
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
194
|
+
super(context, message, data)
|
195
|
+
end
|
196
|
+
|
197
|
+
# @return [String]
|
198
|
+
def message
|
199
|
+
@message || @data[:message]
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
187
203
|
class ThrottlingException < ServiceError
|
188
204
|
|
189
205
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -55,6 +55,10 @@ module Aws::BedrockRuntime
|
|
55
55
|
@event_emitter.on(:throttling_exception, block) if block_given?
|
56
56
|
end
|
57
57
|
|
58
|
+
def on_service_unavailable_exception_event(&block)
|
59
|
+
@event_emitter.on(:service_unavailable_exception, block) if block_given?
|
60
|
+
end
|
61
|
+
|
58
62
|
def on_error_event(&block)
|
59
63
|
@event_emitter.on(:error, block) if block_given?
|
60
64
|
end
|
@@ -78,6 +82,7 @@ module Aws::BedrockRuntime
|
|
78
82
|
on_model_stream_error_exception_event(&block)
|
79
83
|
on_validation_exception_event(&block)
|
80
84
|
on_throttling_exception_event(&block)
|
85
|
+
on_service_unavailable_exception_event(&block)
|
81
86
|
on_error_event(&block)
|
82
87
|
on_initial_response_event(&block)
|
83
88
|
on_unknown_event(&block)
|
@@ -118,6 +123,10 @@ module Aws::BedrockRuntime
|
|
118
123
|
@event_emitter.on(:model_timeout_exception, block) if block_given?
|
119
124
|
end
|
120
125
|
|
126
|
+
def on_service_unavailable_exception_event(&block)
|
127
|
+
@event_emitter.on(:service_unavailable_exception, block) if block_given?
|
128
|
+
end
|
129
|
+
|
121
130
|
def on_error_event(&block)
|
122
131
|
@event_emitter.on(:error, block) if block_given?
|
123
132
|
end
|
@@ -137,6 +146,7 @@ module Aws::BedrockRuntime
|
|
137
146
|
on_validation_exception_event(&block)
|
138
147
|
on_throttling_exception_event(&block)
|
139
148
|
on_model_timeout_exception_event(&block)
|
149
|
+
on_service_unavailable_exception_event(&block)
|
140
150
|
on_error_event(&block)
|
141
151
|
on_initial_response_event(&block)
|
142
152
|
on_unknown_event(&block)
|
@@ -1756,9 +1756,14 @@ module Aws::BedrockRuntime
|
|
1756
1756
|
include Aws::Structure
|
1757
1757
|
end
|
1758
1758
|
|
1759
|
-
#
|
1759
|
+
# Your request exceeds the service quota for your account. You can view
|
1760
|
+
# your quotas at [Viewing service quotas][1]. You can resubmit your
|
1760
1761
|
# request later.
|
1761
1762
|
#
|
1763
|
+
#
|
1764
|
+
#
|
1765
|
+
# [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html
|
1766
|
+
#
|
1762
1767
|
# @!attribute [rw] message
|
1763
1768
|
# @return [String]
|
1764
1769
|
#
|
@@ -1770,6 +1775,20 @@ module Aws::BedrockRuntime
|
|
1770
1775
|
include Aws::Structure
|
1771
1776
|
end
|
1772
1777
|
|
1778
|
+
# The service isn't currently available. Try again later.
|
1779
|
+
#
|
1780
|
+
# @!attribute [rw] message
|
1781
|
+
# @return [String]
|
1782
|
+
#
|
1783
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ServiceUnavailableException AWS API Documentation
|
1784
|
+
#
|
1785
|
+
class ServiceUnavailableException < Struct.new(
|
1786
|
+
:message,
|
1787
|
+
:event_type)
|
1788
|
+
SENSITIVE = []
|
1789
|
+
include Aws::Structure
|
1790
|
+
end
|
1791
|
+
|
1773
1792
|
# The model must request a specific tool. For example, `\{"tool" :
|
1774
1793
|
# \{"name" : "Your tool name"\}\}`.
|
1775
1794
|
#
|
@@ -1825,7 +1844,14 @@ module Aws::BedrockRuntime
|
|
1825
1844
|
class Unknown < SystemContentBlock; end
|
1826
1845
|
end
|
1827
1846
|
|
1828
|
-
#
|
1847
|
+
# Your request was throttled because of service-wide limitations.
|
1848
|
+
# Resubmit your request later or in a different region. You can also
|
1849
|
+
# purchase [Provisioned Throughput][1] to increase the rate or number of
|
1850
|
+
# tokens you can process.
|
1851
|
+
#
|
1852
|
+
#
|
1853
|
+
#
|
1854
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
1829
1855
|
#
|
1830
1856
|
# @!attribute [rw] message
|
1831
1857
|
# @return [String]
|
@@ -2175,7 +2201,8 @@ module Aws::BedrockRuntime
|
|
2175
2201
|
:internal_server_exception,
|
2176
2202
|
:model_stream_error_exception,
|
2177
2203
|
:validation_exception,
|
2178
|
-
:throttling_exception
|
2204
|
+
:throttling_exception,
|
2205
|
+
:service_unavailable_exception
|
2179
2206
|
]
|
2180
2207
|
end
|
2181
2208
|
|
@@ -2197,7 +2224,8 @@ module Aws::BedrockRuntime
|
|
2197
2224
|
:model_stream_error_exception,
|
2198
2225
|
:validation_exception,
|
2199
2226
|
:throttling_exception,
|
2200
|
-
:model_timeout_exception
|
2227
|
+
:model_timeout_exception,
|
2228
|
+
:service_unavailable_exception
|
2201
2229
|
]
|
2202
2230
|
end
|
2203
2231
|
|
data/sig/errors.rbs
CHANGED
@@ -39,6 +39,9 @@ module Aws
|
|
39
39
|
class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
|
40
40
|
def message: () -> ::String
|
41
41
|
end
|
42
|
+
class ServiceUnavailableException < ::Aws::Errors::ServiceError
|
43
|
+
def message: () -> ::String
|
44
|
+
end
|
42
45
|
class ThrottlingException < ::Aws::Errors::ServiceError
|
43
46
|
def message: () -> ::String
|
44
47
|
end
|
data/sig/types.rbs
CHANGED
@@ -485,6 +485,12 @@ module Aws::BedrockRuntime
|
|
485
485
|
SENSITIVE: []
|
486
486
|
end
|
487
487
|
|
488
|
+
class ServiceUnavailableException
|
489
|
+
attr_accessor message: ::String
|
490
|
+
attr_accessor event_type: untyped
|
491
|
+
SENSITIVE: []
|
492
|
+
end
|
493
|
+
|
488
494
|
class SpecificToolChoice
|
489
495
|
attr_accessor name: ::String
|
490
496
|
SENSITIVE: []
|
@@ -621,11 +627,11 @@ module Aws::BedrockRuntime
|
|
621
627
|
end
|
622
628
|
|
623
629
|
class ConverseStreamOutput < Enumerator[untyped, untyped]
|
624
|
-
def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception]
|
630
|
+
def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :service_unavailable_exception]
|
625
631
|
end
|
626
632
|
|
627
633
|
class ResponseStream < Enumerator[untyped, untyped]
|
628
|
-
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception]
|
634
|
+
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
629
635
|
end
|
630
636
|
end
|
631
637
|
end
|
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.18.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-
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for Amazon Bedrock Runtime. This gem is part of
|
48
48
|
the AWS SDK for Ruby.
|
49
49
|
email:
|