aws-sdk-bedrockruntime 1.63.0 → 1.71.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 +40 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +274 -7
- data/lib/aws-sdk-bedrockruntime/client_api.rb +105 -4
- data/lib/aws-sdk-bedrockruntime/types.rb +390 -10
- data/lib/aws-sdk-bedrockruntime.rb +17 -1
- data/sig/client.rbs +203 -14
- data/sig/types.rbs +108 -2
- metadata +3 -3
data/sig/types.rbs
CHANGED
|
@@ -16,6 +16,15 @@ module Aws::BedrockRuntime
|
|
|
16
16
|
class AnyToolChoice < Aws::EmptyStructure
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
class AppliedGuardrailDetails
|
|
20
|
+
attr_accessor guardrail_id: ::String
|
|
21
|
+
attr_accessor guardrail_version: ::String
|
|
22
|
+
attr_accessor guardrail_arn: ::String
|
|
23
|
+
attr_accessor guardrail_origin: ::Array[("REQUEST" | "ACCOUNT_ENFORCED" | "ORGANIZATION_ENFORCED")]
|
|
24
|
+
attr_accessor guardrail_ownership: ("SELF" | "CROSS_ACCOUNT")
|
|
25
|
+
SENSITIVE: []
|
|
26
|
+
end
|
|
27
|
+
|
|
19
28
|
class ApplyGuardrailRequest
|
|
20
29
|
attr_accessor guardrail_identifier: ::String
|
|
21
30
|
attr_accessor guardrail_version: ::String
|
|
@@ -66,6 +75,27 @@ module Aws::BedrockRuntime
|
|
|
66
75
|
SENSITIVE: [:failure_message]
|
|
67
76
|
end
|
|
68
77
|
|
|
78
|
+
class AudioBlock
|
|
79
|
+
attr_accessor format: ("mp3" | "opus" | "wav" | "aac" | "flac" | "mp4" | "ogg" | "mkv" | "mka" | "x-aac" | "m4a" | "mpeg" | "mpga" | "pcm" | "webm")
|
|
80
|
+
attr_accessor source: Types::AudioSource
|
|
81
|
+
attr_accessor error: Types::ErrorBlock
|
|
82
|
+
SENSITIVE: [:source, :error]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class AudioSource
|
|
86
|
+
attr_accessor bytes: ::String
|
|
87
|
+
attr_accessor s3_location: Types::S3Location
|
|
88
|
+
attr_accessor unknown: untyped
|
|
89
|
+
SENSITIVE: []
|
|
90
|
+
|
|
91
|
+
class Bytes < AudioSource
|
|
92
|
+
end
|
|
93
|
+
class S3Location < AudioSource
|
|
94
|
+
end
|
|
95
|
+
class Unknown < AudioSource
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
69
99
|
class AutoToolChoice < Aws::EmptyStructure
|
|
70
100
|
end
|
|
71
101
|
|
|
@@ -88,6 +118,7 @@ module Aws::BedrockRuntime
|
|
|
88
118
|
|
|
89
119
|
class Citation
|
|
90
120
|
attr_accessor title: ::String
|
|
121
|
+
attr_accessor source: ::String
|
|
91
122
|
attr_accessor source_content: ::Array[Types::CitationSourceContent]
|
|
92
123
|
attr_accessor location: Types::CitationLocation
|
|
93
124
|
SENSITIVE: []
|
|
@@ -109,6 +140,7 @@ module Aws::BedrockRuntime
|
|
|
109
140
|
attr_accessor document_char: Types::DocumentCharLocation
|
|
110
141
|
attr_accessor document_page: Types::DocumentPageLocation
|
|
111
142
|
attr_accessor document_chunk: Types::DocumentChunkLocation
|
|
143
|
+
attr_accessor search_result_location: Types::SearchResultLocation
|
|
112
144
|
attr_accessor unknown: untyped
|
|
113
145
|
SENSITIVE: []
|
|
114
146
|
|
|
@@ -120,6 +152,8 @@ module Aws::BedrockRuntime
|
|
|
120
152
|
end
|
|
121
153
|
class DocumentChunk < CitationLocation
|
|
122
154
|
end
|
|
155
|
+
class SearchResultLocation < CitationLocation
|
|
156
|
+
end
|
|
123
157
|
class Unknown < CitationLocation
|
|
124
158
|
end
|
|
125
159
|
end
|
|
@@ -153,6 +187,7 @@ module Aws::BedrockRuntime
|
|
|
153
187
|
|
|
154
188
|
class CitationsDelta
|
|
155
189
|
attr_accessor title: ::String
|
|
190
|
+
attr_accessor source: ::String
|
|
156
191
|
attr_accessor source_content: ::Array[Types::CitationSourceContentDelta]
|
|
157
192
|
attr_accessor location: Types::CitationLocation
|
|
158
193
|
SENSITIVE: []
|
|
@@ -168,12 +203,14 @@ module Aws::BedrockRuntime
|
|
|
168
203
|
attr_accessor image: Types::ImageBlock
|
|
169
204
|
attr_accessor document: Types::DocumentBlock
|
|
170
205
|
attr_accessor video: Types::VideoBlock
|
|
206
|
+
attr_accessor audio: Types::AudioBlock
|
|
171
207
|
attr_accessor tool_use: Types::ToolUseBlock
|
|
172
208
|
attr_accessor tool_result: Types::ToolResultBlock
|
|
173
209
|
attr_accessor guard_content: Types::GuardrailConverseContentBlock
|
|
174
210
|
attr_accessor cache_point: Types::CachePointBlock
|
|
175
211
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
|
176
212
|
attr_accessor citations_content: Types::CitationsContentBlock
|
|
213
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
177
214
|
attr_accessor unknown: untyped
|
|
178
215
|
SENSITIVE: [:reasoning_content]
|
|
179
216
|
|
|
@@ -185,6 +222,8 @@ module Aws::BedrockRuntime
|
|
|
185
222
|
end
|
|
186
223
|
class Video < ContentBlock
|
|
187
224
|
end
|
|
225
|
+
class Audio < ContentBlock
|
|
226
|
+
end
|
|
188
227
|
class ToolUse < ContentBlock
|
|
189
228
|
end
|
|
190
229
|
class ToolResult < ContentBlock
|
|
@@ -197,6 +236,8 @@ module Aws::BedrockRuntime
|
|
|
197
236
|
end
|
|
198
237
|
class CitationsContent < ContentBlock
|
|
199
238
|
end
|
|
239
|
+
class SearchResult < ContentBlock
|
|
240
|
+
end
|
|
200
241
|
class Unknown < ContentBlock
|
|
201
242
|
end
|
|
202
243
|
end
|
|
@@ -207,6 +248,7 @@ module Aws::BedrockRuntime
|
|
|
207
248
|
attr_accessor tool_result: ::Array[Types::ToolResultBlockDelta]
|
|
208
249
|
attr_accessor reasoning_content: Types::ReasoningContentBlockDelta
|
|
209
250
|
attr_accessor citation: Types::CitationsDelta
|
|
251
|
+
attr_accessor image: Types::ImageBlockDelta
|
|
210
252
|
attr_accessor unknown: untyped
|
|
211
253
|
SENSITIVE: [:reasoning_content]
|
|
212
254
|
|
|
@@ -220,6 +262,8 @@ module Aws::BedrockRuntime
|
|
|
220
262
|
end
|
|
221
263
|
class Citation < ContentBlockDelta
|
|
222
264
|
end
|
|
265
|
+
class Image < ContentBlockDelta
|
|
266
|
+
end
|
|
223
267
|
class Unknown < ContentBlockDelta
|
|
224
268
|
end
|
|
225
269
|
end
|
|
@@ -234,6 +278,7 @@ module Aws::BedrockRuntime
|
|
|
234
278
|
class ContentBlockStart
|
|
235
279
|
attr_accessor tool_use: Types::ToolUseBlockStart
|
|
236
280
|
attr_accessor tool_result: Types::ToolResultBlockStart
|
|
281
|
+
attr_accessor image: Types::ImageBlockStart
|
|
237
282
|
attr_accessor unknown: untyped
|
|
238
283
|
SENSITIVE: []
|
|
239
284
|
|
|
@@ -241,6 +286,8 @@ module Aws::BedrockRuntime
|
|
|
241
286
|
end
|
|
242
287
|
class ToolResult < ContentBlockStart
|
|
243
288
|
end
|
|
289
|
+
class Image < ContentBlockStart
|
|
290
|
+
end
|
|
244
291
|
class Unknown < ContentBlockStart
|
|
245
292
|
end
|
|
246
293
|
end
|
|
@@ -286,17 +333,19 @@ module Aws::BedrockRuntime
|
|
|
286
333
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
287
334
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
288
335
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
336
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
289
337
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
290
338
|
end
|
|
291
339
|
|
|
292
340
|
class ConverseResponse
|
|
293
341
|
attr_accessor output: Types::ConverseOutput
|
|
294
|
-
attr_accessor stop_reason: ("end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened" | "content_filtered" | "model_context_window_exceeded")
|
|
342
|
+
attr_accessor stop_reason: ("end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened" | "content_filtered" | "malformed_model_output" | "malformed_tool_use" | "model_context_window_exceeded")
|
|
295
343
|
attr_accessor usage: Types::TokenUsage
|
|
296
344
|
attr_accessor metrics: Types::ConverseMetrics
|
|
297
345
|
attr_accessor additional_model_response_fields: untyped
|
|
298
346
|
attr_accessor trace: Types::ConverseTrace
|
|
299
347
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
348
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
300
349
|
SENSITIVE: []
|
|
301
350
|
end
|
|
302
351
|
|
|
@@ -305,6 +354,7 @@ module Aws::BedrockRuntime
|
|
|
305
354
|
attr_accessor metrics: Types::ConverseStreamMetrics
|
|
306
355
|
attr_accessor trace: Types::ConverseStreamTrace
|
|
307
356
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
357
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
308
358
|
attr_accessor event_type: untyped
|
|
309
359
|
SENSITIVE: []
|
|
310
360
|
end
|
|
@@ -326,6 +376,7 @@ module Aws::BedrockRuntime
|
|
|
326
376
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
327
377
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
328
378
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
379
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
329
380
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
330
381
|
end
|
|
331
382
|
|
|
@@ -343,6 +394,8 @@ module Aws::BedrockRuntime
|
|
|
343
394
|
class ConverseTokensRequest
|
|
344
395
|
attr_accessor messages: ::Array[Types::Message]
|
|
345
396
|
attr_accessor system: ::Array[Types::SystemContentBlock]
|
|
397
|
+
attr_accessor tool_config: Types::ToolConfiguration
|
|
398
|
+
attr_accessor additional_model_request_fields: untyped
|
|
346
399
|
SENSITIVE: []
|
|
347
400
|
end
|
|
348
401
|
|
|
@@ -438,6 +491,11 @@ module Aws::BedrockRuntime
|
|
|
438
491
|
end
|
|
439
492
|
end
|
|
440
493
|
|
|
494
|
+
class ErrorBlock
|
|
495
|
+
attr_accessor message: ::String
|
|
496
|
+
SENSITIVE: []
|
|
497
|
+
end
|
|
498
|
+
|
|
441
499
|
class GetAsyncInvokeRequest
|
|
442
500
|
attr_accessor invocation_arn: ::String
|
|
443
501
|
SENSITIVE: []
|
|
@@ -464,6 +522,7 @@ module Aws::BedrockRuntime
|
|
|
464
522
|
attr_accessor contextual_grounding_policy: Types::GuardrailContextualGroundingPolicyAssessment
|
|
465
523
|
attr_accessor automated_reasoning_policy: Types::GuardrailAutomatedReasoningPolicyAssessment
|
|
466
524
|
attr_accessor invocation_metrics: Types::GuardrailInvocationMetrics
|
|
525
|
+
attr_accessor applied_guardrail_details: Types::AppliedGuardrailDetails
|
|
467
526
|
SENSITIVE: []
|
|
468
527
|
end
|
|
469
528
|
|
|
@@ -814,6 +873,18 @@ module Aws::BedrockRuntime
|
|
|
814
873
|
class ImageBlock
|
|
815
874
|
attr_accessor format: ("png" | "jpeg" | "gif" | "webp")
|
|
816
875
|
attr_accessor source: Types::ImageSource
|
|
876
|
+
attr_accessor error: Types::ErrorBlock
|
|
877
|
+
SENSITIVE: [:source, :error]
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
class ImageBlockDelta
|
|
881
|
+
attr_accessor source: Types::ImageSource
|
|
882
|
+
attr_accessor error: Types::ErrorBlock
|
|
883
|
+
SENSITIVE: [:source, :error]
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
class ImageBlockStart
|
|
887
|
+
attr_accessor format: ("png" | "jpeg" | "gif" | "webp")
|
|
817
888
|
SENSITIVE: []
|
|
818
889
|
end
|
|
819
890
|
|
|
@@ -854,6 +925,7 @@ module Aws::BedrockRuntime
|
|
|
854
925
|
attr_accessor guardrail_identifier: ::String
|
|
855
926
|
attr_accessor guardrail_version: ::String
|
|
856
927
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
928
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
857
929
|
SENSITIVE: [:body]
|
|
858
930
|
end
|
|
859
931
|
|
|
@@ -861,6 +933,7 @@ module Aws::BedrockRuntime
|
|
|
861
933
|
attr_accessor body: ::String
|
|
862
934
|
attr_accessor content_type: ::String
|
|
863
935
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
936
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
864
937
|
SENSITIVE: [:body]
|
|
865
938
|
end
|
|
866
939
|
|
|
@@ -889,6 +962,7 @@ module Aws::BedrockRuntime
|
|
|
889
962
|
attr_accessor guardrail_identifier: ::String
|
|
890
963
|
attr_accessor guardrail_version: ::String
|
|
891
964
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
965
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
892
966
|
SENSITIVE: [:body]
|
|
893
967
|
end
|
|
894
968
|
|
|
@@ -896,6 +970,7 @@ module Aws::BedrockRuntime
|
|
|
896
970
|
attr_accessor body: Types::ResponseStream
|
|
897
971
|
attr_accessor content_type: ::String
|
|
898
972
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
973
|
+
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
899
974
|
SENSITIVE: []
|
|
900
975
|
end
|
|
901
976
|
|
|
@@ -929,7 +1004,7 @@ module Aws::BedrockRuntime
|
|
|
929
1004
|
end
|
|
930
1005
|
|
|
931
1006
|
class MessageStopEvent
|
|
932
|
-
attr_accessor stop_reason: ("end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened" | "content_filtered" | "model_context_window_exceeded")
|
|
1007
|
+
attr_accessor stop_reason: ("end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened" | "content_filtered" | "malformed_model_output" | "malformed_tool_use" | "model_context_window_exceeded")
|
|
933
1008
|
attr_accessor additional_model_response_fields: untyped
|
|
934
1009
|
attr_accessor event_type: untyped
|
|
935
1010
|
SENSITIVE: []
|
|
@@ -1036,11 +1111,36 @@ module Aws::BedrockRuntime
|
|
|
1036
1111
|
SENSITIVE: []
|
|
1037
1112
|
end
|
|
1038
1113
|
|
|
1114
|
+
class SearchResultBlock
|
|
1115
|
+
attr_accessor source: ::String
|
|
1116
|
+
attr_accessor title: ::String
|
|
1117
|
+
attr_accessor content: ::Array[Types::SearchResultContentBlock]
|
|
1118
|
+
attr_accessor citations: Types::CitationsConfig
|
|
1119
|
+
SENSITIVE: []
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
class SearchResultContentBlock
|
|
1123
|
+
attr_accessor text: ::String
|
|
1124
|
+
SENSITIVE: []
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
class SearchResultLocation
|
|
1128
|
+
attr_accessor search_result_index: ::Integer
|
|
1129
|
+
attr_accessor start: ::Integer
|
|
1130
|
+
attr_accessor end: ::Integer
|
|
1131
|
+
SENSITIVE: []
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1039
1134
|
class ServiceQuotaExceededException
|
|
1040
1135
|
attr_accessor message: ::String
|
|
1041
1136
|
SENSITIVE: []
|
|
1042
1137
|
end
|
|
1043
1138
|
|
|
1139
|
+
class ServiceTier
|
|
1140
|
+
attr_accessor type: ("priority" | "default" | "flex" | "reserved")
|
|
1141
|
+
SENSITIVE: []
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1044
1144
|
class ServiceUnavailableException
|
|
1045
1145
|
attr_accessor message: ::String
|
|
1046
1146
|
attr_accessor event_type: untyped
|
|
@@ -1170,11 +1270,14 @@ module Aws::BedrockRuntime
|
|
|
1170
1270
|
|
|
1171
1271
|
class ToolResultBlockDelta
|
|
1172
1272
|
attr_accessor text: ::String
|
|
1273
|
+
attr_accessor json: untyped
|
|
1173
1274
|
attr_accessor unknown: untyped
|
|
1174
1275
|
SENSITIVE: []
|
|
1175
1276
|
|
|
1176
1277
|
class Text < ToolResultBlockDelta
|
|
1177
1278
|
end
|
|
1279
|
+
class Json < ToolResultBlockDelta
|
|
1280
|
+
end
|
|
1178
1281
|
class Unknown < ToolResultBlockDelta
|
|
1179
1282
|
end
|
|
1180
1283
|
end
|
|
@@ -1192,6 +1295,7 @@ module Aws::BedrockRuntime
|
|
|
1192
1295
|
attr_accessor image: Types::ImageBlock
|
|
1193
1296
|
attr_accessor document: Types::DocumentBlock
|
|
1194
1297
|
attr_accessor video: Types::VideoBlock
|
|
1298
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
1195
1299
|
attr_accessor unknown: untyped
|
|
1196
1300
|
SENSITIVE: []
|
|
1197
1301
|
|
|
@@ -1205,6 +1309,8 @@ module Aws::BedrockRuntime
|
|
|
1205
1309
|
end
|
|
1206
1310
|
class Video < ToolResultContentBlock
|
|
1207
1311
|
end
|
|
1312
|
+
class SearchResult < ToolResultContentBlock
|
|
1313
|
+
end
|
|
1208
1314
|
class Unknown < ToolResultContentBlock
|
|
1209
1315
|
end
|
|
1210
1316
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.71.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.241.4
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.241.4
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|