aws-sdk-bedrockruntime 1.76.0 → 1.78.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 +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +9 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +3 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +14 -4
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +17 -835
- data/sig/params.rbs +269 -0
- data/sig/types.rbs +4 -2
- metadata +2 -1
data/sig/params.rbs
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
module Params
|
|
11
|
+
type message = {
|
|
12
|
+
role: ("user" | "assistant"),
|
|
13
|
+
content: Array[
|
|
14
|
+
Params::content_block
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type image_block = {
|
|
19
|
+
format: ("png" | "jpeg" | "gif" | "webp"),
|
|
20
|
+
source: {
|
|
21
|
+
bytes: ::String?,
|
|
22
|
+
s3_location: {
|
|
23
|
+
uri: ::String,
|
|
24
|
+
bucket_owner: ::String?
|
|
25
|
+
}?
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
message: ::String?
|
|
29
|
+
}?
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type document_source = {
|
|
33
|
+
bytes: ::String?,
|
|
34
|
+
s3_location: {
|
|
35
|
+
uri: ::String,
|
|
36
|
+
bucket_owner: ::String?
|
|
37
|
+
}?,
|
|
38
|
+
text: ::String?,
|
|
39
|
+
content: Array[
|
|
40
|
+
{
|
|
41
|
+
text: ::String?
|
|
42
|
+
}
|
|
43
|
+
]?
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type document_block = {
|
|
47
|
+
format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")?,
|
|
48
|
+
name: ::String,
|
|
49
|
+
source: Params::document_source,
|
|
50
|
+
context: ::String?,
|
|
51
|
+
citations: {
|
|
52
|
+
enabled: bool
|
|
53
|
+
}?
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type video_block = {
|
|
57
|
+
format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp"),
|
|
58
|
+
source: {
|
|
59
|
+
bytes: ::String?,
|
|
60
|
+
s3_location: {
|
|
61
|
+
uri: ::String,
|
|
62
|
+
bucket_owner: ::String?
|
|
63
|
+
}?
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type audio_block = {
|
|
68
|
+
format: ("mp3" | "opus" | "wav" | "aac" | "flac" | "mp4" | "ogg" | "mkv" | "mka" | "x-aac" | "m4a" | "mpeg" | "mpga" | "pcm" | "webm"),
|
|
69
|
+
source: {
|
|
70
|
+
bytes: ::String?,
|
|
71
|
+
s3_location: {
|
|
72
|
+
uri: ::String,
|
|
73
|
+
bucket_owner: ::String?
|
|
74
|
+
}?
|
|
75
|
+
},
|
|
76
|
+
error: {
|
|
77
|
+
message: ::String?
|
|
78
|
+
}?
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type tool_result_block = {
|
|
82
|
+
tool_use_id: ::String,
|
|
83
|
+
content: Array[
|
|
84
|
+
Params::tool_result_content_block
|
|
85
|
+
],
|
|
86
|
+
status: ("success" | "error")?,
|
|
87
|
+
type: ::String?
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type guardrail_converse_content_block = {
|
|
91
|
+
text: {
|
|
92
|
+
text: ::String,
|
|
93
|
+
qualifiers: Array[("grounding_source" | "query" | "guard_content")]?
|
|
94
|
+
}?,
|
|
95
|
+
image: {
|
|
96
|
+
format: ("png" | "jpeg"),
|
|
97
|
+
source: {
|
|
98
|
+
bytes: ::String?
|
|
99
|
+
}
|
|
100
|
+
}?
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type citations_content_block = {
|
|
104
|
+
content: Array[
|
|
105
|
+
{
|
|
106
|
+
text: ::String?
|
|
107
|
+
}
|
|
108
|
+
]?,
|
|
109
|
+
citations: Array[
|
|
110
|
+
Params::citation
|
|
111
|
+
]?
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type search_result_block = {
|
|
115
|
+
source: ::String,
|
|
116
|
+
title: ::String,
|
|
117
|
+
content: Array[
|
|
118
|
+
{
|
|
119
|
+
text: ::String
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
citations: {
|
|
123
|
+
enabled: bool
|
|
124
|
+
}?
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type content_block = {
|
|
128
|
+
text: ::String?,
|
|
129
|
+
image: Params::image_block?,
|
|
130
|
+
document: Params::document_block?,
|
|
131
|
+
video: Params::video_block?,
|
|
132
|
+
audio: Params::audio_block?,
|
|
133
|
+
tool_use: {
|
|
134
|
+
tool_use_id: ::String,
|
|
135
|
+
name: ::String,
|
|
136
|
+
input: {
|
|
137
|
+
},
|
|
138
|
+
type: ("server_tool_use")?
|
|
139
|
+
}?,
|
|
140
|
+
tool_result: Params::tool_result_block?,
|
|
141
|
+
guard_content: Params::guardrail_converse_content_block?,
|
|
142
|
+
cache_point: {
|
|
143
|
+
type: ("default"),
|
|
144
|
+
ttl: ("5m" | "1h")?
|
|
145
|
+
}?,
|
|
146
|
+
reasoning_content: {
|
|
147
|
+
reasoning_text: {
|
|
148
|
+
text: ::String,
|
|
149
|
+
signature: ::String?
|
|
150
|
+
}?,
|
|
151
|
+
redacted_content: ::String?
|
|
152
|
+
}?,
|
|
153
|
+
citations_content: Params::citations_content_block?,
|
|
154
|
+
search_result: Params::search_result_block?
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
type tool_result_content_block = {
|
|
158
|
+
json: {
|
|
159
|
+
}?,
|
|
160
|
+
text: ::String?,
|
|
161
|
+
image: Params::image_block?,
|
|
162
|
+
document: Params::document_block?,
|
|
163
|
+
video: Params::video_block?,
|
|
164
|
+
search_result: Params::search_result_block?
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
type citation_location = {
|
|
168
|
+
web: {
|
|
169
|
+
url: ::String?,
|
|
170
|
+
domain: ::String?
|
|
171
|
+
}?,
|
|
172
|
+
document_char: {
|
|
173
|
+
document_index: ::Integer?,
|
|
174
|
+
start: ::Integer?,
|
|
175
|
+
end: ::Integer?
|
|
176
|
+
}?,
|
|
177
|
+
document_page: {
|
|
178
|
+
document_index: ::Integer?,
|
|
179
|
+
start: ::Integer?,
|
|
180
|
+
end: ::Integer?
|
|
181
|
+
}?,
|
|
182
|
+
document_chunk: {
|
|
183
|
+
document_index: ::Integer?,
|
|
184
|
+
start: ::Integer?,
|
|
185
|
+
end: ::Integer?
|
|
186
|
+
}?,
|
|
187
|
+
search_result_location: {
|
|
188
|
+
search_result_index: ::Integer?,
|
|
189
|
+
start: ::Integer?,
|
|
190
|
+
end: ::Integer?
|
|
191
|
+
}?
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
type citation = {
|
|
195
|
+
title: ::String?,
|
|
196
|
+
source: ::String?,
|
|
197
|
+
source_content: Array[
|
|
198
|
+
{
|
|
199
|
+
text: ::String?
|
|
200
|
+
}
|
|
201
|
+
]?,
|
|
202
|
+
location: Params::citation_location?
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
type system_content_block = {
|
|
206
|
+
text: ::String?,
|
|
207
|
+
guard_content: Params::guardrail_converse_content_block?,
|
|
208
|
+
cache_point: {
|
|
209
|
+
type: ("default"),
|
|
210
|
+
ttl: ("5m" | "1h")?
|
|
211
|
+
}?
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type tool_choice = {
|
|
215
|
+
auto: {
|
|
216
|
+
}?,
|
|
217
|
+
any: {
|
|
218
|
+
}?,
|
|
219
|
+
tool: {
|
|
220
|
+
name: ::String
|
|
221
|
+
}?
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type tool_configuration = {
|
|
225
|
+
tools: Array[
|
|
226
|
+
Params::tool
|
|
227
|
+
],
|
|
228
|
+
tool_choice: Params::tool_choice?
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
type tool_specification = {
|
|
232
|
+
name: ::String,
|
|
233
|
+
description: ::String?,
|
|
234
|
+
input_schema: {
|
|
235
|
+
json: {
|
|
236
|
+
}?
|
|
237
|
+
},
|
|
238
|
+
strict: bool?
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
type tool = {
|
|
242
|
+
tool_spec: Params::tool_specification?,
|
|
243
|
+
system_tool: {
|
|
244
|
+
name: ::String
|
|
245
|
+
}?,
|
|
246
|
+
cache_point: {
|
|
247
|
+
type: ("default"),
|
|
248
|
+
ttl: ("5m" | "1h")?
|
|
249
|
+
}?
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
type output_format = {
|
|
253
|
+
type: ("json_schema"),
|
|
254
|
+
structure: {
|
|
255
|
+
json_schema: {
|
|
256
|
+
schema: ::String,
|
|
257
|
+
name: ::String?,
|
|
258
|
+
description: ::String?
|
|
259
|
+
}?
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
type output_config = {
|
|
264
|
+
text_format: Params::output_format?
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
data/sig/types.rbs
CHANGED
|
@@ -935,7 +935,8 @@ module Aws::BedrockRuntime
|
|
|
935
935
|
attr_accessor guardrail_version: ::String
|
|
936
936
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
937
937
|
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
938
|
-
|
|
938
|
+
attr_accessor request_metadata: ::String
|
|
939
|
+
SENSITIVE: [:body, :request_metadata]
|
|
939
940
|
end
|
|
940
941
|
|
|
941
942
|
class InvokeModelResponse
|
|
@@ -972,7 +973,8 @@ module Aws::BedrockRuntime
|
|
|
972
973
|
attr_accessor guardrail_version: ::String
|
|
973
974
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
974
975
|
attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
|
|
975
|
-
|
|
976
|
+
attr_accessor request_metadata: ::String
|
|
977
|
+
SENSITIVE: [:body, :request_metadata]
|
|
976
978
|
end
|
|
977
979
|
|
|
978
980
|
class InvokeModelWithResponseStreamResponse
|
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.78.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -72,6 +72,7 @@ files:
|
|
|
72
72
|
- sig/async_client.rbs
|
|
73
73
|
- sig/client.rbs
|
|
74
74
|
- sig/errors.rbs
|
|
75
|
+
- sig/params.rbs
|
|
75
76
|
- sig/resource.rbs
|
|
76
77
|
- sig/types.rbs
|
|
77
78
|
- sig/waiters.rbs
|