aws-sdk-bedrockruntime 1.64.0 → 1.66.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 +143 -5
- data/lib/aws-sdk-bedrockruntime/client_api.rb +51 -4
- data/lib/aws-sdk-bedrockruntime/types.rb +158 -1
- data/lib/aws-sdk-bedrockruntime.rb +17 -1
- data/sig/client.rbs +94 -4
- data/sig/types.rbs +41 -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: a9cc4b6c6e28f3e47721675a4ae624d6ca582340b4d279fc0b019f72c13af974
|
|
4
|
+
data.tar.gz: d8b67febef536c5db41477f244653eb99bc188891e61f93dc2d51e4ebdec273d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00d088be3f4091c4b4cc7da2364f68bd6bd3b2c483b41e0e41795a4fd967a996f6802b6385ef94769eebba4da62a6cbddb7d7811b429ea4fa7be796a6c535932
|
|
7
|
+
data.tar.gz: 62b5541ee51851da80254191b63a0f4a95a8221dd212b0e84a52883f18d8101cdc9d39d33302f458eea191b1237bdff69329c0764d3e275623c2226a97573b8d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.66.0 (2025-11-21)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Add support to automatically enforce safeguards across accounts within an AWS Organization.
|
|
8
|
+
|
|
9
|
+
1.65.0 (2025-11-19)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - This release includes support for Search Results.
|
|
13
|
+
|
|
4
14
|
1.64.0 (2025-11-18)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.66.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
|
|
@@ -1035,6 +1041,18 @@ module Aws::BedrockRuntime
|
|
|
1035
1041
|
# },
|
|
1036
1042
|
# },
|
|
1037
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
|
+
# },
|
|
1038
1056
|
# },
|
|
1039
1057
|
# ],
|
|
1040
1058
|
# status: "success", # accepts success, error
|
|
@@ -1071,6 +1089,7 @@ module Aws::BedrockRuntime
|
|
|
1071
1089
|
# citations: [
|
|
1072
1090
|
# {
|
|
1073
1091
|
# title: "String",
|
|
1092
|
+
# source: "String",
|
|
1074
1093
|
# source_content: [
|
|
1075
1094
|
# {
|
|
1076
1095
|
# text: "String",
|
|
@@ -1096,10 +1115,27 @@ module Aws::BedrockRuntime
|
|
|
1096
1115
|
# start: 1,
|
|
1097
1116
|
# end: 1,
|
|
1098
1117
|
# },
|
|
1118
|
+
# search_result_location: {
|
|
1119
|
+
# search_result_index: 1,
|
|
1120
|
+
# start: 1,
|
|
1121
|
+
# end: 1,
|
|
1122
|
+
# },
|
|
1099
1123
|
# },
|
|
1100
1124
|
# },
|
|
1101
1125
|
# ],
|
|
1102
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
|
+
# },
|
|
1103
1139
|
# },
|
|
1104
1140
|
# ],
|
|
1105
1141
|
# },
|
|
@@ -1160,8 +1196,8 @@ module Aws::BedrockRuntime
|
|
|
1160
1196
|
# },
|
|
1161
1197
|
# },
|
|
1162
1198
|
# guardrail_config: {
|
|
1163
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
1164
|
-
# guardrail_version: "GuardrailVersion",
|
|
1199
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
1200
|
+
# guardrail_version: "GuardrailVersion",
|
|
1165
1201
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
1166
1202
|
# },
|
|
1167
1203
|
# additional_model_request_fields: {
|
|
@@ -1230,6 +1266,11 @@ module Aws::BedrockRuntime
|
|
|
1230
1266
|
# resp.output.message.content[0].tool_result.content[0].video.source.bytes #=> String
|
|
1231
1267
|
# resp.output.message.content[0].tool_result.content[0].video.source.s3_location.uri #=> String
|
|
1232
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
|
|
1233
1274
|
# resp.output.message.content[0].tool_result.status #=> String, one of "success", "error"
|
|
1234
1275
|
# resp.output.message.content[0].tool_result.type #=> String
|
|
1235
1276
|
# resp.output.message.content[0].guard_content.text.text #=> String
|
|
@@ -1245,6 +1286,7 @@ module Aws::BedrockRuntime
|
|
|
1245
1286
|
# resp.output.message.content[0].citations_content.content[0].text #=> String
|
|
1246
1287
|
# resp.output.message.content[0].citations_content.citations #=> Array
|
|
1247
1288
|
# resp.output.message.content[0].citations_content.citations[0].title #=> String
|
|
1289
|
+
# resp.output.message.content[0].citations_content.citations[0].source #=> String
|
|
1248
1290
|
# resp.output.message.content[0].citations_content.citations[0].source_content #=> Array
|
|
1249
1291
|
# resp.output.message.content[0].citations_content.citations[0].source_content[0].text #=> String
|
|
1250
1292
|
# resp.output.message.content[0].citations_content.citations[0].location.web.url #=> String
|
|
@@ -1258,6 +1300,14 @@ module Aws::BedrockRuntime
|
|
|
1258
1300
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.document_index #=> Integer
|
|
1259
1301
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.start #=> Integer
|
|
1260
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
|
|
1261
1311
|
# resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "model_context_window_exceeded"
|
|
1262
1312
|
# resp.usage.input_tokens #=> Integer
|
|
1263
1313
|
# resp.usage.output_tokens #=> Integer
|
|
@@ -1427,6 +1477,12 @@ module Aws::BedrockRuntime
|
|
|
1427
1477
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1428
1478
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1429
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"
|
|
1430
1486
|
# resp.trace.guardrail.output_assessments #=> Hash
|
|
1431
1487
|
# resp.trace.guardrail.output_assessments["String"] #=> Array
|
|
1432
1488
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -1588,6 +1644,12 @@ module Aws::BedrockRuntime
|
|
|
1588
1644
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
1589
1645
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
1590
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"
|
|
1591
1653
|
# resp.trace.guardrail.action_reason #=> String
|
|
1592
1654
|
# resp.trace.prompt_router.invoked_model_id #=> String
|
|
1593
1655
|
# resp.performance_config.latency #=> String, one of "standard", "optimized"
|
|
@@ -2078,6 +2140,18 @@ module Aws::BedrockRuntime
|
|
|
2078
2140
|
# },
|
|
2079
2141
|
# },
|
|
2080
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
|
+
# },
|
|
2081
2155
|
# },
|
|
2082
2156
|
# ],
|
|
2083
2157
|
# status: "success", # accepts success, error
|
|
@@ -2114,6 +2188,7 @@ module Aws::BedrockRuntime
|
|
|
2114
2188
|
# citations: [
|
|
2115
2189
|
# {
|
|
2116
2190
|
# title: "String",
|
|
2191
|
+
# source: "String",
|
|
2117
2192
|
# source_content: [
|
|
2118
2193
|
# {
|
|
2119
2194
|
# text: "String",
|
|
@@ -2139,10 +2214,27 @@ module Aws::BedrockRuntime
|
|
|
2139
2214
|
# start: 1,
|
|
2140
2215
|
# end: 1,
|
|
2141
2216
|
# },
|
|
2217
|
+
# search_result_location: {
|
|
2218
|
+
# search_result_index: 1,
|
|
2219
|
+
# start: 1,
|
|
2220
|
+
# end: 1,
|
|
2221
|
+
# },
|
|
2142
2222
|
# },
|
|
2143
2223
|
# },
|
|
2144
2224
|
# ],
|
|
2145
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
|
+
# },
|
|
2146
2238
|
# },
|
|
2147
2239
|
# ],
|
|
2148
2240
|
# },
|
|
@@ -2203,8 +2295,8 @@ module Aws::BedrockRuntime
|
|
|
2203
2295
|
# },
|
|
2204
2296
|
# },
|
|
2205
2297
|
# guardrail_config: {
|
|
2206
|
-
# guardrail_identifier: "GuardrailIdentifier",
|
|
2207
|
-
# guardrail_version: "GuardrailVersion",
|
|
2298
|
+
# guardrail_identifier: "GuardrailIdentifier",
|
|
2299
|
+
# guardrail_version: "GuardrailVersion",
|
|
2208
2300
|
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
|
2209
2301
|
# stream_processing_mode: "sync", # accepts sync, async
|
|
2210
2302
|
# },
|
|
@@ -2254,6 +2346,7 @@ module Aws::BedrockRuntime
|
|
|
2254
2346
|
# event.delta.reasoning_content.redacted_content #=> String
|
|
2255
2347
|
# event.delta.reasoning_content.signature #=> String
|
|
2256
2348
|
# event.delta.citation.title #=> String
|
|
2349
|
+
# event.delta.citation.source #=> String
|
|
2257
2350
|
# event.delta.citation.source_content #=> Array
|
|
2258
2351
|
# event.delta.citation.source_content[0].text #=> String
|
|
2259
2352
|
# event.delta.citation.location.web.url #=> String
|
|
@@ -2267,6 +2360,9 @@ module Aws::BedrockRuntime
|
|
|
2267
2360
|
# event.delta.citation.location.document_chunk.document_index #=> Integer
|
|
2268
2361
|
# event.delta.citation.location.document_chunk.start #=> Integer
|
|
2269
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
|
|
2270
2366
|
# event.content_block_index #=> Integer
|
|
2271
2367
|
#
|
|
2272
2368
|
# # For :content_block_stop event available at #on_content_block_stop_event callback and response eventstream enumerator:
|
|
@@ -2444,6 +2540,12 @@ module Aws::BedrockRuntime
|
|
|
2444
2540
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2445
2541
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2446
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"
|
|
2447
2549
|
# event.trace.guardrail.output_assessments #=> Hash
|
|
2448
2550
|
# event.trace.guardrail.output_assessments["String"] #=> Array
|
|
2449
2551
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
|
@@ -2605,6 +2707,12 @@ module Aws::BedrockRuntime
|
|
|
2605
2707
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
|
2606
2708
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
|
2607
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"
|
|
2608
2716
|
# event.trace.guardrail.action_reason #=> String
|
|
2609
2717
|
# event.trace.prompt_router.invoked_model_id #=> String
|
|
2610
2718
|
# event.performance_config.latency #=> String, one of "standard", "optimized"
|
|
@@ -2823,6 +2931,18 @@ module Aws::BedrockRuntime
|
|
|
2823
2931
|
# },
|
|
2824
2932
|
# },
|
|
2825
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
|
+
# },
|
|
2826
2946
|
# },
|
|
2827
2947
|
# ],
|
|
2828
2948
|
# status: "success", # accepts success, error
|
|
@@ -2859,6 +2979,7 @@ module Aws::BedrockRuntime
|
|
|
2859
2979
|
# citations: [
|
|
2860
2980
|
# {
|
|
2861
2981
|
# title: "String",
|
|
2982
|
+
# source: "String",
|
|
2862
2983
|
# source_content: [
|
|
2863
2984
|
# {
|
|
2864
2985
|
# text: "String",
|
|
@@ -2884,10 +3005,27 @@ module Aws::BedrockRuntime
|
|
|
2884
3005
|
# start: 1,
|
|
2885
3006
|
# end: 1,
|
|
2886
3007
|
# },
|
|
3008
|
+
# search_result_location: {
|
|
3009
|
+
# search_result_index: 1,
|
|
3010
|
+
# start: 1,
|
|
3011
|
+
# end: 1,
|
|
3012
|
+
# },
|
|
2887
3013
|
# },
|
|
2888
3014
|
# },
|
|
2889
3015
|
# ],
|
|
2890
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
|
+
# },
|
|
2891
3029
|
# },
|
|
2892
3030
|
# ],
|
|
2893
3031
|
# },
|
|
@@ -3670,7 +3808,7 @@ module Aws::BedrockRuntime
|
|
|
3670
3808
|
tracer: tracer
|
|
3671
3809
|
)
|
|
3672
3810
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
3673
|
-
context[:gem_version] = '1.
|
|
3811
|
+
context[:gem_version] = '1.66.0'
|
|
3674
3812
|
Seahorse::Client::Request.new(handlers, context)
|
|
3675
3813
|
end
|
|
3676
3814
|
|
|
@@ -17,6 +17,7 @@ module Aws::BedrockRuntime
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
18
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
|
19
19
|
AnyToolChoice = Shapes::StructureShape.new(name: 'AnyToolChoice')
|
|
20
|
+
AppliedGuardrailDetails = Shapes::StructureShape.new(name: 'AppliedGuardrailDetails')
|
|
20
21
|
ApplyGuardrailRequest = Shapes::StructureShape.new(name: 'ApplyGuardrailRequest')
|
|
21
22
|
ApplyGuardrailResponse = Shapes::StructureShape.new(name: 'ApplyGuardrailResponse')
|
|
22
23
|
AsyncInvokeArn = Shapes::StringShape.new(name: 'AsyncInvokeArn')
|
|
@@ -102,6 +103,7 @@ module Aws::BedrockRuntime
|
|
|
102
103
|
GetAsyncInvokeRequest = Shapes::StructureShape.new(name: 'GetAsyncInvokeRequest')
|
|
103
104
|
GetAsyncInvokeResponse = Shapes::StructureShape.new(name: 'GetAsyncInvokeResponse')
|
|
104
105
|
GuardrailAction = Shapes::StringShape.new(name: 'GuardrailAction')
|
|
106
|
+
GuardrailArn = Shapes::StringShape.new(name: 'GuardrailArn')
|
|
105
107
|
GuardrailAssessment = Shapes::StructureShape.new(name: 'GuardrailAssessment')
|
|
106
108
|
GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
|
|
107
109
|
GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
|
|
@@ -170,6 +172,7 @@ module Aws::BedrockRuntime
|
|
|
170
172
|
GuardrailCoverage = Shapes::StructureShape.new(name: 'GuardrailCoverage')
|
|
171
173
|
GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
|
|
172
174
|
GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
|
|
175
|
+
GuardrailId = Shapes::StringShape.new(name: 'GuardrailId')
|
|
173
176
|
GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
|
|
174
177
|
GuardrailImageBlock = Shapes::StructureShape.new(name: 'GuardrailImageBlock')
|
|
175
178
|
GuardrailImageCoverage = Shapes::StructureShape.new(name: 'GuardrailImageCoverage')
|
|
@@ -180,10 +183,13 @@ module Aws::BedrockRuntime
|
|
|
180
183
|
GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
|
|
181
184
|
GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
|
|
182
185
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
|
186
|
+
GuardrailOrigin = Shapes::StringShape.new(name: 'GuardrailOrigin')
|
|
187
|
+
GuardrailOriginList = Shapes::ListShape.new(name: 'GuardrailOriginList')
|
|
183
188
|
GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
|
|
184
189
|
GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
|
|
185
190
|
GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
|
|
186
191
|
GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
|
|
192
|
+
GuardrailOwnership = Shapes::StringShape.new(name: 'GuardrailOwnership')
|
|
187
193
|
GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
|
|
188
194
|
GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
|
|
189
195
|
GuardrailPiiEntityType = Shapes::StringShape.new(name: 'GuardrailPiiEntityType')
|
|
@@ -273,6 +279,13 @@ module Aws::BedrockRuntime
|
|
|
273
279
|
ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
|
|
274
280
|
S3Location = Shapes::StructureShape.new(name: 'S3Location')
|
|
275
281
|
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
|
282
|
+
SearchResultBlock = Shapes::StructureShape.new(name: 'SearchResultBlock')
|
|
283
|
+
SearchResultContentBlock = Shapes::StructureShape.new(name: 'SearchResultContentBlock')
|
|
284
|
+
SearchResultContentBlocks = Shapes::ListShape.new(name: 'SearchResultContentBlocks')
|
|
285
|
+
SearchResultLocation = Shapes::StructureShape.new(name: 'SearchResultLocation')
|
|
286
|
+
SearchResultLocationEndInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationEndInteger')
|
|
287
|
+
SearchResultLocationSearchResultIndexInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationSearchResultIndexInteger')
|
|
288
|
+
SearchResultLocationStartInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationStartInteger')
|
|
276
289
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
277
290
|
ServiceTier = Shapes::StructureShape.new(name: 'ServiceTier')
|
|
278
291
|
ServiceTierType = Shapes::StringShape.new(name: 'ServiceTierType')
|
|
@@ -334,6 +347,13 @@ module Aws::BedrockRuntime
|
|
|
334
347
|
|
|
335
348
|
AnyToolChoice.struct_class = Types::AnyToolChoice
|
|
336
349
|
|
|
350
|
+
AppliedGuardrailDetails.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, location_name: "guardrailId"))
|
|
351
|
+
AppliedGuardrailDetails.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
352
|
+
AppliedGuardrailDetails.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, location_name: "guardrailArn"))
|
|
353
|
+
AppliedGuardrailDetails.add_member(:guardrail_origin, Shapes::ShapeRef.new(shape: GuardrailOriginList, location_name: "guardrailOrigin"))
|
|
354
|
+
AppliedGuardrailDetails.add_member(:guardrail_ownership, Shapes::ShapeRef.new(shape: GuardrailOwnership, location_name: "guardrailOwnership"))
|
|
355
|
+
AppliedGuardrailDetails.struct_class = Types::AppliedGuardrailDetails
|
|
356
|
+
|
|
337
357
|
ApplyGuardrailRequest.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location: "uri", location_name: "guardrailIdentifier"))
|
|
338
358
|
ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
|
|
339
359
|
ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
|
|
@@ -385,6 +405,7 @@ module Aws::BedrockRuntime
|
|
|
385
405
|
CachePointBlock.struct_class = Types::CachePointBlock
|
|
386
406
|
|
|
387
407
|
Citation.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
408
|
+
Citation.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
388
409
|
Citation.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentList, location_name: "sourceContent"))
|
|
389
410
|
Citation.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
390
411
|
Citation.struct_class = Types::Citation
|
|
@@ -401,11 +422,13 @@ module Aws::BedrockRuntime
|
|
|
401
422
|
CitationLocation.add_member(:document_char, Shapes::ShapeRef.new(shape: DocumentCharLocation, location_name: "documentChar"))
|
|
402
423
|
CitationLocation.add_member(:document_page, Shapes::ShapeRef.new(shape: DocumentPageLocation, location_name: "documentPage"))
|
|
403
424
|
CitationLocation.add_member(:document_chunk, Shapes::ShapeRef.new(shape: DocumentChunkLocation, location_name: "documentChunk"))
|
|
425
|
+
CitationLocation.add_member(:search_result_location, Shapes::ShapeRef.new(shape: SearchResultLocation, location_name: "searchResultLocation"))
|
|
404
426
|
CitationLocation.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
405
427
|
CitationLocation.add_member_subclass(:web, Types::CitationLocation::Web)
|
|
406
428
|
CitationLocation.add_member_subclass(:document_char, Types::CitationLocation::DocumentChar)
|
|
407
429
|
CitationLocation.add_member_subclass(:document_page, Types::CitationLocation::DocumentPage)
|
|
408
430
|
CitationLocation.add_member_subclass(:document_chunk, Types::CitationLocation::DocumentChunk)
|
|
431
|
+
CitationLocation.add_member_subclass(:search_result_location, Types::CitationLocation::SearchResultLocation)
|
|
409
432
|
CitationLocation.add_member_subclass(:unknown, Types::CitationLocation::Unknown)
|
|
410
433
|
CitationLocation.struct_class = Types::CitationLocation
|
|
411
434
|
|
|
@@ -432,6 +455,7 @@ module Aws::BedrockRuntime
|
|
|
432
455
|
CitationsContentBlock.struct_class = Types::CitationsContentBlock
|
|
433
456
|
|
|
434
457
|
CitationsDelta.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
458
|
+
CitationsDelta.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
435
459
|
CitationsDelta.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentListDelta, location_name: "sourceContent"))
|
|
436
460
|
CitationsDelta.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
437
461
|
CitationsDelta.struct_class = Types::CitationsDelta
|
|
@@ -449,6 +473,7 @@ module Aws::BedrockRuntime
|
|
|
449
473
|
ContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
|
450
474
|
ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
|
|
451
475
|
ContentBlock.add_member(:citations_content, Shapes::ShapeRef.new(shape: CitationsContentBlock, location_name: "citationsContent"))
|
|
476
|
+
ContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
452
477
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
453
478
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
|
454
479
|
ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
|
|
@@ -460,6 +485,7 @@ module Aws::BedrockRuntime
|
|
|
460
485
|
ContentBlock.add_member_subclass(:cache_point, Types::ContentBlock::CachePoint)
|
|
461
486
|
ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
|
|
462
487
|
ContentBlock.add_member_subclass(:citations_content, Types::ContentBlock::CitationsContent)
|
|
488
|
+
ContentBlock.add_member_subclass(:search_result, Types::ContentBlock::SearchResult)
|
|
463
489
|
ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
|
|
464
490
|
ContentBlock.struct_class = Types::ContentBlock
|
|
465
491
|
|
|
@@ -669,6 +695,7 @@ module Aws::BedrockRuntime
|
|
|
669
695
|
GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy"))
|
|
670
696
|
GuardrailAssessment.add_member(:automated_reasoning_policy, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyAssessment, location_name: "automatedReasoningPolicy"))
|
|
671
697
|
GuardrailAssessment.add_member(:invocation_metrics, Shapes::ShapeRef.new(shape: GuardrailInvocationMetrics, location_name: "invocationMetrics"))
|
|
698
|
+
GuardrailAssessment.add_member(:applied_guardrail_details, Shapes::ShapeRef.new(shape: AppliedGuardrailDetails, location_name: "appliedGuardrailDetails"))
|
|
672
699
|
GuardrailAssessment.struct_class = Types::GuardrailAssessment
|
|
673
700
|
|
|
674
701
|
GuardrailAssessmentList.member = Shapes::ShapeRef.new(shape: GuardrailAssessment)
|
|
@@ -773,8 +800,8 @@ module Aws::BedrockRuntime
|
|
|
773
800
|
GuardrailAutomatedReasoningValidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
|
|
774
801
|
GuardrailAutomatedReasoningValidFinding.struct_class = Types::GuardrailAutomatedReasoningValidFinding
|
|
775
802
|
|
|
776
|
-
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
777
|
-
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
803
|
+
GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
804
|
+
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
778
805
|
GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
779
806
|
GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
|
|
780
807
|
|
|
@@ -876,6 +903,8 @@ module Aws::BedrockRuntime
|
|
|
876
903
|
|
|
877
904
|
GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
|
|
878
905
|
|
|
906
|
+
GuardrailOriginList.member = Shapes::ShapeRef.new(shape: GuardrailOrigin)
|
|
907
|
+
|
|
879
908
|
GuardrailOutputContent.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailOutputText, location_name: "text"))
|
|
880
909
|
GuardrailOutputContent.struct_class = Types::GuardrailOutputContent
|
|
881
910
|
|
|
@@ -902,8 +931,8 @@ module Aws::BedrockRuntime
|
|
|
902
931
|
GuardrailSensitiveInformationPolicyAssessment.add_member(:regexes, Shapes::ShapeRef.new(shape: GuardrailRegexFilterList, required: true, location_name: "regexes"))
|
|
903
932
|
GuardrailSensitiveInformationPolicyAssessment.struct_class = Types::GuardrailSensitiveInformationPolicyAssessment
|
|
904
933
|
|
|
905
|
-
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier,
|
|
906
|
-
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion,
|
|
934
|
+
GuardrailStreamConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
|
|
935
|
+
GuardrailStreamConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
|
|
907
936
|
GuardrailStreamConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
|
|
908
937
|
GuardrailStreamConfiguration.add_member(:stream_processing_mode, Shapes::ShapeRef.new(shape: GuardrailStreamProcessingMode, location_name: "streamProcessingMode"))
|
|
909
938
|
GuardrailStreamConfiguration.struct_class = Types::GuardrailStreamConfiguration
|
|
@@ -1142,6 +1171,22 @@ module Aws::BedrockRuntime
|
|
|
1142
1171
|
S3Location.add_member(:bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "bucketOwner"))
|
|
1143
1172
|
S3Location.struct_class = Types::S3Location
|
|
1144
1173
|
|
|
1174
|
+
SearchResultBlock.add_member(:source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "source"))
|
|
1175
|
+
SearchResultBlock.add_member(:title, Shapes::ShapeRef.new(shape: String, required: true, location_name: "title"))
|
|
1176
|
+
SearchResultBlock.add_member(:content, Shapes::ShapeRef.new(shape: SearchResultContentBlocks, required: true, location_name: "content"))
|
|
1177
|
+
SearchResultBlock.add_member(:citations, Shapes::ShapeRef.new(shape: CitationsConfig, location_name: "citations"))
|
|
1178
|
+
SearchResultBlock.struct_class = Types::SearchResultBlock
|
|
1179
|
+
|
|
1180
|
+
SearchResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
|
|
1181
|
+
SearchResultContentBlock.struct_class = Types::SearchResultContentBlock
|
|
1182
|
+
|
|
1183
|
+
SearchResultContentBlocks.member = Shapes::ShapeRef.new(shape: SearchResultContentBlock)
|
|
1184
|
+
|
|
1185
|
+
SearchResultLocation.add_member(:search_result_index, Shapes::ShapeRef.new(shape: SearchResultLocationSearchResultIndexInteger, location_name: "searchResultIndex"))
|
|
1186
|
+
SearchResultLocation.add_member(:start, Shapes::ShapeRef.new(shape: SearchResultLocationStartInteger, location_name: "start"))
|
|
1187
|
+
SearchResultLocation.add_member(:end, Shapes::ShapeRef.new(shape: SearchResultLocationEndInteger, location_name: "end"))
|
|
1188
|
+
SearchResultLocation.struct_class = Types::SearchResultLocation
|
|
1189
|
+
|
|
1145
1190
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
1146
1191
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
1147
1192
|
|
|
@@ -1251,12 +1296,14 @@ module Aws::BedrockRuntime
|
|
|
1251
1296
|
ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
|
|
1252
1297
|
ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
|
|
1253
1298
|
ToolResultContentBlock.add_member(:video, Shapes::ShapeRef.new(shape: VideoBlock, location_name: "video"))
|
|
1299
|
+
ToolResultContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
1254
1300
|
ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1255
1301
|
ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json)
|
|
1256
1302
|
ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text)
|
|
1257
1303
|
ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image)
|
|
1258
1304
|
ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document)
|
|
1259
1305
|
ToolResultContentBlock.add_member_subclass(:video, Types::ToolResultContentBlock::Video)
|
|
1306
|
+
ToolResultContentBlock.add_member_subclass(:search_result, Types::ToolResultContentBlock::SearchResult)
|
|
1260
1307
|
ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown)
|
|
1261
1308
|
ToolResultContentBlock.struct_class = Types::ToolResultContentBlock
|
|
1262
1309
|
|
|
@@ -43,6 +43,46 @@ module Aws::BedrockRuntime
|
|
|
43
43
|
#
|
|
44
44
|
class AnyToolChoice < Aws::EmptyStructure; end
|
|
45
45
|
|
|
46
|
+
# Details about the specific guardrail that was applied during this
|
|
47
|
+
# assessment, including its identifier, version, ARN, origin, and
|
|
48
|
+
# ownership information.
|
|
49
|
+
#
|
|
50
|
+
# @!attribute [rw] guardrail_id
|
|
51
|
+
# The unique ID of the guardrail that was applied.
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
# @!attribute [rw] guardrail_version
|
|
55
|
+
# The version of the guardrail that was applied.
|
|
56
|
+
# @return [String]
|
|
57
|
+
#
|
|
58
|
+
# @!attribute [rw] guardrail_arn
|
|
59
|
+
# The ARN of the guardrail that was applied.
|
|
60
|
+
# @return [String]
|
|
61
|
+
#
|
|
62
|
+
# @!attribute [rw] guardrail_origin
|
|
63
|
+
# The origin of how the guardrail was applied. This can be either
|
|
64
|
+
# requested at the API level or enforced at the account or
|
|
65
|
+
# organization level as a default guardrail.
|
|
66
|
+
# @return [Array<String>]
|
|
67
|
+
#
|
|
68
|
+
# @!attribute [rw] guardrail_ownership
|
|
69
|
+
# The ownership type of the guardrail, indicating whether it is owned
|
|
70
|
+
# by the requesting account or is a cross-account guardrail shared
|
|
71
|
+
# from another AWS account.
|
|
72
|
+
# @return [String]
|
|
73
|
+
#
|
|
74
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/AppliedGuardrailDetails AWS API Documentation
|
|
75
|
+
#
|
|
76
|
+
class AppliedGuardrailDetails < Struct.new(
|
|
77
|
+
:guardrail_id,
|
|
78
|
+
:guardrail_version,
|
|
79
|
+
:guardrail_arn,
|
|
80
|
+
:guardrail_origin,
|
|
81
|
+
:guardrail_ownership)
|
|
82
|
+
SENSITIVE = []
|
|
83
|
+
include Aws::Structure
|
|
84
|
+
end
|
|
85
|
+
|
|
46
86
|
# @!attribute [rw] guardrail_identifier
|
|
47
87
|
# The guardrail identifier used in the request to apply the guardrail.
|
|
48
88
|
# @return [String]
|
|
@@ -292,6 +332,11 @@ module Aws::BedrockRuntime
|
|
|
292
332
|
# The title or identifier of the source document being cited.
|
|
293
333
|
# @return [String]
|
|
294
334
|
#
|
|
335
|
+
# @!attribute [rw] source
|
|
336
|
+
# The source from the original search result that provided the cited
|
|
337
|
+
# content.
|
|
338
|
+
# @return [String]
|
|
339
|
+
#
|
|
295
340
|
# @!attribute [rw] source_content
|
|
296
341
|
# The specific content from the source document that was referenced or
|
|
297
342
|
# cited in the generated response.
|
|
@@ -307,6 +352,7 @@ module Aws::BedrockRuntime
|
|
|
307
352
|
#
|
|
308
353
|
class Citation < Struct.new(
|
|
309
354
|
:title,
|
|
355
|
+
:source,
|
|
310
356
|
:source_content,
|
|
311
357
|
:location)
|
|
312
358
|
SENSITIVE = []
|
|
@@ -367,6 +413,12 @@ module Aws::BedrockRuntime
|
|
|
367
413
|
# logical chunks.
|
|
368
414
|
# @return [Types::DocumentChunkLocation]
|
|
369
415
|
#
|
|
416
|
+
# @!attribute [rw] search_result_location
|
|
417
|
+
# The search result location where the cited content is found,
|
|
418
|
+
# including the search result index and block positions within the
|
|
419
|
+
# content array.
|
|
420
|
+
# @return [Types::SearchResultLocation]
|
|
421
|
+
#
|
|
370
422
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationLocation AWS API Documentation
|
|
371
423
|
#
|
|
372
424
|
class CitationLocation < Struct.new(
|
|
@@ -374,6 +426,7 @@ module Aws::BedrockRuntime
|
|
|
374
426
|
:document_char,
|
|
375
427
|
:document_page,
|
|
376
428
|
:document_chunk,
|
|
429
|
+
:search_result_location,
|
|
377
430
|
:unknown)
|
|
378
431
|
SENSITIVE = []
|
|
379
432
|
include Aws::Structure
|
|
@@ -383,6 +436,7 @@ module Aws::BedrockRuntime
|
|
|
383
436
|
class DocumentChar < CitationLocation; end
|
|
384
437
|
class DocumentPage < CitationLocation; end
|
|
385
438
|
class DocumentChunk < CitationLocation; end
|
|
439
|
+
class SearchResultLocation < CitationLocation; end
|
|
386
440
|
class Unknown < CitationLocation; end
|
|
387
441
|
end
|
|
388
442
|
|
|
@@ -478,6 +532,11 @@ module Aws::BedrockRuntime
|
|
|
478
532
|
# The title or identifier of the source document being cited.
|
|
479
533
|
# @return [String]
|
|
480
534
|
#
|
|
535
|
+
# @!attribute [rw] source
|
|
536
|
+
# The source from the original search result that provided the cited
|
|
537
|
+
# content.
|
|
538
|
+
# @return [String]
|
|
539
|
+
#
|
|
481
540
|
# @!attribute [rw] source_content
|
|
482
541
|
# The specific content from the source document that was referenced or
|
|
483
542
|
# cited in the generated response.
|
|
@@ -494,6 +553,7 @@ module Aws::BedrockRuntime
|
|
|
494
553
|
#
|
|
495
554
|
class CitationsDelta < Struct.new(
|
|
496
555
|
:title,
|
|
556
|
+
:source,
|
|
497
557
|
:source_content,
|
|
498
558
|
:location)
|
|
499
559
|
SENSITIVE = []
|
|
@@ -578,6 +638,10 @@ module Aws::BedrockRuntime
|
|
|
578
638
|
# and source documents.
|
|
579
639
|
# @return [Types::CitationsContentBlock]
|
|
580
640
|
#
|
|
641
|
+
# @!attribute [rw] search_result
|
|
642
|
+
# Search result to include in the message.
|
|
643
|
+
# @return [Types::SearchResultBlock]
|
|
644
|
+
#
|
|
581
645
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlock AWS API Documentation
|
|
582
646
|
#
|
|
583
647
|
class ContentBlock < Struct.new(
|
|
@@ -591,6 +655,7 @@ module Aws::BedrockRuntime
|
|
|
591
655
|
:cache_point,
|
|
592
656
|
:reasoning_content,
|
|
593
657
|
:citations_content,
|
|
658
|
+
:search_result,
|
|
594
659
|
:unknown)
|
|
595
660
|
SENSITIVE = [:reasoning_content]
|
|
596
661
|
include Aws::Structure
|
|
@@ -606,6 +671,7 @@ module Aws::BedrockRuntime
|
|
|
606
671
|
class CachePoint < ContentBlock; end
|
|
607
672
|
class ReasoningContent < ContentBlock; end
|
|
608
673
|
class CitationsContent < ContentBlock; end
|
|
674
|
+
class SearchResult < ContentBlock; end
|
|
609
675
|
class Unknown < ContentBlock; end
|
|
610
676
|
end
|
|
611
677
|
|
|
@@ -1669,6 +1735,12 @@ module Aws::BedrockRuntime
|
|
|
1669
1735
|
# The invocation metrics for the guardrail assessment.
|
|
1670
1736
|
# @return [Types::GuardrailInvocationMetrics]
|
|
1671
1737
|
#
|
|
1738
|
+
# @!attribute [rw] applied_guardrail_details
|
|
1739
|
+
# Details about the specific guardrail that was applied during this
|
|
1740
|
+
# assessment, including its identifier, version, ARN, origin, and
|
|
1741
|
+
# ownership information.
|
|
1742
|
+
# @return [Types::AppliedGuardrailDetails]
|
|
1743
|
+
#
|
|
1672
1744
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAssessment AWS API Documentation
|
|
1673
1745
|
#
|
|
1674
1746
|
class GuardrailAssessment < Struct.new(
|
|
@@ -1678,7 +1750,8 @@ module Aws::BedrockRuntime
|
|
|
1678
1750
|
:sensitive_information_policy,
|
|
1679
1751
|
:contextual_grounding_policy,
|
|
1680
1752
|
:automated_reasoning_policy,
|
|
1681
|
-
:invocation_metrics
|
|
1753
|
+
:invocation_metrics,
|
|
1754
|
+
:applied_guardrail_details)
|
|
1682
1755
|
SENSITIVE = []
|
|
1683
1756
|
include Aws::Structure
|
|
1684
1757
|
end
|
|
@@ -3766,6 +3839,84 @@ module Aws::BedrockRuntime
|
|
|
3766
3839
|
include Aws::Structure
|
|
3767
3840
|
end
|
|
3768
3841
|
|
|
3842
|
+
# A search result block that enables natural citations with proper
|
|
3843
|
+
# source attribution for retrieved content.
|
|
3844
|
+
#
|
|
3845
|
+
# <note markdown="1"> This field is only supported by Anthropic Claude Opus 4.1, Opus 4,
|
|
3846
|
+
# Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.
|
|
3847
|
+
#
|
|
3848
|
+
# </note>
|
|
3849
|
+
#
|
|
3850
|
+
# @!attribute [rw] source
|
|
3851
|
+
# The source URL or identifier for the content.
|
|
3852
|
+
# @return [String]
|
|
3853
|
+
#
|
|
3854
|
+
# @!attribute [rw] title
|
|
3855
|
+
# A descriptive title for the search result.
|
|
3856
|
+
# @return [String]
|
|
3857
|
+
#
|
|
3858
|
+
# @!attribute [rw] content
|
|
3859
|
+
# An array of search result content block.
|
|
3860
|
+
# @return [Array<Types::SearchResultContentBlock>]
|
|
3861
|
+
#
|
|
3862
|
+
# @!attribute [rw] citations
|
|
3863
|
+
# Configuration setting for citations
|
|
3864
|
+
# @return [Types::CitationsConfig]
|
|
3865
|
+
#
|
|
3866
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultBlock AWS API Documentation
|
|
3867
|
+
#
|
|
3868
|
+
class SearchResultBlock < Struct.new(
|
|
3869
|
+
:source,
|
|
3870
|
+
:title,
|
|
3871
|
+
:content,
|
|
3872
|
+
:citations)
|
|
3873
|
+
SENSITIVE = []
|
|
3874
|
+
include Aws::Structure
|
|
3875
|
+
end
|
|
3876
|
+
|
|
3877
|
+
# A block within a search result that contains the content.
|
|
3878
|
+
#
|
|
3879
|
+
# @!attribute [rw] text
|
|
3880
|
+
# The actual text content
|
|
3881
|
+
# @return [String]
|
|
3882
|
+
#
|
|
3883
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultContentBlock AWS API Documentation
|
|
3884
|
+
#
|
|
3885
|
+
class SearchResultContentBlock < Struct.new(
|
|
3886
|
+
:text)
|
|
3887
|
+
SENSITIVE = []
|
|
3888
|
+
include Aws::Structure
|
|
3889
|
+
end
|
|
3890
|
+
|
|
3891
|
+
# Specifies a search result location within the content array, providing
|
|
3892
|
+
# positioning information for cited content using search result index
|
|
3893
|
+
# and block positions.
|
|
3894
|
+
#
|
|
3895
|
+
# @!attribute [rw] search_result_index
|
|
3896
|
+
# The index of the search result content block where the cited content
|
|
3897
|
+
# is found.
|
|
3898
|
+
# @return [Integer]
|
|
3899
|
+
#
|
|
3900
|
+
# @!attribute [rw] start
|
|
3901
|
+
# The starting position in the content array where the cited content
|
|
3902
|
+
# begins.
|
|
3903
|
+
# @return [Integer]
|
|
3904
|
+
#
|
|
3905
|
+
# @!attribute [rw] end
|
|
3906
|
+
# The ending position in the content array where the cited content
|
|
3907
|
+
# ends.
|
|
3908
|
+
# @return [Integer]
|
|
3909
|
+
#
|
|
3910
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultLocation AWS API Documentation
|
|
3911
|
+
#
|
|
3912
|
+
class SearchResultLocation < Struct.new(
|
|
3913
|
+
:search_result_index,
|
|
3914
|
+
:start,
|
|
3915
|
+
:end)
|
|
3916
|
+
SENSITIVE = []
|
|
3917
|
+
include Aws::Structure
|
|
3918
|
+
end
|
|
3919
|
+
|
|
3769
3920
|
# Your request exceeds the service quota for your account. You can view
|
|
3770
3921
|
# your quotas at [Viewing service quotas][1]. You can resubmit your
|
|
3771
3922
|
# request later.
|
|
@@ -4292,6 +4443,10 @@ module Aws::BedrockRuntime
|
|
|
4292
4443
|
# A tool result that is video.
|
|
4293
4444
|
# @return [Types::VideoBlock]
|
|
4294
4445
|
#
|
|
4446
|
+
# @!attribute [rw] search_result
|
|
4447
|
+
# A tool result that is a search result.
|
|
4448
|
+
# @return [Types::SearchResultBlock]
|
|
4449
|
+
#
|
|
4295
4450
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolResultContentBlock AWS API Documentation
|
|
4296
4451
|
#
|
|
4297
4452
|
class ToolResultContentBlock < Struct.new(
|
|
@@ -4300,6 +4455,7 @@ module Aws::BedrockRuntime
|
|
|
4300
4455
|
:image,
|
|
4301
4456
|
:document,
|
|
4302
4457
|
:video,
|
|
4458
|
+
:search_result,
|
|
4303
4459
|
:unknown)
|
|
4304
4460
|
SENSITIVE = []
|
|
4305
4461
|
include Aws::Structure
|
|
@@ -4310,6 +4466,7 @@ module Aws::BedrockRuntime
|
|
|
4310
4466
|
class Image < ToolResultContentBlock; end
|
|
4311
4467
|
class Document < ToolResultContentBlock; end
|
|
4312
4468
|
class Video < ToolResultContentBlock; end
|
|
4469
|
+
class SearchResult < ToolResultContentBlock; end
|
|
4313
4470
|
class Unknown < ToolResultContentBlock; end
|
|
4314
4471
|
end
|
|
4315
4472
|
|
|
@@ -27,6 +27,22 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:bedrockruntime)
|
|
|
27
27
|
#
|
|
28
28
|
# See {Client} for more information.
|
|
29
29
|
#
|
|
30
|
+
# # Async Client
|
|
31
|
+
#
|
|
32
|
+
# The {AsyncClient} class provides one asynchronous method for each API operation.
|
|
33
|
+
# Operation methods each accept a hash of request parameters and return an async
|
|
34
|
+
# response. For streaming operations, you can signal input events and register
|
|
35
|
+
# output event callbacks before waiting on the response.
|
|
36
|
+
#
|
|
37
|
+
# bedrock_runtime = Aws::BedrockRuntime::AsyncClient.new
|
|
38
|
+
# resp = bedrock_runtime.apply_guardrail(
|
|
39
|
+
# # params and input stream
|
|
40
|
+
# ) do |output_stream|
|
|
41
|
+
# # register callbacks for events
|
|
42
|
+
# end
|
|
43
|
+
#
|
|
44
|
+
# See {AsyncClient} for more information.
|
|
45
|
+
#
|
|
30
46
|
# # Errors
|
|
31
47
|
#
|
|
32
48
|
# Errors returned from Amazon Bedrock Runtime are defined in the
|
|
@@ -57,7 +73,7 @@ module Aws::BedrockRuntime
|
|
|
57
73
|
autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
|
|
58
74
|
autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
|
|
59
75
|
|
|
60
|
-
GEM_VERSION = '1.
|
|
76
|
+
GEM_VERSION = '1.66.0'
|
|
61
77
|
|
|
62
78
|
end
|
|
63
79
|
|
data/sig/client.rbs
CHANGED
|
@@ -228,6 +228,18 @@ module Aws
|
|
|
228
228
|
bucket_owner: ::String?
|
|
229
229
|
}?
|
|
230
230
|
}
|
|
231
|
+
}?,
|
|
232
|
+
search_result: {
|
|
233
|
+
source: ::String,
|
|
234
|
+
title: ::String,
|
|
235
|
+
content: Array[
|
|
236
|
+
{
|
|
237
|
+
text: ::String
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
citations: {
|
|
241
|
+
enabled: bool
|
|
242
|
+
}?
|
|
231
243
|
}?
|
|
232
244
|
},
|
|
233
245
|
],
|
|
@@ -265,6 +277,7 @@ module Aws
|
|
|
265
277
|
citations: Array[
|
|
266
278
|
{
|
|
267
279
|
title: ::String?,
|
|
280
|
+
source: ::String?,
|
|
268
281
|
source_content: Array[
|
|
269
282
|
{
|
|
270
283
|
text: ::String?
|
|
@@ -289,10 +302,27 @@ module Aws
|
|
|
289
302
|
document_index: ::Integer?,
|
|
290
303
|
start: ::Integer?,
|
|
291
304
|
end: ::Integer?
|
|
305
|
+
}?,
|
|
306
|
+
search_result_location: {
|
|
307
|
+
search_result_index: ::Integer?,
|
|
308
|
+
start: ::Integer?,
|
|
309
|
+
end: ::Integer?
|
|
292
310
|
}?
|
|
293
311
|
}?
|
|
294
312
|
},
|
|
295
313
|
]?
|
|
314
|
+
}?,
|
|
315
|
+
search_result: {
|
|
316
|
+
source: ::String,
|
|
317
|
+
title: ::String,
|
|
318
|
+
content: Array[
|
|
319
|
+
{
|
|
320
|
+
text: ::String
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
citations: {
|
|
324
|
+
enabled: bool
|
|
325
|
+
}?
|
|
296
326
|
}?
|
|
297
327
|
},
|
|
298
328
|
]
|
|
@@ -354,8 +384,8 @@ module Aws
|
|
|
354
384
|
}?
|
|
355
385
|
},
|
|
356
386
|
?guardrail_config: {
|
|
357
|
-
guardrail_identifier: ::String
|
|
358
|
-
guardrail_version: ::String
|
|
387
|
+
guardrail_identifier: ::String?,
|
|
388
|
+
guardrail_version: ::String?,
|
|
359
389
|
trace: ("enabled" | "disabled" | "enabled_full")?
|
|
360
390
|
},
|
|
361
391
|
?additional_model_request_fields: {
|
|
@@ -482,6 +512,18 @@ module Aws
|
|
|
482
512
|
bucket_owner: ::String?
|
|
483
513
|
}?
|
|
484
514
|
}
|
|
515
|
+
}?,
|
|
516
|
+
search_result: {
|
|
517
|
+
source: ::String,
|
|
518
|
+
title: ::String,
|
|
519
|
+
content: Array[
|
|
520
|
+
{
|
|
521
|
+
text: ::String
|
|
522
|
+
},
|
|
523
|
+
],
|
|
524
|
+
citations: {
|
|
525
|
+
enabled: bool
|
|
526
|
+
}?
|
|
485
527
|
}?
|
|
486
528
|
},
|
|
487
529
|
],
|
|
@@ -519,6 +561,7 @@ module Aws
|
|
|
519
561
|
citations: Array[
|
|
520
562
|
{
|
|
521
563
|
title: ::String?,
|
|
564
|
+
source: ::String?,
|
|
522
565
|
source_content: Array[
|
|
523
566
|
{
|
|
524
567
|
text: ::String?
|
|
@@ -543,10 +586,27 @@ module Aws
|
|
|
543
586
|
document_index: ::Integer?,
|
|
544
587
|
start: ::Integer?,
|
|
545
588
|
end: ::Integer?
|
|
589
|
+
}?,
|
|
590
|
+
search_result_location: {
|
|
591
|
+
search_result_index: ::Integer?,
|
|
592
|
+
start: ::Integer?,
|
|
593
|
+
end: ::Integer?
|
|
546
594
|
}?
|
|
547
595
|
}?
|
|
548
596
|
},
|
|
549
597
|
]?
|
|
598
|
+
}?,
|
|
599
|
+
search_result: {
|
|
600
|
+
source: ::String,
|
|
601
|
+
title: ::String,
|
|
602
|
+
content: Array[
|
|
603
|
+
{
|
|
604
|
+
text: ::String
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
citations: {
|
|
608
|
+
enabled: bool
|
|
609
|
+
}?
|
|
550
610
|
}?
|
|
551
611
|
},
|
|
552
612
|
]
|
|
@@ -608,8 +668,8 @@ module Aws
|
|
|
608
668
|
}?
|
|
609
669
|
},
|
|
610
670
|
?guardrail_config: {
|
|
611
|
-
guardrail_identifier: ::String
|
|
612
|
-
guardrail_version: ::String
|
|
671
|
+
guardrail_identifier: ::String?,
|
|
672
|
+
guardrail_version: ::String?,
|
|
613
673
|
trace: ("enabled" | "disabled" | "enabled_full")?,
|
|
614
674
|
stream_processing_mode: ("sync" | "async")?
|
|
615
675
|
},
|
|
@@ -742,6 +802,18 @@ module Aws
|
|
|
742
802
|
bucket_owner: ::String?
|
|
743
803
|
}?
|
|
744
804
|
}
|
|
805
|
+
}?,
|
|
806
|
+
search_result: {
|
|
807
|
+
source: ::String,
|
|
808
|
+
title: ::String,
|
|
809
|
+
content: Array[
|
|
810
|
+
{
|
|
811
|
+
text: ::String
|
|
812
|
+
},
|
|
813
|
+
],
|
|
814
|
+
citations: {
|
|
815
|
+
enabled: bool
|
|
816
|
+
}?
|
|
745
817
|
}?
|
|
746
818
|
},
|
|
747
819
|
],
|
|
@@ -779,6 +851,7 @@ module Aws
|
|
|
779
851
|
citations: Array[
|
|
780
852
|
{
|
|
781
853
|
title: ::String?,
|
|
854
|
+
source: ::String?,
|
|
782
855
|
source_content: Array[
|
|
783
856
|
{
|
|
784
857
|
text: ::String?
|
|
@@ -803,10 +876,27 @@ module Aws
|
|
|
803
876
|
document_index: ::Integer?,
|
|
804
877
|
start: ::Integer?,
|
|
805
878
|
end: ::Integer?
|
|
879
|
+
}?,
|
|
880
|
+
search_result_location: {
|
|
881
|
+
search_result_index: ::Integer?,
|
|
882
|
+
start: ::Integer?,
|
|
883
|
+
end: ::Integer?
|
|
806
884
|
}?
|
|
807
885
|
}?
|
|
808
886
|
},
|
|
809
887
|
]?
|
|
888
|
+
}?,
|
|
889
|
+
search_result: {
|
|
890
|
+
source: ::String,
|
|
891
|
+
title: ::String,
|
|
892
|
+
content: Array[
|
|
893
|
+
{
|
|
894
|
+
text: ::String
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
citations: {
|
|
898
|
+
enabled: bool
|
|
899
|
+
}?
|
|
810
900
|
}?
|
|
811
901
|
},
|
|
812
902
|
]
|
data/sig/types.rbs
CHANGED
|
@@ -16,6 +16,15 @@ module Aws::BedrockRuntime
|
|
|
16
16
|
class AnyToolChoice < Aws::EmptyStructure
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
class AppliedGuardrailDetails
|
|
20
|
+
attr_accessor guardrail_id: ::String
|
|
21
|
+
attr_accessor guardrail_version: ::String
|
|
22
|
+
attr_accessor guardrail_arn: ::String
|
|
23
|
+
attr_accessor guardrail_origin: ::Array[("REQUEST" | "ACCOUNT_ENFORCED" | "ORGANIZATION_ENFORCED")]
|
|
24
|
+
attr_accessor guardrail_ownership: ("SELF" | "CROSS_ACCOUNT")
|
|
25
|
+
SENSITIVE: []
|
|
26
|
+
end
|
|
27
|
+
|
|
19
28
|
class ApplyGuardrailRequest
|
|
20
29
|
attr_accessor guardrail_identifier: ::String
|
|
21
30
|
attr_accessor guardrail_version: ::String
|
|
@@ -88,6 +97,7 @@ module Aws::BedrockRuntime
|
|
|
88
97
|
|
|
89
98
|
class Citation
|
|
90
99
|
attr_accessor title: ::String
|
|
100
|
+
attr_accessor source: ::String
|
|
91
101
|
attr_accessor source_content: ::Array[Types::CitationSourceContent]
|
|
92
102
|
attr_accessor location: Types::CitationLocation
|
|
93
103
|
SENSITIVE: []
|
|
@@ -109,6 +119,7 @@ module Aws::BedrockRuntime
|
|
|
109
119
|
attr_accessor document_char: Types::DocumentCharLocation
|
|
110
120
|
attr_accessor document_page: Types::DocumentPageLocation
|
|
111
121
|
attr_accessor document_chunk: Types::DocumentChunkLocation
|
|
122
|
+
attr_accessor search_result_location: Types::SearchResultLocation
|
|
112
123
|
attr_accessor unknown: untyped
|
|
113
124
|
SENSITIVE: []
|
|
114
125
|
|
|
@@ -120,6 +131,8 @@ module Aws::BedrockRuntime
|
|
|
120
131
|
end
|
|
121
132
|
class DocumentChunk < CitationLocation
|
|
122
133
|
end
|
|
134
|
+
class SearchResultLocation < CitationLocation
|
|
135
|
+
end
|
|
123
136
|
class Unknown < CitationLocation
|
|
124
137
|
end
|
|
125
138
|
end
|
|
@@ -153,6 +166,7 @@ module Aws::BedrockRuntime
|
|
|
153
166
|
|
|
154
167
|
class CitationsDelta
|
|
155
168
|
attr_accessor title: ::String
|
|
169
|
+
attr_accessor source: ::String
|
|
156
170
|
attr_accessor source_content: ::Array[Types::CitationSourceContentDelta]
|
|
157
171
|
attr_accessor location: Types::CitationLocation
|
|
158
172
|
SENSITIVE: []
|
|
@@ -174,6 +188,7 @@ module Aws::BedrockRuntime
|
|
|
174
188
|
attr_accessor cache_point: Types::CachePointBlock
|
|
175
189
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
|
176
190
|
attr_accessor citations_content: Types::CitationsContentBlock
|
|
191
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
177
192
|
attr_accessor unknown: untyped
|
|
178
193
|
SENSITIVE: [:reasoning_content]
|
|
179
194
|
|
|
@@ -197,6 +212,8 @@ module Aws::BedrockRuntime
|
|
|
197
212
|
end
|
|
198
213
|
class CitationsContent < ContentBlock
|
|
199
214
|
end
|
|
215
|
+
class SearchResult < ContentBlock
|
|
216
|
+
end
|
|
200
217
|
class Unknown < ContentBlock
|
|
201
218
|
end
|
|
202
219
|
end
|
|
@@ -470,6 +487,7 @@ module Aws::BedrockRuntime
|
|
|
470
487
|
attr_accessor contextual_grounding_policy: Types::GuardrailContextualGroundingPolicyAssessment
|
|
471
488
|
attr_accessor automated_reasoning_policy: Types::GuardrailAutomatedReasoningPolicyAssessment
|
|
472
489
|
attr_accessor invocation_metrics: Types::GuardrailInvocationMetrics
|
|
490
|
+
attr_accessor applied_guardrail_details: Types::AppliedGuardrailDetails
|
|
473
491
|
SENSITIVE: []
|
|
474
492
|
end
|
|
475
493
|
|
|
@@ -1046,6 +1064,26 @@ module Aws::BedrockRuntime
|
|
|
1046
1064
|
SENSITIVE: []
|
|
1047
1065
|
end
|
|
1048
1066
|
|
|
1067
|
+
class SearchResultBlock
|
|
1068
|
+
attr_accessor source: ::String
|
|
1069
|
+
attr_accessor title: ::String
|
|
1070
|
+
attr_accessor content: ::Array[Types::SearchResultContentBlock]
|
|
1071
|
+
attr_accessor citations: Types::CitationsConfig
|
|
1072
|
+
SENSITIVE: []
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
class SearchResultContentBlock
|
|
1076
|
+
attr_accessor text: ::String
|
|
1077
|
+
SENSITIVE: []
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
class SearchResultLocation
|
|
1081
|
+
attr_accessor search_result_index: ::Integer
|
|
1082
|
+
attr_accessor start: ::Integer
|
|
1083
|
+
attr_accessor end: ::Integer
|
|
1084
|
+
SENSITIVE: []
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1049
1087
|
class ServiceQuotaExceededException
|
|
1050
1088
|
attr_accessor message: ::String
|
|
1051
1089
|
SENSITIVE: []
|
|
@@ -1207,6 +1245,7 @@ module Aws::BedrockRuntime
|
|
|
1207
1245
|
attr_accessor image: Types::ImageBlock
|
|
1208
1246
|
attr_accessor document: Types::DocumentBlock
|
|
1209
1247
|
attr_accessor video: Types::VideoBlock
|
|
1248
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
1210
1249
|
attr_accessor unknown: untyped
|
|
1211
1250
|
SENSITIVE: []
|
|
1212
1251
|
|
|
@@ -1220,6 +1259,8 @@ module Aws::BedrockRuntime
|
|
|
1220
1259
|
end
|
|
1221
1260
|
class Video < ToolResultContentBlock
|
|
1222
1261
|
end
|
|
1262
|
+
class SearchResult < ToolResultContentBlock
|
|
1263
|
+
end
|
|
1223
1264
|
class Unknown < ToolResultContentBlock
|
|
1224
1265
|
end
|
|
1225
1266
|
end
|
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.66.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.239.1
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.239.1
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|