aws-sdk-bedrockruntime 1.63.0 → 1.67.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +203 -5
- data/lib/aws-sdk-bedrockruntime/client_api.rb +66 -4
- data/lib/aws-sdk-bedrockruntime/types.rb +239 -9
- data/lib/aws-sdk-bedrockruntime.rb +17 -1
- data/sig/client.rbs +139 -7
- data/sig/types.rbs +56 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 015b198ed2bc11d1b4c61244d33ff1567cc8f796e29b434ab19712e9786d3219
|
|
4
|
+
data.tar.gz: 26b39ebea8d1b759040781b733abeda54873fefd4f1992a889b95bd4df1ee7f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d2395a6aefb0fe4a52bff860b3acf7d538413b6cda32b200f7f7eb186c4d25d1fa59c1e07a06c6edbd1091409accada840b518f8c9b0f864c3adbfd72eee55a
|
|
7
|
+
data.tar.gz: 2a64b8347e9d0e19c39b78ac1b2451842630c9227bc219c7fdeab27717a8b21195f0271d31c314a521300d1bdbd4b47a18c285c21be03d4d62cb4eef6db7100e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.67.0 (2025-11-26)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Bedrock Runtime Reserved Service Support
|
|
8
|
+
|
|
9
|
+
1.66.0 (2025-11-21)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Add support to automatically enforce safeguards across accounts within an AWS Organization.
|
|
13
|
+
|
|
14
|
+
1.65.0 (2025-11-19)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - This release includes support for Search Results.
|
|
18
|
+
|
|
19
|
+
1.64.0 (2025-11-18)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* Feature - Amazon Bedrock Runtime Service Tier Support Launch
|
|
23
|
+
|
|
4
24
|
1.63.0 (2025-10-29)
|
|
5
25
|
------------------
|
|
6
26
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.67.0
|
|
@@ -728,6 +728,12 @@ module Aws::BedrockRuntime
|
|
|
728
728
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
729
729
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
730
730
|
# resp.assessments[0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
731
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_id #=> String
|
|
732
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_version #=> String
|
|
733
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_arn #=> String
|
|
734
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_origin #=> Array
|
|
735
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
736
|
+
# resp.assessments[0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
731
737
|
# resp.guardrail_coverage.text_characters.guarded #=> Integer
|
|
732
738
|
# resp.guardrail_coverage.text_characters.total #=> Integer
|
|
733
739
|
# resp.guardrail_coverage.images.guarded #=> Integer
|
|
@@ -914,6 +920,10 @@ module Aws::BedrockRuntime
|
|
|
914
920
|
# @option params [Types::PerformanceConfiguration] :performance_config
|
|
915
921
|
# Model performance settings for the request.
|
|
916
922
|
#
|
|
923
|
+
# @option params [Types::ServiceTier] :service_tier
|
|
924
|
+
# Specifies the processing tier configuration used for serving the
|
|
925
|
+
# request.
|
|
926
|
+
#
|
|
917
927
|
# @return [Types::ConverseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
918
928
|
#
|
|
919
929
|
# * {Types::ConverseResponse#output #output} => Types::ConverseOutput
|
|
@@ -923,6 +933,7 @@ module Aws::BedrockRuntime
|
|
|
923
933
|
# * {Types::ConverseResponse#additional_model_response_fields #additional_model_response_fields} => Hash,Array,String,Numeric,Boolean
|
|
924
934
|
# * {Types::ConverseResponse#trace #trace} => Types::ConverseTrace
|
|
925
935
|
# * {Types::ConverseResponse#performance_config #performance_config} => Types::PerformanceConfiguration
|
|
936
|
+
# * {Types::ConverseResponse#service_tier #service_tier} => Types::ServiceTier
|
|
926
937
|
#
|
|
927
938
|
# @example Request syntax with placeholder values
|
|
928
939
|
#
|
|
@@ -1030,6 +1041,18 @@ module Aws::BedrockRuntime
|
|
|
1030
1041
|
# },
|
|
1031
1042
|
# },
|
|
1032
1043
|
# },
|
|
1044
|
+
# search_result: {
|
|
1045
|
+
# source: "String", # required
|
|
1046
|
+
# title: "String", # required
|
|
1047
|
+
# content: [ # required
|
|
1048
|
+
# {
|
|
1049
|
+
# text: "String", # required
|
|
1050
|
+
# },
|
|
1051
|
+
# ],
|
|
1052
|
+
# citations: {
|
|
1053
|
+
# enabled: false, # required
|
|
1054
|
+
# },
|
|
1055
|
+
# },
|
|
1033
1056
|
# },
|
|
1034
1057
|
# ],
|
|
1035
1058
|
# status: "success", # accepts success, error
|
|
@@ -1066,6 +1089,7 @@ module Aws::BedrockRuntime
|
|
|
1066
1089
|
# citations: [
|
|
1067
1090
|
# {
|
|
1068
1091
|
# title: "String",
|
|
1092
|
+
# source: "String",
|
|
1069
1093
|
# source_content: [
|
|
1070
1094
|
# {
|
|
1071
1095
|
# text: "String",
|
|
@@ -1091,10 +1115,27 @@ module Aws::BedrockRuntime
|
|
|
1091
1115
|
# start: 1,
|
|
1092
1116
|
# end: 1,
|
|
1093
1117
|
# },
|
|
1118
|
+
# search_result_location: {
|
|
1119
|
+
# search_result_index: 1,
|
|
1120
|
+
# start: 1,
|
|
1121
|
+
# end: 1,
|
|
1122
|
+
# },
|
|
1094
1123
|
# },
|
|
1095
1124
|
# },
|
|
1096
1125
|
# ],
|
|
1097
1126
|
# },
|
|
1127
|
+
# search_result: {
|
|
1128
|
+
# source: "String", # required
|
|
1129
|
+
# title: "String", # required
|
|
1130
|
+
# content: [ # required
|
|
1131
|
+
# {
|
|
1132
|
+
# text: "String", # required
|
|
1133
|
+
# },
|
|
1134
|
+
# ],
|
|
1135
|
+
# citations: {
|
|
1136
|
+
# enabled: false, # required
|
|
1137
|
+
# },
|
|
1138
|
+
# },
|
|
1098
1139
|
# },
|
|
1099
1140
|
# ],
|
|
1100
1141
|
# },
|
|
@@ -1155,8 +1196,8 @@ module Aws::BedrockRuntime
|
|
|
1155
1196
|
# },
|
|
1156
1197
|
# },
|
|
1157
1198
|
# guardrail_config: {
|
|
1158
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
1159
|
-
# guardrail_version: "GuardrailVersion",
|
|
1199
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
1200
|
+
# guardrail_version: "GuardrailVersion",
|
|
1160
1201
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
1161
1202
|
# },
|
|
1162
1203
|
# additional_model_request_fields: {
|
|
@@ -1173,6 +1214,9 @@ module Aws::BedrockRuntime
|
|
|
1173
1214
|
# performance_config: {
|
|
1174
1215
|
# latency: "standard", # accepts standard, optimized
|
|
1175
1216
|
# },
|
|
1217
|
+
# service_tier: {
|
|
1218
|
+
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
1219
|
+
# },
|
|
1176
1220
|
# })
|
|
1177
1221
|
#
|
|
1178
1222
|
# @example Response structure
|
|
@@ -1222,6 +1266,11 @@ module Aws::BedrockRuntime
|
|
|
1222
1266
|
# resp.output.message.content[0].tool_result.content[0].video.source.bytes #=> String
|
|
1223
1267
|
# resp.output.message.content[0].tool_result.content[0].video.source.s3_location.uri #=> String
|
|
1224
1268
|
# resp.output.message.content[0].tool_result.content[0].video.source.s3_location.bucket_owner #=> String
|
|
1269
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.source #=> String
|
|
1270
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.title #=> String
|
|
1271
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.content #=> Array
|
|
1272
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.content[0].text #=> String
|
|
1273
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.citations.enabled #=> Boolean
|
|
1225
1274
|
# resp.output.message.content[0].tool_result.status #=> String, one of "success", "error"
|
|
1226
1275
|
# resp.output.message.content[0].tool_result.type #=> String
|
|
1227
1276
|
# resp.output.message.content[0].guard_content.text.text #=> String
|
|
@@ -1237,6 +1286,7 @@ module Aws::BedrockRuntime
|
|
|
1237
1286
|
# resp.output.message.content[0].citations_content.content[0].text #=> String
|
|
1238
1287
|
# resp.output.message.content[0].citations_content.citations #=> Array
|
|
1239
1288
|
# resp.output.message.content[0].citations_content.citations[0].title #=> String
|
|
1289
|
+
# resp.output.message.content[0].citations_content.citations[0].source #=> String
|
|
1240
1290
|
# resp.output.message.content[0].citations_content.citations[0].source_content #=> Array
|
|
1241
1291
|
# resp.output.message.content[0].citations_content.citations[0].source_content[0].text #=> String
|
|
1242
1292
|
# resp.output.message.content[0].citations_content.citations[0].location.web.url #=> String
|
|
@@ -1250,6 +1300,14 @@ module Aws::BedrockRuntime
|
|
|
1250
1300
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.document_index #=> Integer
|
|
1251
1301
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.start #=> Integer
|
|
1252
1302
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.end #=> Integer
|
|
1303
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.search_result_index #=> Integer
|
|
1304
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.start #=> Integer
|
|
1305
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.end #=> Integer
|
|
1306
|
+
# resp.output.message.content[0].search_result.source #=> String
|
|
1307
|
+
# resp.output.message.content[0].search_result.title #=> String
|
|
1308
|
+
# resp.output.message.content[0].search_result.content #=> Array
|
|
1309
|
+
# resp.output.message.content[0].search_result.content[0].text #=> String
|
|
1310
|
+
# resp.output.message.content[0].search_result.citations.enabled #=> Boolean
|
|
1253
1311
|
# resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "model_context_window_exceeded"
|
|
1254
1312
|
# resp.usage.input_tokens #=> Integer
|
|
1255
1313
|
# resp.usage.output_tokens #=> Integer
|
|
@@ -1419,6 +1477,12 @@ module Aws::BedrockRuntime
|
|
|
1419
1477
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1420
1478
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1421
1479
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
1480
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_id #=> String
|
|
1481
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_version #=> String
|
|
1482
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_arn #=> String
|
|
1483
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin #=> Array
|
|
1484
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
1485
|
+
# resp.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
1422
1486
|
# resp.trace.guardrail.output_assessments #=> Hash
|
|
1423
1487
|
# resp.trace.guardrail.output_assessments["String"] #=> Array
|
|
1424
1488
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -1580,9 +1644,16 @@ module Aws::BedrockRuntime
|
|
|
1580
1644
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1581
1645
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1582
1646
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
1647
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_id #=> String
|
|
1648
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_version #=> String
|
|
1649
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_arn #=> String
|
|
1650
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin #=> Array
|
|
1651
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
1652
|
+
# resp.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
1583
1653
|
# resp.trace.guardrail.action_reason #=> String
|
|
1584
1654
|
# resp.trace.prompt_router.invoked_model_id #=> String
|
|
1585
1655
|
# resp.performance_config.latency #=> String, one of "standard", "optimized"
|
|
1656
|
+
# resp.service_tier.type #=> String, one of "priority", "default", "flex", "reserved"
|
|
1586
1657
|
#
|
|
1587
1658
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Converse AWS API Documentation
|
|
1588
1659
|
#
|
|
@@ -1776,6 +1847,10 @@ module Aws::BedrockRuntime
|
|
|
1776
1847
|
# @option params [Types::PerformanceConfiguration] :performance_config
|
|
1777
1848
|
# Model performance settings for the request.
|
|
1778
1849
|
#
|
|
1850
|
+
# @option params [Types::ServiceTier] :service_tier
|
|
1851
|
+
# Specifies the processing tier configuration used for serving the
|
|
1852
|
+
# request.
|
|
1853
|
+
#
|
|
1779
1854
|
# @return [Types::ConverseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1780
1855
|
#
|
|
1781
1856
|
# * {Types::ConverseStreamResponse#stream #stream} => Types::ConverseStreamOutput
|
|
@@ -2065,6 +2140,18 @@ module Aws::BedrockRuntime
|
|
|
2065
2140
|
# },
|
|
2066
2141
|
# },
|
|
2067
2142
|
# },
|
|
2143
|
+
# search_result: {
|
|
2144
|
+
# source: "String", # required
|
|
2145
|
+
# title: "String", # required
|
|
2146
|
+
# content: [ # required
|
|
2147
|
+
# {
|
|
2148
|
+
# text: "String", # required
|
|
2149
|
+
# },
|
|
2150
|
+
# ],
|
|
2151
|
+
# citations: {
|
|
2152
|
+
# enabled: false, # required
|
|
2153
|
+
# },
|
|
2154
|
+
# },
|
|
2068
2155
|
# },
|
|
2069
2156
|
# ],
|
|
2070
2157
|
# status: "success", # accepts success, error
|
|
@@ -2101,6 +2188,7 @@ module Aws::BedrockRuntime
|
|
|
2101
2188
|
# citations: [
|
|
2102
2189
|
# {
|
|
2103
2190
|
# title: "String",
|
|
2191
|
+
# source: "String",
|
|
2104
2192
|
# source_content: [
|
|
2105
2193
|
# {
|
|
2106
2194
|
# text: "String",
|
|
@@ -2126,10 +2214,27 @@ module Aws::BedrockRuntime
|
|
|
2126
2214
|
# start: 1,
|
|
2127
2215
|
# end: 1,
|
|
2128
2216
|
# },
|
|
2217
|
+
# search_result_location: {
|
|
2218
|
+
# search_result_index: 1,
|
|
2219
|
+
# start: 1,
|
|
2220
|
+
# end: 1,
|
|
2221
|
+
# },
|
|
2129
2222
|
# },
|
|
2130
2223
|
# },
|
|
2131
2224
|
# ],
|
|
2132
2225
|
# },
|
|
2226
|
+
# search_result: {
|
|
2227
|
+
# source: "String", # required
|
|
2228
|
+
# title: "String", # required
|
|
2229
|
+
# content: [ # required
|
|
2230
|
+
# {
|
|
2231
|
+
# text: "String", # required
|
|
2232
|
+
# },
|
|
2233
|
+
# ],
|
|
2234
|
+
# citations: {
|
|
2235
|
+
# enabled: false, # required
|
|
2236
|
+
# },
|
|
2237
|
+
# },
|
|
2133
2238
|
# },
|
|
2134
2239
|
# ],
|
|
2135
2240
|
# },
|
|
@@ -2190,8 +2295,8 @@ module Aws::BedrockRuntime
|
|
|
2190
2295
|
# },
|
|
2191
2296
|
# },
|
|
2192
2297
|
# guardrail_config: {
|
|
2193
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
2194
|
-
# guardrail_version: "GuardrailVersion",
|
|
2298
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
2299
|
+
# guardrail_version: "GuardrailVersion",
|
|
2195
2300
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
2196
2301
|
# stream_processing_mode: "sync", # accepts sync, async
|
|
2197
2302
|
# },
|
|
@@ -2209,6 +2314,9 @@ module Aws::BedrockRuntime
|
|
|
2209
2314
|
# performance_config: {
|
|
2210
2315
|
# latency: "standard", # accepts standard, optimized
|
|
2211
2316
|
# },
|
|
2317
|
+
# service_tier: {
|
|
2318
|
+
# type: "priority", # required, accepts priority, default, flex, reserved
|
|
2319
|
+
# },
|
|
2212
2320
|
# })
|
|
2213
2321
|
#
|
|
2214
2322
|
# @example Response structure
|
|
@@ -2238,6 +2346,7 @@ module Aws::BedrockRuntime
|
|
|
2238
2346
|
# event.delta.reasoning_content.redacted_content #=> String
|
|
2239
2347
|
# event.delta.reasoning_content.signature #=> String
|
|
2240
2348
|
# event.delta.citation.title #=> String
|
|
2349
|
+
# event.delta.citation.source #=> String
|
|
2241
2350
|
# event.delta.citation.source_content #=> Array
|
|
2242
2351
|
# event.delta.citation.source_content[0].text #=> String
|
|
2243
2352
|
# event.delta.citation.location.web.url #=> String
|
|
@@ -2251,6 +2360,9 @@ module Aws::BedrockRuntime
|
|
|
2251
2360
|
# event.delta.citation.location.document_chunk.document_index #=> Integer
|
|
2252
2361
|
# event.delta.citation.location.document_chunk.start #=> Integer
|
|
2253
2362
|
# event.delta.citation.location.document_chunk.end #=> Integer
|
|
2363
|
+
# event.delta.citation.location.search_result_location.search_result_index #=> Integer
|
|
2364
|
+
# event.delta.citation.location.search_result_location.start #=> Integer
|
|
2365
|
+
# event.delta.citation.location.search_result_location.end #=> Integer
|
|
2254
2366
|
# event.content_block_index #=> Integer
|
|
2255
2367
|
#
|
|
2256
2368
|
# # For :content_block_stop event available at #on_content_block_stop_event callback and response eventstream enumerator:
|
|
@@ -2428,6 +2540,12 @@ module Aws::BedrockRuntime
|
|
|
2428
2540
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2429
2541
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2430
2542
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
2543
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_id #=> String
|
|
2544
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_version #=> String
|
|
2545
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_arn #=> String
|
|
2546
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin #=> Array
|
|
2547
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
2548
|
+
# event.trace.guardrail.input_assessment["String"].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
2431
2549
|
# event.trace.guardrail.output_assessments #=> Hash
|
|
2432
2550
|
# event.trace.guardrail.output_assessments["String"] #=> Array
|
|
2433
2551
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -2589,9 +2707,16 @@ module Aws::BedrockRuntime
|
|
|
2589
2707
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2590
2708
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2591
2709
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
|
2710
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_id #=> String
|
|
2711
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_version #=> String
|
|
2712
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_arn #=> String
|
|
2713
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin #=> Array
|
|
2714
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_origin[0] #=> String, one of "REQUEST", "ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED"
|
|
2715
|
+
# event.trace.guardrail.output_assessments["String"][0].applied_guardrail_details.guardrail_ownership #=> String, one of "SELF", "CROSS_ACCOUNT"
|
|
2592
2716
|
# event.trace.guardrail.action_reason #=> String
|
|
2593
2717
|
# event.trace.prompt_router.invoked_model_id #=> String
|
|
2594
2718
|
# event.performance_config.latency #=> String, one of "standard", "optimized"
|
|
2719
|
+
# event.service_tier.type #=> String, one of "priority", "default", "flex", "reserved"
|
|
2595
2720
|
#
|
|
2596
2721
|
# # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
|
|
2597
2722
|
# event.message #=> String
|
|
@@ -2806,6 +2931,18 @@ module Aws::BedrockRuntime
|
|
|
2806
2931
|
# },
|
|
2807
2932
|
# },
|
|
2808
2933
|
# },
|
|
2934
|
+
# search_result: {
|
|
2935
|
+
# source: "String", # required
|
|
2936
|
+
# title: "String", # required
|
|
2937
|
+
# content: [ # required
|
|
2938
|
+
# {
|
|
2939
|
+
# text: "String", # required
|
|
2940
|
+
# },
|
|
2941
|
+
# ],
|
|
2942
|
+
# citations: {
|
|
2943
|
+
# enabled: false, # required
|
|
2944
|
+
# },
|
|
2945
|
+
# },
|
|
2809
2946
|
# },
|
|
2810
2947
|
# ],
|
|
2811
2948
|
# status: "success", # accepts success, error
|
|
@@ -2842,6 +2979,7 @@ module Aws::BedrockRuntime
|
|
|
2842
2979
|
# citations: [
|
|
2843
2980
|
# {
|
|
2844
2981
|
# title: "String",
|
|
2982
|
+
# source: "String",
|
|
2845
2983
|
# source_content: [
|
|
2846
2984
|
# {
|
|
2847
2985
|
# text: "String",
|
|
@@ -2867,10 +3005,27 @@ module Aws::BedrockRuntime
|
|
|
2867
3005
|
# start: 1,
|
|
2868
3006
|
# end: 1,
|
|
2869
3007
|
# },
|
|
3008
|
+
# search_result_location: {
|
|
3009
|
+
# search_result_index: 1,
|
|
3010
|
+
# start: 1,
|
|
3011
|
+
# end: 1,
|
|
3012
|
+
# },
|
|
2870
3013
|
# },
|
|
2871
3014
|
# },
|
|
2872
3015
|
# ],
|
|
2873
3016
|
# },
|
|
3017
|
+
# search_result: {
|
|
3018
|
+
# source: "String", # required
|
|
3019
|
+
# title: "String", # required
|
|
3020
|
+
# content: [ # required
|
|
3021
|
+
# {
|
|
3022
|
+
# text: "String", # required
|
|
3023
|
+
# },
|
|
3024
|
+
# ],
|
|
3025
|
+
# citations: {
|
|
3026
|
+
# enabled: false, # required
|
|
3027
|
+
# },
|
|
3028
|
+
# },
|
|
2874
3029
|
# },
|
|
2875
3030
|
# ],
|
|
2876
3031
|
# },
|
|
@@ -2895,6 +3050,37 @@ module Aws::BedrockRuntime
|
|
|
2895
3050
|
# },
|
|
2896
3051
|
# },
|
|
2897
3052
|
# ],
|
|
3053
|
+
# tool_config: {
|
|
3054
|
+
# tools: [ # required
|
|
3055
|
+
# {
|
|
3056
|
+
# tool_spec: {
|
|
3057
|
+
# name: "ToolName", # required
|
|
3058
|
+
# description: "NonEmptyString",
|
|
3059
|
+
# input_schema: { # required
|
|
3060
|
+
# json: {
|
|
3061
|
+
# },
|
|
3062
|
+
# },
|
|
3063
|
+
# },
|
|
3064
|
+
# system_tool: {
|
|
3065
|
+
# name: "ToolName", # required
|
|
3066
|
+
# },
|
|
3067
|
+
# cache_point: {
|
|
3068
|
+
# type: "default", # required, accepts default
|
|
3069
|
+
# },
|
|
3070
|
+
# },
|
|
3071
|
+
# ],
|
|
3072
|
+
# tool_choice: {
|
|
3073
|
+
# auto: {
|
|
3074
|
+
# },
|
|
3075
|
+
# any: {
|
|
3076
|
+
# },
|
|
3077
|
+
# tool: {
|
|
3078
|
+
# name: "ToolName", # required
|
|
3079
|
+
# },
|
|
3080
|
+
# },
|
|
3081
|
+
# },
|
|
3082
|
+
# additional_model_request_fields: {
|
|
3083
|
+
# },
|
|
2898
3084
|
# },
|
|
2899
3085
|
# },
|
|
2900
3086
|
# })
|
|
@@ -3069,11 +3255,15 @@ module Aws::BedrockRuntime
|
|
|
3069
3255
|
# @option params [String] :performance_config_latency
|
|
3070
3256
|
# Model performance settings for the request.
|
|
3071
3257
|
#
|
|
3258
|
+
# @option params [String] :service_tier
|
|
3259
|
+
# Specifies the processing tier type used for serving the request.
|
|
3260
|
+
#
|
|
3072
3261
|
# @return [Types::InvokeModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3073
3262
|
#
|
|
3074
3263
|
# * {Types::InvokeModelResponse#body #body} => String
|
|
3075
3264
|
# * {Types::InvokeModelResponse#content_type #content_type} => String
|
|
3076
3265
|
# * {Types::InvokeModelResponse#performance_config_latency #performance_config_latency} => String
|
|
3266
|
+
# * {Types::InvokeModelResponse#service_tier #service_tier} => String
|
|
3077
3267
|
#
|
|
3078
3268
|
# @example Request syntax with placeholder values
|
|
3079
3269
|
#
|
|
@@ -3086,6 +3276,7 @@ module Aws::BedrockRuntime
|
|
|
3086
3276
|
# guardrail_identifier: "GuardrailIdentifier",
|
|
3087
3277
|
# guardrail_version: "GuardrailVersion",
|
|
3088
3278
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3279
|
+
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3089
3280
|
# })
|
|
3090
3281
|
#
|
|
3091
3282
|
# @example Response structure
|
|
@@ -3093,6 +3284,7 @@ module Aws::BedrockRuntime
|
|
|
3093
3284
|
# resp.body #=> String
|
|
3094
3285
|
# resp.content_type #=> String
|
|
3095
3286
|
# resp.performance_config_latency #=> String, one of "standard", "optimized"
|
|
3287
|
+
# resp.service_tier #=> String, one of "priority", "default", "flex", "reserved"
|
|
3096
3288
|
#
|
|
3097
3289
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModel AWS API Documentation
|
|
3098
3290
|
#
|
|
@@ -3223,11 +3415,15 @@ module Aws::BedrockRuntime
|
|
|
3223
3415
|
# @option params [String] :performance_config_latency
|
|
3224
3416
|
# Model performance settings for the request.
|
|
3225
3417
|
#
|
|
3418
|
+
# @option params [String] :service_tier
|
|
3419
|
+
# Specifies the processing tier type used for serving the request.
|
|
3420
|
+
#
|
|
3226
3421
|
# @return [Types::InvokeModelWithResponseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3227
3422
|
#
|
|
3228
3423
|
# * {Types::InvokeModelWithResponseStreamResponse#body #body} => Types::ResponseStream
|
|
3229
3424
|
# * {Types::InvokeModelWithResponseStreamResponse#content_type #content_type} => String
|
|
3230
3425
|
# * {Types::InvokeModelWithResponseStreamResponse#performance_config_latency #performance_config_latency} => String
|
|
3426
|
+
# * {Types::InvokeModelWithResponseStreamResponse#service_tier #service_tier} => String
|
|
3231
3427
|
#
|
|
3232
3428
|
# @example EventStream Operation Example
|
|
3233
3429
|
#
|
|
@@ -3383,6 +3579,7 @@ module Aws::BedrockRuntime
|
|
|
3383
3579
|
# guardrail_identifier: "GuardrailIdentifier",
|
|
3384
3580
|
# guardrail_version: "GuardrailVersion",
|
|
3385
3581
|
# performance_config_latency: "standard", # accepts standard, optimized
|
|
3582
|
+
# service_tier: "priority", # accepts priority, default, flex, reserved
|
|
3386
3583
|
# })
|
|
3387
3584
|
#
|
|
3388
3585
|
# @example Response structure
|
|
@@ -3416,6 +3613,7 @@ module Aws::BedrockRuntime
|
|
|
3416
3613
|
#
|
|
3417
3614
|
# resp.content_type #=> String
|
|
3418
3615
|
# resp.performance_config_latency #=> String, one of "standard", "optimized"
|
|
3616
|
+
# resp.service_tier #=> String, one of "priority", "default", "flex", "reserved"
|
|
3419
3617
|
#
|
|
3420
3618
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStream AWS API Documentation
|
|
3421
3619
|
#
|
|
@@ -3610,7 +3808,7 @@ module Aws::BedrockRuntime
|
|
|
3610
3808
|
tracer: tracer
|
|
3611
3809
|
)
|
|
3612
3810
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
3613
|
-
context[:gem_version] = '1.
|
|
3811
|
+
context[:gem_version] = '1.67.0'
|
|
3614
3812
|
Seahorse::Client::Request.new(handlers, context)
|
|
3615
3813
|
end
|
|
3616
3814
|
|