aws-sdk-bedrockruntime 1.62.0 → 1.64.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 +97 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +52 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +307 -38
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +75 -9
- data/sig/types.rbs +59 -0
- metadata +1 -1
data/sig/client.rbs
CHANGED
|
@@ -122,6 +122,7 @@ module Aws
|
|
|
122
122
|
def additional_model_response_fields: () -> untyped
|
|
123
123
|
def trace: () -> Types::ConverseTrace
|
|
124
124
|
def performance_config: () -> Types::PerformanceConfiguration
|
|
125
|
+
def service_tier: () -> Types::ServiceTier
|
|
125
126
|
end
|
|
126
127
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#converse-instance_method
|
|
127
128
|
def converse: (
|
|
@@ -177,7 +178,8 @@ module Aws
|
|
|
177
178
|
tool_use_id: ::String,
|
|
178
179
|
name: ::String,
|
|
179
180
|
input: {
|
|
180
|
-
}
|
|
181
|
+
},
|
|
182
|
+
type: ("server_tool_use")?
|
|
181
183
|
}?,
|
|
182
184
|
tool_result: {
|
|
183
185
|
tool_use_id: ::String,
|
|
@@ -229,7 +231,8 @@ module Aws
|
|
|
229
231
|
}?
|
|
230
232
|
},
|
|
231
233
|
],
|
|
232
|
-
status: ("success" | "error")
|
|
234
|
+
status: ("success" | "error")?,
|
|
235
|
+
type: ::String?
|
|
233
236
|
}?,
|
|
234
237
|
guard_content: {
|
|
235
238
|
text: {
|
|
@@ -268,6 +271,10 @@ module Aws
|
|
|
268
271
|
},
|
|
269
272
|
]?,
|
|
270
273
|
location: {
|
|
274
|
+
web: {
|
|
275
|
+
url: ::String?,
|
|
276
|
+
domain: ::String?
|
|
277
|
+
}?,
|
|
271
278
|
document_char: {
|
|
272
279
|
document_index: ::Integer?,
|
|
273
280
|
start: ::Integer?,
|
|
@@ -328,6 +335,9 @@ module Aws
|
|
|
328
335
|
}?
|
|
329
336
|
}
|
|
330
337
|
}?,
|
|
338
|
+
system_tool: {
|
|
339
|
+
name: ::String
|
|
340
|
+
}?,
|
|
331
341
|
cache_point: {
|
|
332
342
|
type: ("default")
|
|
333
343
|
}?
|
|
@@ -357,6 +367,9 @@ module Aws
|
|
|
357
367
|
?request_metadata: Hash[::String, ::String],
|
|
358
368
|
?performance_config: {
|
|
359
369
|
latency: ("standard" | "optimized")?
|
|
370
|
+
},
|
|
371
|
+
?service_tier: {
|
|
372
|
+
type: ("priority" | "default" | "flex")
|
|
360
373
|
}
|
|
361
374
|
) -> _ConverseResponseSuccess
|
|
362
375
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConverseResponseSuccess
|
|
@@ -419,7 +432,8 @@ module Aws
|
|
|
419
432
|
tool_use_id: ::String,
|
|
420
433
|
name: ::String,
|
|
421
434
|
input: {
|
|
422
|
-
}
|
|
435
|
+
},
|
|
436
|
+
type: ("server_tool_use")?
|
|
423
437
|
}?,
|
|
424
438
|
tool_result: {
|
|
425
439
|
tool_use_id: ::String,
|
|
@@ -471,7 +485,8 @@ module Aws
|
|
|
471
485
|
}?
|
|
472
486
|
},
|
|
473
487
|
],
|
|
474
|
-
status: ("success" | "error")
|
|
488
|
+
status: ("success" | "error")?,
|
|
489
|
+
type: ::String?
|
|
475
490
|
}?,
|
|
476
491
|
guard_content: {
|
|
477
492
|
text: {
|
|
@@ -510,6 +525,10 @@ module Aws
|
|
|
510
525
|
},
|
|
511
526
|
]?,
|
|
512
527
|
location: {
|
|
528
|
+
web: {
|
|
529
|
+
url: ::String?,
|
|
530
|
+
domain: ::String?
|
|
531
|
+
}?,
|
|
513
532
|
document_char: {
|
|
514
533
|
document_index: ::Integer?,
|
|
515
534
|
start: ::Integer?,
|
|
@@ -570,6 +589,9 @@ module Aws
|
|
|
570
589
|
}?
|
|
571
590
|
}
|
|
572
591
|
}?,
|
|
592
|
+
system_tool: {
|
|
593
|
+
name: ::String
|
|
594
|
+
}?,
|
|
573
595
|
cache_point: {
|
|
574
596
|
type: ("default")
|
|
575
597
|
}?
|
|
@@ -600,6 +622,9 @@ module Aws
|
|
|
600
622
|
?request_metadata: Hash[::String, ::String],
|
|
601
623
|
?performance_config: {
|
|
602
624
|
latency: ("standard" | "optimized")?
|
|
625
|
+
},
|
|
626
|
+
?service_tier: {
|
|
627
|
+
type: ("priority" | "default" | "flex")
|
|
603
628
|
}
|
|
604
629
|
) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
605
630
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _ConverseStreamResponseSuccess
|
|
@@ -667,7 +692,8 @@ module Aws
|
|
|
667
692
|
tool_use_id: ::String,
|
|
668
693
|
name: ::String,
|
|
669
694
|
input: {
|
|
670
|
-
}
|
|
695
|
+
},
|
|
696
|
+
type: ("server_tool_use")?
|
|
671
697
|
}?,
|
|
672
698
|
tool_result: {
|
|
673
699
|
tool_use_id: ::String,
|
|
@@ -719,7 +745,8 @@ module Aws
|
|
|
719
745
|
}?
|
|
720
746
|
},
|
|
721
747
|
],
|
|
722
|
-
status: ("success" | "error")
|
|
748
|
+
status: ("success" | "error")?,
|
|
749
|
+
type: ::String?
|
|
723
750
|
}?,
|
|
724
751
|
guard_content: {
|
|
725
752
|
text: {
|
|
@@ -758,6 +785,10 @@ module Aws
|
|
|
758
785
|
},
|
|
759
786
|
]?,
|
|
760
787
|
location: {
|
|
788
|
+
web: {
|
|
789
|
+
url: ::String?,
|
|
790
|
+
domain: ::String?
|
|
791
|
+
}?,
|
|
761
792
|
document_char: {
|
|
762
793
|
document_index: ::Integer?,
|
|
763
794
|
start: ::Integer?,
|
|
@@ -800,7 +831,38 @@ module Aws
|
|
|
800
831
|
type: ("default")
|
|
801
832
|
}?
|
|
802
833
|
},
|
|
803
|
-
]
|
|
834
|
+
]?,
|
|
835
|
+
tool_config: {
|
|
836
|
+
tools: Array[
|
|
837
|
+
{
|
|
838
|
+
tool_spec: {
|
|
839
|
+
name: ::String,
|
|
840
|
+
description: ::String?,
|
|
841
|
+
input_schema: {
|
|
842
|
+
json: {
|
|
843
|
+
}?
|
|
844
|
+
}
|
|
845
|
+
}?,
|
|
846
|
+
system_tool: {
|
|
847
|
+
name: ::String
|
|
848
|
+
}?,
|
|
849
|
+
cache_point: {
|
|
850
|
+
type: ("default")
|
|
851
|
+
}?
|
|
852
|
+
},
|
|
853
|
+
],
|
|
854
|
+
tool_choice: {
|
|
855
|
+
auto: {
|
|
856
|
+
}?,
|
|
857
|
+
any: {
|
|
858
|
+
}?,
|
|
859
|
+
tool: {
|
|
860
|
+
name: ::String
|
|
861
|
+
}?
|
|
862
|
+
}?
|
|
863
|
+
}?,
|
|
864
|
+
additional_model_request_fields: {
|
|
865
|
+
}?
|
|
804
866
|
}?
|
|
805
867
|
}
|
|
806
868
|
) -> _CountTokensResponseSuccess
|
|
@@ -829,6 +891,7 @@ module Aws
|
|
|
829
891
|
def body: () -> ::String
|
|
830
892
|
def content_type: () -> ::String
|
|
831
893
|
def performance_config_latency: () -> ("standard" | "optimized")
|
|
894
|
+
def service_tier: () -> ("priority" | "default" | "flex")
|
|
832
895
|
end
|
|
833
896
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model-instance_method
|
|
834
897
|
def invoke_model: (
|
|
@@ -839,7 +902,8 @@ module Aws
|
|
|
839
902
|
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
|
840
903
|
?guardrail_identifier: ::String,
|
|
841
904
|
?guardrail_version: ::String,
|
|
842
|
-
?performance_config_latency: ("standard" | "optimized")
|
|
905
|
+
?performance_config_latency: ("standard" | "optimized"),
|
|
906
|
+
?service_tier: ("priority" | "default" | "flex")
|
|
843
907
|
) -> _InvokeModelResponseSuccess
|
|
844
908
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
|
|
845
909
|
|
|
@@ -848,6 +912,7 @@ module Aws
|
|
|
848
912
|
def body: () -> Types::ResponseStream
|
|
849
913
|
def content_type: () -> ::String
|
|
850
914
|
def performance_config_latency: () -> ("standard" | "optimized")
|
|
915
|
+
def service_tier: () -> ("priority" | "default" | "flex")
|
|
851
916
|
end
|
|
852
917
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html#invoke_model_with_response_stream-instance_method
|
|
853
918
|
def invoke_model_with_response_stream: (
|
|
@@ -858,7 +923,8 @@ module Aws
|
|
|
858
923
|
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
|
859
924
|
?guardrail_identifier: ::String,
|
|
860
925
|
?guardrail_version: ::String,
|
|
861
|
-
?performance_config_latency: ("standard" | "optimized")
|
|
926
|
+
?performance_config_latency: ("standard" | "optimized"),
|
|
927
|
+
?service_tier: ("priority" | "default" | "flex")
|
|
862
928
|
) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
863
929
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
|
|
864
930
|
|
data/sig/types.rbs
CHANGED
|
@@ -105,12 +105,15 @@ module Aws::BedrockRuntime
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
class CitationLocation
|
|
108
|
+
attr_accessor web: Types::WebLocation
|
|
108
109
|
attr_accessor document_char: Types::DocumentCharLocation
|
|
109
110
|
attr_accessor document_page: Types::DocumentPageLocation
|
|
110
111
|
attr_accessor document_chunk: Types::DocumentChunkLocation
|
|
111
112
|
attr_accessor unknown: untyped
|
|
112
113
|
SENSITIVE: []
|
|
113
114
|
|
|
115
|
+
class Web < CitationLocation
|
|
116
|
+
end
|
|
114
117
|
class DocumentChar < CitationLocation
|
|
115
118
|
end
|
|
116
119
|
class DocumentPage < CitationLocation
|
|
@@ -201,6 +204,7 @@ module Aws::BedrockRuntime
|
|
|
201
204
|
class ContentBlockDelta
|
|
202
205
|
attr_accessor text: ::String
|
|
203
206
|
attr_accessor tool_use: Types::ToolUseBlockDelta
|
|
207
|
+
attr_accessor tool_result: ::Array[Types::ToolResultBlockDelta]
|
|
204
208
|
attr_accessor reasoning_content: Types::ReasoningContentBlockDelta
|
|
205
209
|
attr_accessor citation: Types::CitationsDelta
|
|
206
210
|
attr_accessor unknown: untyped
|
|
@@ -210,6 +214,8 @@ module Aws::BedrockRuntime
|
|
|
210
214
|
end
|
|
211
215
|
class ToolUse < ContentBlockDelta
|
|
212
216
|
end
|
|
217
|
+
class ToolResult < ContentBlockDelta
|
|
218
|
+
end
|
|
213
219
|
class ReasoningContent < ContentBlockDelta
|
|
214
220
|
end
|
|
215
221
|
class Citation < ContentBlockDelta
|
|
@@ -227,11 +233,14 @@ module Aws::BedrockRuntime
|
|
|
227
233
|
|
|
228
234
|
class ContentBlockStart
|
|
229
235
|
attr_accessor tool_use: Types::ToolUseBlockStart
|
|
236
|
+
attr_accessor tool_result: Types::ToolResultBlockStart
|
|
230
237
|
attr_accessor unknown: untyped
|
|
231
238
|
SENSITIVE: []
|
|
232
239
|
|
|
233
240
|
class ToolUse < ContentBlockStart
|
|
234
241
|
end
|
|
242
|
+
class ToolResult < ContentBlockStart
|
|
243
|
+
end
|
|
235
244
|
class Unknown < ContentBlockStart
|
|
236
245
|
end
|
|
237
246
|
end
|
|
@@ -277,6 +286,7 @@ module Aws::BedrockRuntime
|
|
|
277
286
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
278
287
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
279
288
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
289
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
280
290
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
281
291
|
end
|
|
282
292
|
|
|
@@ -288,6 +298,7 @@ module Aws::BedrockRuntime
|
|
|
288
298
|
attr_accessor additional_model_response_fields: untyped
|
|
289
299
|
attr_accessor trace: Types::ConverseTrace
|
|
290
300
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
301
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
291
302
|
SENSITIVE: []
|
|
292
303
|
end
|
|
293
304
|
|
|
@@ -296,6 +307,7 @@ module Aws::BedrockRuntime
|
|
|
296
307
|
attr_accessor metrics: Types::ConverseStreamMetrics
|
|
297
308
|
attr_accessor trace: Types::ConverseStreamTrace
|
|
298
309
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
310
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
299
311
|
attr_accessor event_type: untyped
|
|
300
312
|
SENSITIVE: []
|
|
301
313
|
end
|
|
@@ -317,6 +329,7 @@ module Aws::BedrockRuntime
|
|
|
317
329
|
attr_accessor additional_model_response_field_paths: ::Array[::String]
|
|
318
330
|
attr_accessor request_metadata: ::Hash[::String, ::String]
|
|
319
331
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
332
|
+
attr_accessor service_tier: Types::ServiceTier
|
|
320
333
|
SENSITIVE: [:prompt_variables, :request_metadata]
|
|
321
334
|
end
|
|
322
335
|
|
|
@@ -334,6 +347,8 @@ module Aws::BedrockRuntime
|
|
|
334
347
|
class ConverseTokensRequest
|
|
335
348
|
attr_accessor messages: ::Array[Types::Message]
|
|
336
349
|
attr_accessor system: ::Array[Types::SystemContentBlock]
|
|
350
|
+
attr_accessor tool_config: Types::ToolConfiguration
|
|
351
|
+
attr_accessor additional_model_request_fields: untyped
|
|
337
352
|
SENSITIVE: []
|
|
338
353
|
end
|
|
339
354
|
|
|
@@ -845,6 +860,7 @@ module Aws::BedrockRuntime
|
|
|
845
860
|
attr_accessor guardrail_identifier: ::String
|
|
846
861
|
attr_accessor guardrail_version: ::String
|
|
847
862
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
863
|
+
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
848
864
|
SENSITIVE: [:body]
|
|
849
865
|
end
|
|
850
866
|
|
|
@@ -852,6 +868,7 @@ module Aws::BedrockRuntime
|
|
|
852
868
|
attr_accessor body: ::String
|
|
853
869
|
attr_accessor content_type: ::String
|
|
854
870
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
871
|
+
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
855
872
|
SENSITIVE: [:body]
|
|
856
873
|
end
|
|
857
874
|
|
|
@@ -880,6 +897,7 @@ module Aws::BedrockRuntime
|
|
|
880
897
|
attr_accessor guardrail_identifier: ::String
|
|
881
898
|
attr_accessor guardrail_version: ::String
|
|
882
899
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
900
|
+
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
883
901
|
SENSITIVE: [:body]
|
|
884
902
|
end
|
|
885
903
|
|
|
@@ -887,6 +905,7 @@ module Aws::BedrockRuntime
|
|
|
887
905
|
attr_accessor body: Types::ResponseStream
|
|
888
906
|
attr_accessor content_type: ::String
|
|
889
907
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
|
908
|
+
attr_accessor service_tier: ("priority" | "default" | "flex")
|
|
890
909
|
SENSITIVE: []
|
|
891
910
|
end
|
|
892
911
|
|
|
@@ -1032,6 +1051,11 @@ module Aws::BedrockRuntime
|
|
|
1032
1051
|
SENSITIVE: []
|
|
1033
1052
|
end
|
|
1034
1053
|
|
|
1054
|
+
class ServiceTier
|
|
1055
|
+
attr_accessor type: ("priority" | "default" | "flex")
|
|
1056
|
+
SENSITIVE: []
|
|
1057
|
+
end
|
|
1058
|
+
|
|
1035
1059
|
class ServiceUnavailableException
|
|
1036
1060
|
attr_accessor message: ::String
|
|
1037
1061
|
attr_accessor event_type: untyped
|
|
@@ -1074,6 +1098,11 @@ module Aws::BedrockRuntime
|
|
|
1074
1098
|
end
|
|
1075
1099
|
end
|
|
1076
1100
|
|
|
1101
|
+
class SystemTool
|
|
1102
|
+
attr_accessor name: ::String
|
|
1103
|
+
SENSITIVE: []
|
|
1104
|
+
end
|
|
1105
|
+
|
|
1077
1106
|
class Tag
|
|
1078
1107
|
attr_accessor key: ::String
|
|
1079
1108
|
attr_accessor value: ::String
|
|
@@ -1097,12 +1126,15 @@ module Aws::BedrockRuntime
|
|
|
1097
1126
|
|
|
1098
1127
|
class Tool
|
|
1099
1128
|
attr_accessor tool_spec: Types::ToolSpecification
|
|
1129
|
+
attr_accessor system_tool: Types::SystemTool
|
|
1100
1130
|
attr_accessor cache_point: Types::CachePointBlock
|
|
1101
1131
|
attr_accessor unknown: untyped
|
|
1102
1132
|
SENSITIVE: []
|
|
1103
1133
|
|
|
1104
1134
|
class ToolSpec < Tool
|
|
1105
1135
|
end
|
|
1136
|
+
class SystemTool < Tool
|
|
1137
|
+
end
|
|
1106
1138
|
class CachePoint < Tool
|
|
1107
1139
|
end
|
|
1108
1140
|
class Unknown < Tool
|
|
@@ -1147,6 +1179,25 @@ module Aws::BedrockRuntime
|
|
|
1147
1179
|
attr_accessor tool_use_id: ::String
|
|
1148
1180
|
attr_accessor content: ::Array[Types::ToolResultContentBlock]
|
|
1149
1181
|
attr_accessor status: ("success" | "error")
|
|
1182
|
+
attr_accessor type: ::String
|
|
1183
|
+
SENSITIVE: []
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
class ToolResultBlockDelta
|
|
1187
|
+
attr_accessor text: ::String
|
|
1188
|
+
attr_accessor unknown: untyped
|
|
1189
|
+
SENSITIVE: []
|
|
1190
|
+
|
|
1191
|
+
class Text < ToolResultBlockDelta
|
|
1192
|
+
end
|
|
1193
|
+
class Unknown < ToolResultBlockDelta
|
|
1194
|
+
end
|
|
1195
|
+
end
|
|
1196
|
+
|
|
1197
|
+
class ToolResultBlockStart
|
|
1198
|
+
attr_accessor tool_use_id: ::String
|
|
1199
|
+
attr_accessor type: ::String
|
|
1200
|
+
attr_accessor status: ("success" | "error")
|
|
1150
1201
|
SENSITIVE: []
|
|
1151
1202
|
end
|
|
1152
1203
|
|
|
@@ -1184,6 +1235,7 @@ module Aws::BedrockRuntime
|
|
|
1184
1235
|
attr_accessor tool_use_id: ::String
|
|
1185
1236
|
attr_accessor name: ::String
|
|
1186
1237
|
attr_accessor input: untyped
|
|
1238
|
+
attr_accessor type: ("server_tool_use")
|
|
1187
1239
|
SENSITIVE: []
|
|
1188
1240
|
end
|
|
1189
1241
|
|
|
@@ -1195,6 +1247,7 @@ module Aws::BedrockRuntime
|
|
|
1195
1247
|
class ToolUseBlockStart
|
|
1196
1248
|
attr_accessor tool_use_id: ::String
|
|
1197
1249
|
attr_accessor name: ::String
|
|
1250
|
+
attr_accessor type: ("server_tool_use")
|
|
1198
1251
|
SENSITIVE: []
|
|
1199
1252
|
end
|
|
1200
1253
|
|
|
@@ -1224,6 +1277,12 @@ module Aws::BedrockRuntime
|
|
|
1224
1277
|
end
|
|
1225
1278
|
end
|
|
1226
1279
|
|
|
1280
|
+
class WebLocation
|
|
1281
|
+
attr_accessor url: ::String
|
|
1282
|
+
attr_accessor domain: ::String
|
|
1283
|
+
SENSITIVE: []
|
|
1284
|
+
end
|
|
1285
|
+
|
|
1227
1286
|
class ConverseStreamOutput < Enumerator[untyped, untyped]
|
|
1228
1287
|
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]
|
|
1229
1288
|
end
|