aws-sdk-bedrockruntime 1.44.0 → 1.46.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 +134 -114
- data/lib/aws-sdk-bedrockruntime/client.rb +367 -315
- data/lib/aws-sdk-bedrockruntime/client_api.rb +4 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +32 -2
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/async_client.rbs +82 -0
- data/sig/client.rbs +40 -19
- data/sig/types.rbs +6 -0
- metadata +3 -2
@@ -455,8 +455,10 @@ module Aws::BedrockRuntime
|
|
455
455
|
DocumentBlock.struct_class = Types::DocumentBlock
|
456
456
|
|
457
457
|
DocumentSource.add_member(:bytes, Shapes::ShapeRef.new(shape: DocumentSourceBytesBlob, location_name: "bytes"))
|
458
|
+
DocumentSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3Location"))
|
458
459
|
DocumentSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
459
460
|
DocumentSource.add_member_subclass(:bytes, Types::DocumentSource::Bytes)
|
461
|
+
DocumentSource.add_member_subclass(:s3_location, Types::DocumentSource::S3Location)
|
460
462
|
DocumentSource.add_member_subclass(:unknown, Types::DocumentSource::Unknown)
|
461
463
|
DocumentSource.struct_class = Types::DocumentSource
|
462
464
|
|
@@ -668,8 +670,10 @@ module Aws::BedrockRuntime
|
|
668
670
|
ImageBlock.struct_class = Types::ImageBlock
|
669
671
|
|
670
672
|
ImageSource.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageSourceBytesBlob, location_name: "bytes"))
|
673
|
+
ImageSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3Location"))
|
671
674
|
ImageSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
672
675
|
ImageSource.add_member_subclass(:bytes, Types::ImageSource::Bytes)
|
676
|
+
ImageSource.add_member_subclass(:s3_location, Types::ImageSource::S3Location)
|
673
677
|
ImageSource.add_member_subclass(:unknown, Types::ImageSource::Unknown)
|
674
678
|
ImageSource.struct_class = Types::ImageSource
|
675
679
|
|
@@ -1018,16 +1018,28 @@ module Aws::BedrockRuntime
|
|
1018
1018
|
# SDK, you don't need to encode the bytes in base64.
|
1019
1019
|
# @return [String]
|
1020
1020
|
#
|
1021
|
+
# @!attribute [rw] s3_location
|
1022
|
+
# The location of a document object in an Amazon S3 bucket. To see
|
1023
|
+
# which models support S3 uploads, see [Supported models and features
|
1024
|
+
# for Converse][1].
|
1025
|
+
#
|
1026
|
+
#
|
1027
|
+
#
|
1028
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
|
1029
|
+
# @return [Types::S3Location]
|
1030
|
+
#
|
1021
1031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentSource AWS API Documentation
|
1022
1032
|
#
|
1023
1033
|
class DocumentSource < Struct.new(
|
1024
1034
|
:bytes,
|
1035
|
+
:s3_location,
|
1025
1036
|
:unknown)
|
1026
1037
|
SENSITIVE = []
|
1027
1038
|
include Aws::Structure
|
1028
1039
|
include Aws::Structure::Union
|
1029
1040
|
|
1030
1041
|
class Bytes < DocumentSource; end
|
1042
|
+
class S3Location < DocumentSource; end
|
1031
1043
|
class Unknown < DocumentSource; end
|
1032
1044
|
end
|
1033
1045
|
|
@@ -1899,16 +1911,28 @@ module Aws::BedrockRuntime
|
|
1899
1911
|
# need to encode the image bytes in base64.
|
1900
1912
|
# @return [String]
|
1901
1913
|
#
|
1914
|
+
# @!attribute [rw] s3_location
|
1915
|
+
# The location of an image object in an Amazon S3 bucket. To see which
|
1916
|
+
# models support S3 uploads, see [Supported models and features for
|
1917
|
+
# Converse][1].
|
1918
|
+
#
|
1919
|
+
#
|
1920
|
+
#
|
1921
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
|
1922
|
+
# @return [Types::S3Location]
|
1923
|
+
#
|
1902
1924
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ImageSource AWS API Documentation
|
1903
1925
|
#
|
1904
1926
|
class ImageSource < Struct.new(
|
1905
1927
|
:bytes,
|
1928
|
+
:s3_location,
|
1906
1929
|
:unknown)
|
1907
1930
|
SENSITIVE = []
|
1908
1931
|
include Aws::Structure
|
1909
1932
|
include Aws::Structure::Union
|
1910
1933
|
|
1911
1934
|
class Bytes < ImageSource; end
|
1935
|
+
class S3Location < ImageSource; end
|
1912
1936
|
class Unknown < ImageSource; end
|
1913
1937
|
end
|
1914
1938
|
|
@@ -2712,7 +2736,7 @@ module Aws::BedrockRuntime
|
|
2712
2736
|
include Aws::Structure
|
2713
2737
|
end
|
2714
2738
|
|
2715
|
-
# A storage location in an S3 bucket.
|
2739
|
+
# A storage location in an Amazon S3 bucket.
|
2716
2740
|
#
|
2717
2741
|
# @!attribute [rw] uri
|
2718
2742
|
# An object URI starting with `s3://`.
|
@@ -3288,7 +3312,13 @@ module Aws::BedrockRuntime
|
|
3288
3312
|
# @return [String]
|
3289
3313
|
#
|
3290
3314
|
# @!attribute [rw] s3_location
|
3291
|
-
# The location of a video object in an S3 bucket.
|
3315
|
+
# The location of a video object in an Amazon S3 bucket. To see which
|
3316
|
+
# models support S3 uploads, see [Supported models and features for
|
3317
|
+
# Converse][1].
|
3318
|
+
#
|
3319
|
+
#
|
3320
|
+
#
|
3321
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
|
3292
3322
|
# @return [Types::S3Location]
|
3293
3323
|
#
|
3294
3324
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/VideoSource AWS API Documentation
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module BedrockRuntime
|
10
|
+
class AsyncClient < ::Seahorse::Client::AsyncBase
|
11
|
+
include ::Aws::AsyncClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/AsyncClient.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?convert_params: bool,
|
21
|
+
?correct_clock_skew: bool,
|
22
|
+
?defaults_mode: String,
|
23
|
+
?disable_request_compression: bool,
|
24
|
+
?endpoint: String,
|
25
|
+
?event_stream_handler: Proc,
|
26
|
+
?ignore_configured_endpoint_urls: bool,
|
27
|
+
?input_event_stream_handler: Proc,
|
28
|
+
?log_formatter: untyped,
|
29
|
+
?log_level: Symbol,
|
30
|
+
?logger: untyped,
|
31
|
+
?max_attempts: Integer,
|
32
|
+
?output_event_stream_handler: Proc,
|
33
|
+
?profile: String,
|
34
|
+
?request_checksum_calculation: String,
|
35
|
+
?request_min_compression_size_bytes: Integer,
|
36
|
+
?response_checksum_validation: String,
|
37
|
+
?retry_backoff: Proc,
|
38
|
+
?retry_base_delay: Float,
|
39
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
40
|
+
?retry_limit: Integer,
|
41
|
+
?retry_max_delay: Integer,
|
42
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
43
|
+
?sdk_ua_app_id: String,
|
44
|
+
?secret_access_key: String,
|
45
|
+
?session_token: String,
|
46
|
+
?sigv4a_signing_region_set: Array[String],
|
47
|
+
?stub_responses: untyped,
|
48
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
49
|
+
?token_provider: untyped,
|
50
|
+
?use_dualstack_endpoint: bool,
|
51
|
+
?use_fips_endpoint: bool,
|
52
|
+
?validate_params: bool,
|
53
|
+
?endpoint_provider: untyped,
|
54
|
+
?connection_read_timeout: (Float | Integer),
|
55
|
+
?connection_timeout: (Float | Integer),
|
56
|
+
?enable_alpn: bool,
|
57
|
+
?max_concurrent_streams: (Float | Integer),
|
58
|
+
?read_chunk_size: (Float | Integer),
|
59
|
+
?http_wire_trace: bool,
|
60
|
+
?ssl_verify_peer: bool,
|
61
|
+
?ssl_ca_bundle: String,
|
62
|
+
?ssl_ca_directory: String,
|
63
|
+
?ssl_ca_store: String,
|
64
|
+
?raise_response_errors: bool
|
65
|
+
) -> instance
|
66
|
+
| (?Hash[Symbol, untyped]) -> instance
|
67
|
+
|
68
|
+
|
69
|
+
interface _InvokeModelWithBidirectionalStreamResponseSuccess
|
70
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithBidirectionalStreamResponse]
|
71
|
+
def body: () -> Types::InvokeModelWithBidirectionalStreamOutput
|
72
|
+
end
|
73
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/AsyncClient.html#invoke_model_with_bidirectional_stream-instance_method
|
74
|
+
def invoke_model_with_bidirectional_stream: (
|
75
|
+
model_id: ::String,
|
76
|
+
input_event_stream_handler: untyped,
|
77
|
+
output_event_stream_handler: untyped
|
78
|
+
) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
79
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
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,17 +532,6 @@ module Aws
|
|
500
532
|
) -> _InvokeModelResponseSuccess
|
501
533
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
|
502
534
|
|
503
|
-
interface _InvokeModelWithBidirectionalStreamResponseSuccess
|
504
|
-
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithBidirectionalStreamResponse]
|
505
|
-
def body: () -> Types::InvokeModelWithBidirectionalStreamOutput
|
506
|
-
end
|
507
|
-
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_bidirectional_stream-instance_method
|
508
|
-
def invoke_model_with_bidirectional_stream: (
|
509
|
-
model_id: ::String,
|
510
|
-
input_event_stream_hander: untyped
|
511
|
-
) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
512
|
-
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithBidirectionalStreamResponseSuccess
|
513
|
-
|
514
535
|
interface _InvokeModelWithResponseStreamResponseSuccess
|
515
536
|
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeModelWithResponseStreamResponse]
|
516
537
|
def body: () -> Types::ResponseStream
|
data/sig/types.rbs
CHANGED
@@ -271,11 +271,14 @@ module Aws::BedrockRuntime
|
|
271
271
|
|
272
272
|
class DocumentSource
|
273
273
|
attr_accessor bytes: ::String
|
274
|
+
attr_accessor s3_location: Types::S3Location
|
274
275
|
attr_accessor unknown: untyped
|
275
276
|
SENSITIVE: []
|
276
277
|
|
277
278
|
class Bytes < DocumentSource
|
278
279
|
end
|
280
|
+
class S3Location < DocumentSource
|
281
|
+
end
|
279
282
|
class Unknown < DocumentSource
|
280
283
|
end
|
281
284
|
end
|
@@ -539,11 +542,14 @@ module Aws::BedrockRuntime
|
|
539
542
|
|
540
543
|
class ImageSource
|
541
544
|
attr_accessor bytes: ::String
|
545
|
+
attr_accessor s3_location: Types::S3Location
|
542
546
|
attr_accessor unknown: untyped
|
543
547
|
SENSITIVE: []
|
544
548
|
|
545
549
|
class Bytes < ImageSource
|
546
550
|
end
|
551
|
+
class S3Location < ImageSource
|
552
|
+
end
|
547
553
|
class Unknown < ImageSource
|
548
554
|
end
|
549
555
|
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.46.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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/aws-sdk-bedrockruntime/resource.rb
|
70
70
|
- lib/aws-sdk-bedrockruntime/types.rb
|
71
71
|
- lib/aws-sdk-bedrockruntime/waiters.rb
|
72
|
+
- sig/async_client.rbs
|
72
73
|
- sig/client.rbs
|
73
74
|
- sig/errors.rbs
|
74
75
|
- sig/resource.rbs
|