aws-sdk-bedrockruntime 1.43.0 → 1.45.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +626 -0
- data/lib/aws-sdk-bedrockruntime/client.rb +41 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +64 -4
- data/lib/aws-sdk-bedrockruntime/event_streams.rb +87 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +147 -2
- data/lib/aws-sdk-bedrockruntime.rb +2 -1
- data/sig/client.rbs +51 -8
- data/sig/types.rbs +37 -0
- metadata +3 -2
data/sig/client.rbs
CHANGED
@@ -134,14 +134,22 @@ module Aws
|
|
134
134
|
image: {
|
135
135
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
136
136
|
source: {
|
137
|
-
bytes: ::String
|
137
|
+
bytes: ::String?,
|
138
|
+
s3_location: {
|
139
|
+
uri: ::String,
|
140
|
+
bucket_owner: ::String?
|
141
|
+
}?
|
138
142
|
}
|
139
143
|
}?,
|
140
144
|
document: {
|
141
145
|
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
142
146
|
name: ::String,
|
143
147
|
source: {
|
144
|
-
bytes: ::String
|
148
|
+
bytes: ::String?,
|
149
|
+
s3_location: {
|
150
|
+
uri: ::String,
|
151
|
+
bucket_owner: ::String?
|
152
|
+
}?
|
145
153
|
}
|
146
154
|
}?,
|
147
155
|
video: {
|
@@ -170,14 +178,22 @@ module Aws
|
|
170
178
|
image: {
|
171
179
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
172
180
|
source: {
|
173
|
-
bytes: ::String
|
181
|
+
bytes: ::String?,
|
182
|
+
s3_location: {
|
183
|
+
uri: ::String,
|
184
|
+
bucket_owner: ::String?
|
185
|
+
}?
|
174
186
|
}
|
175
187
|
}?,
|
176
188
|
document: {
|
177
189
|
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
178
190
|
name: ::String,
|
179
191
|
source: {
|
180
|
-
bytes: ::String
|
192
|
+
bytes: ::String?,
|
193
|
+
s3_location: {
|
194
|
+
uri: ::String,
|
195
|
+
bucket_owner: ::String?
|
196
|
+
}?
|
181
197
|
}
|
182
198
|
}?,
|
183
199
|
video: {
|
@@ -306,14 +322,22 @@ module Aws
|
|
306
322
|
image: {
|
307
323
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
308
324
|
source: {
|
309
|
-
bytes: ::String
|
325
|
+
bytes: ::String?,
|
326
|
+
s3_location: {
|
327
|
+
uri: ::String,
|
328
|
+
bucket_owner: ::String?
|
329
|
+
}?
|
310
330
|
}
|
311
331
|
}?,
|
312
332
|
document: {
|
313
333
|
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
314
334
|
name: ::String,
|
315
335
|
source: {
|
316
|
-
bytes: ::String
|
336
|
+
bytes: ::String?,
|
337
|
+
s3_location: {
|
338
|
+
uri: ::String,
|
339
|
+
bucket_owner: ::String?
|
340
|
+
}?
|
317
341
|
}
|
318
342
|
}?,
|
319
343
|
video: {
|
@@ -342,14 +366,22 @@ module Aws
|
|
342
366
|
image: {
|
343
367
|
format: ("png" | "jpeg" | "gif" | "webp"),
|
344
368
|
source: {
|
345
|
-
bytes: ::String
|
369
|
+
bytes: ::String?,
|
370
|
+
s3_location: {
|
371
|
+
uri: ::String,
|
372
|
+
bucket_owner: ::String?
|
373
|
+
}?
|
346
374
|
}
|
347
375
|
}?,
|
348
376
|
document: {
|
349
377
|
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
|
350
378
|
name: ::String,
|
351
379
|
source: {
|
352
|
-
bytes: ::String
|
380
|
+
bytes: ::String?,
|
381
|
+
s3_location: {
|
382
|
+
uri: ::String,
|
383
|
+
bucket_owner: ::String?
|
384
|
+
}?
|
353
385
|
}
|
354
386
|
}?,
|
355
387
|
video: {
|
@@ -500,6 +532,17 @@ module Aws
|
|
500
532
|
) -> _InvokeModelResponseSuccess
|
501
533
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
|
502
534
|
|
535
|
+
interface _InvokeModelWithBidirectionalStreamResponseSuccess
|
536
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithBidirectionalStreamResponse]
|
537
|
+
def body: () -> Types::InvokeModelWithBidirectionalStreamOutput
|
538
|
+
end
|
539
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_bidirectional_stream-instance_method
|
540
|
+
def invoke_model_with_bidirectional_stream: (
|
541
|
+
model_id: ::String,
|
542
|
+
input_event_stream_hander: untyped
|
543
|
+
) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
544
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
545
|
+
|
503
546
|
interface _InvokeModelWithResponseStreamResponseSuccess
|
504
547
|
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithResponseStreamResponse]
|
505
548
|
def body: () -> Types::ResponseStream
|
data/sig/types.rbs
CHANGED
@@ -69,6 +69,18 @@ module Aws::BedrockRuntime
|
|
69
69
|
class AutoToolChoice < Aws::EmptyStructure
|
70
70
|
end
|
71
71
|
|
72
|
+
class BidirectionalInputPayloadPart
|
73
|
+
attr_accessor bytes: ::String
|
74
|
+
attr_accessor event_type: untyped
|
75
|
+
SENSITIVE: [:bytes]
|
76
|
+
end
|
77
|
+
|
78
|
+
class BidirectionalOutputPayloadPart
|
79
|
+
attr_accessor bytes: ::String
|
80
|
+
attr_accessor event_type: untyped
|
81
|
+
SENSITIVE: [:bytes]
|
82
|
+
end
|
83
|
+
|
72
84
|
class CachePointBlock
|
73
85
|
attr_accessor type: ("default")
|
74
86
|
SENSITIVE: []
|
@@ -259,11 +271,14 @@ module Aws::BedrockRuntime
|
|
259
271
|
|
260
272
|
class DocumentSource
|
261
273
|
attr_accessor bytes: ::String
|
274
|
+
attr_accessor s3_location: Types::S3Location
|
262
275
|
attr_accessor unknown: untyped
|
263
276
|
SENSITIVE: []
|
264
277
|
|
265
278
|
class Bytes < DocumentSource
|
266
279
|
end
|
280
|
+
class S3Location < DocumentSource
|
281
|
+
end
|
267
282
|
class Unknown < DocumentSource
|
268
283
|
end
|
269
284
|
end
|
@@ -527,11 +542,14 @@ module Aws::BedrockRuntime
|
|
527
542
|
|
528
543
|
class ImageSource
|
529
544
|
attr_accessor bytes: ::String
|
545
|
+
attr_accessor s3_location: Types::S3Location
|
530
546
|
attr_accessor unknown: untyped
|
531
547
|
SENSITIVE: []
|
532
548
|
|
533
549
|
class Bytes < ImageSource
|
534
550
|
end
|
551
|
+
class S3Location < ImageSource
|
552
|
+
end
|
535
553
|
class Unknown < ImageSource
|
536
554
|
end
|
537
555
|
end
|
@@ -569,6 +587,17 @@ module Aws::BedrockRuntime
|
|
569
587
|
SENSITIVE: [:body]
|
570
588
|
end
|
571
589
|
|
590
|
+
class InvokeModelWithBidirectionalStreamRequest
|
591
|
+
attr_accessor model_id: ::String
|
592
|
+
attr_accessor body: Types::InvokeModelWithBidirectionalStreamInput
|
593
|
+
SENSITIVE: []
|
594
|
+
end
|
595
|
+
|
596
|
+
class InvokeModelWithBidirectionalStreamResponse
|
597
|
+
attr_accessor body: Types::InvokeModelWithBidirectionalStreamOutput
|
598
|
+
SENSITIVE: []
|
599
|
+
end
|
600
|
+
|
572
601
|
class InvokeModelWithResponseStreamRequest
|
573
602
|
attr_accessor body: ::String
|
574
603
|
attr_accessor content_type: ::String
|
@@ -926,6 +955,14 @@ module Aws::BedrockRuntime
|
|
926
955
|
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]
|
927
956
|
end
|
928
957
|
|
958
|
+
class InvokeModelWithBidirectionalStreamInput < Enumerator[untyped, untyped]
|
959
|
+
def event_types: () -> [:chunk]
|
960
|
+
end
|
961
|
+
|
962
|
+
class InvokeModelWithBidirectionalStreamOutput < Enumerator[untyped, untyped]
|
963
|
+
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
964
|
+
end
|
965
|
+
|
929
966
|
class ResponseStream < Enumerator[untyped, untyped]
|
930
967
|
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
931
968
|
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.45.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: 2025-04-
|
11
|
+
date: 2025-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- LICENSE.txt
|
57
57
|
- VERSION
|
58
58
|
- lib/aws-sdk-bedrockruntime.rb
|
59
|
+
- lib/aws-sdk-bedrockruntime/async_client.rb
|
59
60
|
- lib/aws-sdk-bedrockruntime/client.rb
|
60
61
|
- lib/aws-sdk-bedrockruntime/client_api.rb
|
61
62
|
- lib/aws-sdk-bedrockruntime/customizations.rb
|