aws-sdk-bedrockruntime 1.64.0 → 1.65.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +1 -1
- data/lib/aws-sdk-bedrockruntime/client.rb +109 -1
- data/lib/aws-sdk-bedrockruntime/client_api.rb +31 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +110 -0
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +90 -0
- data/sig/types.rbs +31 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d4560a426f4480cf91ac31c5745217e8e56b7e5ec53aae068754972eec3a114
|
|
4
|
+
data.tar.gz: 2eaff731137901efa24c5d4183166fc4367cad2e2432d5353c74afba430ea513
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3451efa41ab234c99efe1756de3fddf70d471605878f69100b61cf98a6a8e5f1413b90f5f4d06df8ad0182535c3194c2134cc183224846353ad9db7698a18b2f
|
|
7
|
+
data.tar.gz: 158a8fef12824914ac57ed8bcc34cb53a60bebfb7e256fb56089d78c753bfb55cd9ceee221b328c0d262517597f5c0a9955574a48a34e6219ea04cab97b2dce2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.65.0
|
|
@@ -1035,6 +1035,18 @@ module Aws::BedrockRuntime
|
|
|
1035
1035
|
# },
|
|
1036
1036
|
# },
|
|
1037
1037
|
# },
|
|
1038
|
+
# search_result: {
|
|
1039
|
+
# source: "String", # required
|
|
1040
|
+
# title: "String", # required
|
|
1041
|
+
# content: [ # required
|
|
1042
|
+
# {
|
|
1043
|
+
# text: "String", # required
|
|
1044
|
+
# },
|
|
1045
|
+
# ],
|
|
1046
|
+
# citations: {
|
|
1047
|
+
# enabled: false, # required
|
|
1048
|
+
# },
|
|
1049
|
+
# },
|
|
1038
1050
|
# },
|
|
1039
1051
|
# ],
|
|
1040
1052
|
# status: "success", # accepts success, error
|
|
@@ -1071,6 +1083,7 @@ module Aws::BedrockRuntime
|
|
|
1071
1083
|
# citations: [
|
|
1072
1084
|
# {
|
|
1073
1085
|
# title: "String",
|
|
1086
|
+
# source: "String",
|
|
1074
1087
|
# source_content: [
|
|
1075
1088
|
# {
|
|
1076
1089
|
# text: "String",
|
|
@@ -1096,10 +1109,27 @@ module Aws::BedrockRuntime
|
|
|
1096
1109
|
# start: 1,
|
|
1097
1110
|
# end: 1,
|
|
1098
1111
|
# },
|
|
1112
|
+
# search_result_location: {
|
|
1113
|
+
# search_result_index: 1,
|
|
1114
|
+
# start: 1,
|
|
1115
|
+
# end: 1,
|
|
1116
|
+
# },
|
|
1099
1117
|
# },
|
|
1100
1118
|
# },
|
|
1101
1119
|
# ],
|
|
1102
1120
|
# },
|
|
1121
|
+
# search_result: {
|
|
1122
|
+
# source: "String", # required
|
|
1123
|
+
# title: "String", # required
|
|
1124
|
+
# content: [ # required
|
|
1125
|
+
# {
|
|
1126
|
+
# text: "String", # required
|
|
1127
|
+
# },
|
|
1128
|
+
# ],
|
|
1129
|
+
# citations: {
|
|
1130
|
+
# enabled: false, # required
|
|
1131
|
+
# },
|
|
1132
|
+
# },
|
|
1103
1133
|
# },
|
|
1104
1134
|
# ],
|
|
1105
1135
|
# },
|
|
@@ -1230,6 +1260,11 @@ module Aws::BedrockRuntime
|
|
|
1230
1260
|
# resp.output.message.content[0].tool_result.content[0].video.source.bytes #=> String
|
|
1231
1261
|
# resp.output.message.content[0].tool_result.content[0].video.source.s3_location.uri #=> String
|
|
1232
1262
|
# resp.output.message.content[0].tool_result.content[0].video.source.s3_location.bucket_owner #=> String
|
|
1263
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.source #=> String
|
|
1264
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.title #=> String
|
|
1265
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.content #=> Array
|
|
1266
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.content[0].text #=> String
|
|
1267
|
+
# resp.output.message.content[0].tool_result.content[0].search_result.citations.enabled #=> Boolean
|
|
1233
1268
|
# resp.output.message.content[0].tool_result.status #=> String, one of "success", "error"
|
|
1234
1269
|
# resp.output.message.content[0].tool_result.type #=> String
|
|
1235
1270
|
# resp.output.message.content[0].guard_content.text.text #=> String
|
|
@@ -1245,6 +1280,7 @@ module Aws::BedrockRuntime
|
|
|
1245
1280
|
# resp.output.message.content[0].citations_content.content[0].text #=> String
|
|
1246
1281
|
# resp.output.message.content[0].citations_content.citations #=> Array
|
|
1247
1282
|
# resp.output.message.content[0].citations_content.citations[0].title #=> String
|
|
1283
|
+
# resp.output.message.content[0].citations_content.citations[0].source #=> String
|
|
1248
1284
|
# resp.output.message.content[0].citations_content.citations[0].source_content #=> Array
|
|
1249
1285
|
# resp.output.message.content[0].citations_content.citations[0].source_content[0].text #=> String
|
|
1250
1286
|
# resp.output.message.content[0].citations_content.citations[0].location.web.url #=> String
|
|
@@ -1258,6 +1294,14 @@ module Aws::BedrockRuntime
|
|
|
1258
1294
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.document_index #=> Integer
|
|
1259
1295
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.start #=> Integer
|
|
1260
1296
|
# resp.output.message.content[0].citations_content.citations[0].location.document_chunk.end #=> Integer
|
|
1297
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.search_result_index #=> Integer
|
|
1298
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.start #=> Integer
|
|
1299
|
+
# resp.output.message.content[0].citations_content.citations[0].location.search_result_location.end #=> Integer
|
|
1300
|
+
# resp.output.message.content[0].search_result.source #=> String
|
|
1301
|
+
# resp.output.message.content[0].search_result.title #=> String
|
|
1302
|
+
# resp.output.message.content[0].search_result.content #=> Array
|
|
1303
|
+
# resp.output.message.content[0].search_result.content[0].text #=> String
|
|
1304
|
+
# resp.output.message.content[0].search_result.citations.enabled #=> Boolean
|
|
1261
1305
|
# resp.stop_reason #=> String, one of "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "model_context_window_exceeded"
|
|
1262
1306
|
# resp.usage.input_tokens #=> Integer
|
|
1263
1307
|
# resp.usage.output_tokens #=> Integer
|
|
@@ -2078,6 +2122,18 @@ module Aws::BedrockRuntime
|
|
|
2078
2122
|
# },
|
|
2079
2123
|
# },
|
|
2080
2124
|
# },
|
|
2125
|
+
# search_result: {
|
|
2126
|
+
# source: "String", # required
|
|
2127
|
+
# title: "String", # required
|
|
2128
|
+
# content: [ # required
|
|
2129
|
+
# {
|
|
2130
|
+
# text: "String", # required
|
|
2131
|
+
# },
|
|
2132
|
+
# ],
|
|
2133
|
+
# citations: {
|
|
2134
|
+
# enabled: false, # required
|
|
2135
|
+
# },
|
|
2136
|
+
# },
|
|
2081
2137
|
# },
|
|
2082
2138
|
# ],
|
|
2083
2139
|
# status: "success", # accepts success, error
|
|
@@ -2114,6 +2170,7 @@ module Aws::BedrockRuntime
|
|
|
2114
2170
|
# citations: [
|
|
2115
2171
|
# {
|
|
2116
2172
|
# title: "String",
|
|
2173
|
+
# source: "String",
|
|
2117
2174
|
# source_content: [
|
|
2118
2175
|
# {
|
|
2119
2176
|
# text: "String",
|
|
@@ -2139,10 +2196,27 @@ module Aws::BedrockRuntime
|
|
|
2139
2196
|
# start: 1,
|
|
2140
2197
|
# end: 1,
|
|
2141
2198
|
# },
|
|
2199
|
+
# search_result_location: {
|
|
2200
|
+
# search_result_index: 1,
|
|
2201
|
+
# start: 1,
|
|
2202
|
+
# end: 1,
|
|
2203
|
+
# },
|
|
2142
2204
|
# },
|
|
2143
2205
|
# },
|
|
2144
2206
|
# ],
|
|
2145
2207
|
# },
|
|
2208
|
+
# search_result: {
|
|
2209
|
+
# source: "String", # required
|
|
2210
|
+
# title: "String", # required
|
|
2211
|
+
# content: [ # required
|
|
2212
|
+
# {
|
|
2213
|
+
# text: "String", # required
|
|
2214
|
+
# },
|
|
2215
|
+
# ],
|
|
2216
|
+
# citations: {
|
|
2217
|
+
# enabled: false, # required
|
|
2218
|
+
# },
|
|
2219
|
+
# },
|
|
2146
2220
|
# },
|
|
2147
2221
|
# ],
|
|
2148
2222
|
# },
|
|
@@ -2254,6 +2328,7 @@ module Aws::BedrockRuntime
|
|
|
2254
2328
|
# event.delta.reasoning_content.redacted_content #=> String
|
|
2255
2329
|
# event.delta.reasoning_content.signature #=> String
|
|
2256
2330
|
# event.delta.citation.title #=> String
|
|
2331
|
+
# event.delta.citation.source #=> String
|
|
2257
2332
|
# event.delta.citation.source_content #=> Array
|
|
2258
2333
|
# event.delta.citation.source_content[0].text #=> String
|
|
2259
2334
|
# event.delta.citation.location.web.url #=> String
|
|
@@ -2267,6 +2342,9 @@ module Aws::BedrockRuntime
|
|
|
2267
2342
|
# event.delta.citation.location.document_chunk.document_index #=> Integer
|
|
2268
2343
|
# event.delta.citation.location.document_chunk.start #=> Integer
|
|
2269
2344
|
# event.delta.citation.location.document_chunk.end #=> Integer
|
|
2345
|
+
# event.delta.citation.location.search_result_location.search_result_index #=> Integer
|
|
2346
|
+
# event.delta.citation.location.search_result_location.start #=> Integer
|
|
2347
|
+
# event.delta.citation.location.search_result_location.end #=> Integer
|
|
2270
2348
|
# event.content_block_index #=> Integer
|
|
2271
2349
|
#
|
|
2272
2350
|
# # For :content_block_stop event available at #on_content_block_stop_event callback and response eventstream enumerator:
|
|
@@ -2823,6 +2901,18 @@ module Aws::BedrockRuntime
|
|
|
2823
2901
|
# },
|
|
2824
2902
|
# },
|
|
2825
2903
|
# },
|
|
2904
|
+
# search_result: {
|
|
2905
|
+
# source: "String", # required
|
|
2906
|
+
# title: "String", # required
|
|
2907
|
+
# content: [ # required
|
|
2908
|
+
# {
|
|
2909
|
+
# text: "String", # required
|
|
2910
|
+
# },
|
|
2911
|
+
# ],
|
|
2912
|
+
# citations: {
|
|
2913
|
+
# enabled: false, # required
|
|
2914
|
+
# },
|
|
2915
|
+
# },
|
|
2826
2916
|
# },
|
|
2827
2917
|
# ],
|
|
2828
2918
|
# status: "success", # accepts success, error
|
|
@@ -2859,6 +2949,7 @@ module Aws::BedrockRuntime
|
|
|
2859
2949
|
# citations: [
|
|
2860
2950
|
# {
|
|
2861
2951
|
# title: "String",
|
|
2952
|
+
# source: "String",
|
|
2862
2953
|
# source_content: [
|
|
2863
2954
|
# {
|
|
2864
2955
|
# text: "String",
|
|
@@ -2884,10 +2975,27 @@ module Aws::BedrockRuntime
|
|
|
2884
2975
|
# start: 1,
|
|
2885
2976
|
# end: 1,
|
|
2886
2977
|
# },
|
|
2978
|
+
# search_result_location: {
|
|
2979
|
+
# search_result_index: 1,
|
|
2980
|
+
# start: 1,
|
|
2981
|
+
# end: 1,
|
|
2982
|
+
# },
|
|
2887
2983
|
# },
|
|
2888
2984
|
# },
|
|
2889
2985
|
# ],
|
|
2890
2986
|
# },
|
|
2987
|
+
# search_result: {
|
|
2988
|
+
# source: "String", # required
|
|
2989
|
+
# title: "String", # required
|
|
2990
|
+
# content: [ # required
|
|
2991
|
+
# {
|
|
2992
|
+
# text: "String", # required
|
|
2993
|
+
# },
|
|
2994
|
+
# ],
|
|
2995
|
+
# citations: {
|
|
2996
|
+
# enabled: false, # required
|
|
2997
|
+
# },
|
|
2998
|
+
# },
|
|
2891
2999
|
# },
|
|
2892
3000
|
# ],
|
|
2893
3001
|
# },
|
|
@@ -3670,7 +3778,7 @@ module Aws::BedrockRuntime
|
|
|
3670
3778
|
tracer: tracer
|
|
3671
3779
|
)
|
|
3672
3780
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
|
3673
|
-
context[:gem_version] = '1.
|
|
3781
|
+
context[:gem_version] = '1.65.0'
|
|
3674
3782
|
Seahorse::Client::Request.new(handlers, context)
|
|
3675
3783
|
end
|
|
3676
3784
|
|
|
@@ -273,6 +273,13 @@ module Aws::BedrockRuntime
|
|
|
273
273
|
ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
|
|
274
274
|
S3Location = Shapes::StructureShape.new(name: 'S3Location')
|
|
275
275
|
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
|
276
|
+
SearchResultBlock = Shapes::StructureShape.new(name: 'SearchResultBlock')
|
|
277
|
+
SearchResultContentBlock = Shapes::StructureShape.new(name: 'SearchResultContentBlock')
|
|
278
|
+
SearchResultContentBlocks = Shapes::ListShape.new(name: 'SearchResultContentBlocks')
|
|
279
|
+
SearchResultLocation = Shapes::StructureShape.new(name: 'SearchResultLocation')
|
|
280
|
+
SearchResultLocationEndInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationEndInteger')
|
|
281
|
+
SearchResultLocationSearchResultIndexInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationSearchResultIndexInteger')
|
|
282
|
+
SearchResultLocationStartInteger = Shapes::IntegerShape.new(name: 'SearchResultLocationStartInteger')
|
|
276
283
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
277
284
|
ServiceTier = Shapes::StructureShape.new(name: 'ServiceTier')
|
|
278
285
|
ServiceTierType = Shapes::StringShape.new(name: 'ServiceTierType')
|
|
@@ -385,6 +392,7 @@ module Aws::BedrockRuntime
|
|
|
385
392
|
CachePointBlock.struct_class = Types::CachePointBlock
|
|
386
393
|
|
|
387
394
|
Citation.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
395
|
+
Citation.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
388
396
|
Citation.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentList, location_name: "sourceContent"))
|
|
389
397
|
Citation.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
390
398
|
Citation.struct_class = Types::Citation
|
|
@@ -401,11 +409,13 @@ module Aws::BedrockRuntime
|
|
|
401
409
|
CitationLocation.add_member(:document_char, Shapes::ShapeRef.new(shape: DocumentCharLocation, location_name: "documentChar"))
|
|
402
410
|
CitationLocation.add_member(:document_page, Shapes::ShapeRef.new(shape: DocumentPageLocation, location_name: "documentPage"))
|
|
403
411
|
CitationLocation.add_member(:document_chunk, Shapes::ShapeRef.new(shape: DocumentChunkLocation, location_name: "documentChunk"))
|
|
412
|
+
CitationLocation.add_member(:search_result_location, Shapes::ShapeRef.new(shape: SearchResultLocation, location_name: "searchResultLocation"))
|
|
404
413
|
CitationLocation.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
405
414
|
CitationLocation.add_member_subclass(:web, Types::CitationLocation::Web)
|
|
406
415
|
CitationLocation.add_member_subclass(:document_char, Types::CitationLocation::DocumentChar)
|
|
407
416
|
CitationLocation.add_member_subclass(:document_page, Types::CitationLocation::DocumentPage)
|
|
408
417
|
CitationLocation.add_member_subclass(:document_chunk, Types::CitationLocation::DocumentChunk)
|
|
418
|
+
CitationLocation.add_member_subclass(:search_result_location, Types::CitationLocation::SearchResultLocation)
|
|
409
419
|
CitationLocation.add_member_subclass(:unknown, Types::CitationLocation::Unknown)
|
|
410
420
|
CitationLocation.struct_class = Types::CitationLocation
|
|
411
421
|
|
|
@@ -432,6 +442,7 @@ module Aws::BedrockRuntime
|
|
|
432
442
|
CitationsContentBlock.struct_class = Types::CitationsContentBlock
|
|
433
443
|
|
|
434
444
|
CitationsDelta.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
445
|
+
CitationsDelta.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
|
|
435
446
|
CitationsDelta.add_member(:source_content, Shapes::ShapeRef.new(shape: CitationSourceContentListDelta, location_name: "sourceContent"))
|
|
436
447
|
CitationsDelta.add_member(:location, Shapes::ShapeRef.new(shape: CitationLocation, location_name: "location"))
|
|
437
448
|
CitationsDelta.struct_class = Types::CitationsDelta
|
|
@@ -449,6 +460,7 @@ module Aws::BedrockRuntime
|
|
|
449
460
|
ContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
|
450
461
|
ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
|
|
451
462
|
ContentBlock.add_member(:citations_content, Shapes::ShapeRef.new(shape: CitationsContentBlock, location_name: "citationsContent"))
|
|
463
|
+
ContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
452
464
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
453
465
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
|
454
466
|
ContentBlock.add_member_subclass(:image, Types::ContentBlock::Image)
|
|
@@ -460,6 +472,7 @@ module Aws::BedrockRuntime
|
|
|
460
472
|
ContentBlock.add_member_subclass(:cache_point, Types::ContentBlock::CachePoint)
|
|
461
473
|
ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
|
|
462
474
|
ContentBlock.add_member_subclass(:citations_content, Types::ContentBlock::CitationsContent)
|
|
475
|
+
ContentBlock.add_member_subclass(:search_result, Types::ContentBlock::SearchResult)
|
|
463
476
|
ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
|
|
464
477
|
ContentBlock.struct_class = Types::ContentBlock
|
|
465
478
|
|
|
@@ -1142,6 +1155,22 @@ module Aws::BedrockRuntime
|
|
|
1142
1155
|
S3Location.add_member(:bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "bucketOwner"))
|
|
1143
1156
|
S3Location.struct_class = Types::S3Location
|
|
1144
1157
|
|
|
1158
|
+
SearchResultBlock.add_member(:source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "source"))
|
|
1159
|
+
SearchResultBlock.add_member(:title, Shapes::ShapeRef.new(shape: String, required: true, location_name: "title"))
|
|
1160
|
+
SearchResultBlock.add_member(:content, Shapes::ShapeRef.new(shape: SearchResultContentBlocks, required: true, location_name: "content"))
|
|
1161
|
+
SearchResultBlock.add_member(:citations, Shapes::ShapeRef.new(shape: CitationsConfig, location_name: "citations"))
|
|
1162
|
+
SearchResultBlock.struct_class = Types::SearchResultBlock
|
|
1163
|
+
|
|
1164
|
+
SearchResultContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
|
|
1165
|
+
SearchResultContentBlock.struct_class = Types::SearchResultContentBlock
|
|
1166
|
+
|
|
1167
|
+
SearchResultContentBlocks.member = Shapes::ShapeRef.new(shape: SearchResultContentBlock)
|
|
1168
|
+
|
|
1169
|
+
SearchResultLocation.add_member(:search_result_index, Shapes::ShapeRef.new(shape: SearchResultLocationSearchResultIndexInteger, location_name: "searchResultIndex"))
|
|
1170
|
+
SearchResultLocation.add_member(:start, Shapes::ShapeRef.new(shape: SearchResultLocationStartInteger, location_name: "start"))
|
|
1171
|
+
SearchResultLocation.add_member(:end, Shapes::ShapeRef.new(shape: SearchResultLocationEndInteger, location_name: "end"))
|
|
1172
|
+
SearchResultLocation.struct_class = Types::SearchResultLocation
|
|
1173
|
+
|
|
1145
1174
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
1146
1175
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
1147
1176
|
|
|
@@ -1251,12 +1280,14 @@ module Aws::BedrockRuntime
|
|
|
1251
1280
|
ToolResultContentBlock.add_member(:image, Shapes::ShapeRef.new(shape: ImageBlock, location_name: "image"))
|
|
1252
1281
|
ToolResultContentBlock.add_member(:document, Shapes::ShapeRef.new(shape: DocumentBlock, location_name: "document"))
|
|
1253
1282
|
ToolResultContentBlock.add_member(:video, Shapes::ShapeRef.new(shape: VideoBlock, location_name: "video"))
|
|
1283
|
+
ToolResultContentBlock.add_member(:search_result, Shapes::ShapeRef.new(shape: SearchResultBlock, location_name: "searchResult"))
|
|
1254
1284
|
ToolResultContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1255
1285
|
ToolResultContentBlock.add_member_subclass(:json, Types::ToolResultContentBlock::Json)
|
|
1256
1286
|
ToolResultContentBlock.add_member_subclass(:text, Types::ToolResultContentBlock::Text)
|
|
1257
1287
|
ToolResultContentBlock.add_member_subclass(:image, Types::ToolResultContentBlock::Image)
|
|
1258
1288
|
ToolResultContentBlock.add_member_subclass(:document, Types::ToolResultContentBlock::Document)
|
|
1259
1289
|
ToolResultContentBlock.add_member_subclass(:video, Types::ToolResultContentBlock::Video)
|
|
1290
|
+
ToolResultContentBlock.add_member_subclass(:search_result, Types::ToolResultContentBlock::SearchResult)
|
|
1260
1291
|
ToolResultContentBlock.add_member_subclass(:unknown, Types::ToolResultContentBlock::Unknown)
|
|
1261
1292
|
ToolResultContentBlock.struct_class = Types::ToolResultContentBlock
|
|
1262
1293
|
|
|
@@ -292,6 +292,11 @@ module Aws::BedrockRuntime
|
|
|
292
292
|
# The title or identifier of the source document being cited.
|
|
293
293
|
# @return [String]
|
|
294
294
|
#
|
|
295
|
+
# @!attribute [rw] source
|
|
296
|
+
# The source from the original search result that provided the cited
|
|
297
|
+
# content.
|
|
298
|
+
# @return [String]
|
|
299
|
+
#
|
|
295
300
|
# @!attribute [rw] source_content
|
|
296
301
|
# The specific content from the source document that was referenced or
|
|
297
302
|
# cited in the generated response.
|
|
@@ -307,6 +312,7 @@ module Aws::BedrockRuntime
|
|
|
307
312
|
#
|
|
308
313
|
class Citation < Struct.new(
|
|
309
314
|
:title,
|
|
315
|
+
:source,
|
|
310
316
|
:source_content,
|
|
311
317
|
:location)
|
|
312
318
|
SENSITIVE = []
|
|
@@ -367,6 +373,12 @@ module Aws::BedrockRuntime
|
|
|
367
373
|
# logical chunks.
|
|
368
374
|
# @return [Types::DocumentChunkLocation]
|
|
369
375
|
#
|
|
376
|
+
# @!attribute [rw] search_result_location
|
|
377
|
+
# The search result location where the cited content is found,
|
|
378
|
+
# including the search result index and block positions within the
|
|
379
|
+
# content array.
|
|
380
|
+
# @return [Types::SearchResultLocation]
|
|
381
|
+
#
|
|
370
382
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationLocation AWS API Documentation
|
|
371
383
|
#
|
|
372
384
|
class CitationLocation < Struct.new(
|
|
@@ -374,6 +386,7 @@ module Aws::BedrockRuntime
|
|
|
374
386
|
:document_char,
|
|
375
387
|
:document_page,
|
|
376
388
|
:document_chunk,
|
|
389
|
+
:search_result_location,
|
|
377
390
|
:unknown)
|
|
378
391
|
SENSITIVE = []
|
|
379
392
|
include Aws::Structure
|
|
@@ -383,6 +396,7 @@ module Aws::BedrockRuntime
|
|
|
383
396
|
class DocumentChar < CitationLocation; end
|
|
384
397
|
class DocumentPage < CitationLocation; end
|
|
385
398
|
class DocumentChunk < CitationLocation; end
|
|
399
|
+
class SearchResultLocation < CitationLocation; end
|
|
386
400
|
class Unknown < CitationLocation; end
|
|
387
401
|
end
|
|
388
402
|
|
|
@@ -478,6 +492,11 @@ module Aws::BedrockRuntime
|
|
|
478
492
|
# The title or identifier of the source document being cited.
|
|
479
493
|
# @return [String]
|
|
480
494
|
#
|
|
495
|
+
# @!attribute [rw] source
|
|
496
|
+
# The source from the original search result that provided the cited
|
|
497
|
+
# content.
|
|
498
|
+
# @return [String]
|
|
499
|
+
#
|
|
481
500
|
# @!attribute [rw] source_content
|
|
482
501
|
# The specific content from the source document that was referenced or
|
|
483
502
|
# cited in the generated response.
|
|
@@ -494,6 +513,7 @@ module Aws::BedrockRuntime
|
|
|
494
513
|
#
|
|
495
514
|
class CitationsDelta < Struct.new(
|
|
496
515
|
:title,
|
|
516
|
+
:source,
|
|
497
517
|
:source_content,
|
|
498
518
|
:location)
|
|
499
519
|
SENSITIVE = []
|
|
@@ -578,6 +598,10 @@ module Aws::BedrockRuntime
|
|
|
578
598
|
# and source documents.
|
|
579
599
|
# @return [Types::CitationsContentBlock]
|
|
580
600
|
#
|
|
601
|
+
# @!attribute [rw] search_result
|
|
602
|
+
# Search result to include in the message.
|
|
603
|
+
# @return [Types::SearchResultBlock]
|
|
604
|
+
#
|
|
581
605
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlock AWS API Documentation
|
|
582
606
|
#
|
|
583
607
|
class ContentBlock < Struct.new(
|
|
@@ -591,6 +615,7 @@ module Aws::BedrockRuntime
|
|
|
591
615
|
:cache_point,
|
|
592
616
|
:reasoning_content,
|
|
593
617
|
:citations_content,
|
|
618
|
+
:search_result,
|
|
594
619
|
:unknown)
|
|
595
620
|
SENSITIVE = [:reasoning_content]
|
|
596
621
|
include Aws::Structure
|
|
@@ -606,6 +631,7 @@ module Aws::BedrockRuntime
|
|
|
606
631
|
class CachePoint < ContentBlock; end
|
|
607
632
|
class ReasoningContent < ContentBlock; end
|
|
608
633
|
class CitationsContent < ContentBlock; end
|
|
634
|
+
class SearchResult < ContentBlock; end
|
|
609
635
|
class Unknown < ContentBlock; end
|
|
610
636
|
end
|
|
611
637
|
|
|
@@ -3766,6 +3792,84 @@ module Aws::BedrockRuntime
|
|
|
3766
3792
|
include Aws::Structure
|
|
3767
3793
|
end
|
|
3768
3794
|
|
|
3795
|
+
# A search result block that enables natural citations with proper
|
|
3796
|
+
# source attribution for retrieved content.
|
|
3797
|
+
#
|
|
3798
|
+
# <note markdown="1"> This field is only supported by Anthropic Claude Opus 4.1, Opus 4,
|
|
3799
|
+
# Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.
|
|
3800
|
+
#
|
|
3801
|
+
# </note>
|
|
3802
|
+
#
|
|
3803
|
+
# @!attribute [rw] source
|
|
3804
|
+
# The source URL or identifier for the content.
|
|
3805
|
+
# @return [String]
|
|
3806
|
+
#
|
|
3807
|
+
# @!attribute [rw] title
|
|
3808
|
+
# A descriptive title for the search result.
|
|
3809
|
+
# @return [String]
|
|
3810
|
+
#
|
|
3811
|
+
# @!attribute [rw] content
|
|
3812
|
+
# An array of search result content block.
|
|
3813
|
+
# @return [Array<Types::SearchResultContentBlock>]
|
|
3814
|
+
#
|
|
3815
|
+
# @!attribute [rw] citations
|
|
3816
|
+
# Configuration setting for citations
|
|
3817
|
+
# @return [Types::CitationsConfig]
|
|
3818
|
+
#
|
|
3819
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultBlock AWS API Documentation
|
|
3820
|
+
#
|
|
3821
|
+
class SearchResultBlock < Struct.new(
|
|
3822
|
+
:source,
|
|
3823
|
+
:title,
|
|
3824
|
+
:content,
|
|
3825
|
+
:citations)
|
|
3826
|
+
SENSITIVE = []
|
|
3827
|
+
include Aws::Structure
|
|
3828
|
+
end
|
|
3829
|
+
|
|
3830
|
+
# A block within a search result that contains the content.
|
|
3831
|
+
#
|
|
3832
|
+
# @!attribute [rw] text
|
|
3833
|
+
# The actual text content
|
|
3834
|
+
# @return [String]
|
|
3835
|
+
#
|
|
3836
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultContentBlock AWS API Documentation
|
|
3837
|
+
#
|
|
3838
|
+
class SearchResultContentBlock < Struct.new(
|
|
3839
|
+
:text)
|
|
3840
|
+
SENSITIVE = []
|
|
3841
|
+
include Aws::Structure
|
|
3842
|
+
end
|
|
3843
|
+
|
|
3844
|
+
# Specifies a search result location within the content array, providing
|
|
3845
|
+
# positioning information for cited content using search result index
|
|
3846
|
+
# and block positions.
|
|
3847
|
+
#
|
|
3848
|
+
# @!attribute [rw] search_result_index
|
|
3849
|
+
# The index of the search result content block where the cited content
|
|
3850
|
+
# is found.
|
|
3851
|
+
# @return [Integer]
|
|
3852
|
+
#
|
|
3853
|
+
# @!attribute [rw] start
|
|
3854
|
+
# The starting position in the content array where the cited content
|
|
3855
|
+
# begins.
|
|
3856
|
+
# @return [Integer]
|
|
3857
|
+
#
|
|
3858
|
+
# @!attribute [rw] end
|
|
3859
|
+
# The ending position in the content array where the cited content
|
|
3860
|
+
# ends.
|
|
3861
|
+
# @return [Integer]
|
|
3862
|
+
#
|
|
3863
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SearchResultLocation AWS API Documentation
|
|
3864
|
+
#
|
|
3865
|
+
class SearchResultLocation < Struct.new(
|
|
3866
|
+
:search_result_index,
|
|
3867
|
+
:start,
|
|
3868
|
+
:end)
|
|
3869
|
+
SENSITIVE = []
|
|
3870
|
+
include Aws::Structure
|
|
3871
|
+
end
|
|
3872
|
+
|
|
3769
3873
|
# Your request exceeds the service quota for your account. You can view
|
|
3770
3874
|
# your quotas at [Viewing service quotas][1]. You can resubmit your
|
|
3771
3875
|
# request later.
|
|
@@ -4292,6 +4396,10 @@ module Aws::BedrockRuntime
|
|
|
4292
4396
|
# A tool result that is video.
|
|
4293
4397
|
# @return [Types::VideoBlock]
|
|
4294
4398
|
#
|
|
4399
|
+
# @!attribute [rw] search_result
|
|
4400
|
+
# A tool result that is a search result.
|
|
4401
|
+
# @return [Types::SearchResultBlock]
|
|
4402
|
+
#
|
|
4295
4403
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ToolResultContentBlock AWS API Documentation
|
|
4296
4404
|
#
|
|
4297
4405
|
class ToolResultContentBlock < Struct.new(
|
|
@@ -4300,6 +4408,7 @@ module Aws::BedrockRuntime
|
|
|
4300
4408
|
:image,
|
|
4301
4409
|
:document,
|
|
4302
4410
|
:video,
|
|
4411
|
+
:search_result,
|
|
4303
4412
|
:unknown)
|
|
4304
4413
|
SENSITIVE = []
|
|
4305
4414
|
include Aws::Structure
|
|
@@ -4310,6 +4419,7 @@ module Aws::BedrockRuntime
|
|
|
4310
4419
|
class Image < ToolResultContentBlock; end
|
|
4311
4420
|
class Document < ToolResultContentBlock; end
|
|
4312
4421
|
class Video < ToolResultContentBlock; end
|
|
4422
|
+
class SearchResult < ToolResultContentBlock; end
|
|
4313
4423
|
class Unknown < ToolResultContentBlock; end
|
|
4314
4424
|
end
|
|
4315
4425
|
|
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
|
]
|
|
@@ -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
|
]
|
|
@@ -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
|
@@ -88,6 +88,7 @@ module Aws::BedrockRuntime
|
|
|
88
88
|
|
|
89
89
|
class Citation
|
|
90
90
|
attr_accessor title: ::String
|
|
91
|
+
attr_accessor source: ::String
|
|
91
92
|
attr_accessor source_content: ::Array[Types::CitationSourceContent]
|
|
92
93
|
attr_accessor location: Types::CitationLocation
|
|
93
94
|
SENSITIVE: []
|
|
@@ -109,6 +110,7 @@ module Aws::BedrockRuntime
|
|
|
109
110
|
attr_accessor document_char: Types::DocumentCharLocation
|
|
110
111
|
attr_accessor document_page: Types::DocumentPageLocation
|
|
111
112
|
attr_accessor document_chunk: Types::DocumentChunkLocation
|
|
113
|
+
attr_accessor search_result_location: Types::SearchResultLocation
|
|
112
114
|
attr_accessor unknown: untyped
|
|
113
115
|
SENSITIVE: []
|
|
114
116
|
|
|
@@ -120,6 +122,8 @@ module Aws::BedrockRuntime
|
|
|
120
122
|
end
|
|
121
123
|
class DocumentChunk < CitationLocation
|
|
122
124
|
end
|
|
125
|
+
class SearchResultLocation < CitationLocation
|
|
126
|
+
end
|
|
123
127
|
class Unknown < CitationLocation
|
|
124
128
|
end
|
|
125
129
|
end
|
|
@@ -153,6 +157,7 @@ module Aws::BedrockRuntime
|
|
|
153
157
|
|
|
154
158
|
class CitationsDelta
|
|
155
159
|
attr_accessor title: ::String
|
|
160
|
+
attr_accessor source: ::String
|
|
156
161
|
attr_accessor source_content: ::Array[Types::CitationSourceContentDelta]
|
|
157
162
|
attr_accessor location: Types::CitationLocation
|
|
158
163
|
SENSITIVE: []
|
|
@@ -174,6 +179,7 @@ module Aws::BedrockRuntime
|
|
|
174
179
|
attr_accessor cache_point: Types::CachePointBlock
|
|
175
180
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
|
176
181
|
attr_accessor citations_content: Types::CitationsContentBlock
|
|
182
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
177
183
|
attr_accessor unknown: untyped
|
|
178
184
|
SENSITIVE: [:reasoning_content]
|
|
179
185
|
|
|
@@ -197,6 +203,8 @@ module Aws::BedrockRuntime
|
|
|
197
203
|
end
|
|
198
204
|
class CitationsContent < ContentBlock
|
|
199
205
|
end
|
|
206
|
+
class SearchResult < ContentBlock
|
|
207
|
+
end
|
|
200
208
|
class Unknown < ContentBlock
|
|
201
209
|
end
|
|
202
210
|
end
|
|
@@ -1046,6 +1054,26 @@ module Aws::BedrockRuntime
|
|
|
1046
1054
|
SENSITIVE: []
|
|
1047
1055
|
end
|
|
1048
1056
|
|
|
1057
|
+
class SearchResultBlock
|
|
1058
|
+
attr_accessor source: ::String
|
|
1059
|
+
attr_accessor title: ::String
|
|
1060
|
+
attr_accessor content: ::Array[Types::SearchResultContentBlock]
|
|
1061
|
+
attr_accessor citations: Types::CitationsConfig
|
|
1062
|
+
SENSITIVE: []
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
class SearchResultContentBlock
|
|
1066
|
+
attr_accessor text: ::String
|
|
1067
|
+
SENSITIVE: []
|
|
1068
|
+
end
|
|
1069
|
+
|
|
1070
|
+
class SearchResultLocation
|
|
1071
|
+
attr_accessor search_result_index: ::Integer
|
|
1072
|
+
attr_accessor start: ::Integer
|
|
1073
|
+
attr_accessor end: ::Integer
|
|
1074
|
+
SENSITIVE: []
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1049
1077
|
class ServiceQuotaExceededException
|
|
1050
1078
|
attr_accessor message: ::String
|
|
1051
1079
|
SENSITIVE: []
|
|
@@ -1207,6 +1235,7 @@ module Aws::BedrockRuntime
|
|
|
1207
1235
|
attr_accessor image: Types::ImageBlock
|
|
1208
1236
|
attr_accessor document: Types::DocumentBlock
|
|
1209
1237
|
attr_accessor video: Types::VideoBlock
|
|
1238
|
+
attr_accessor search_result: Types::SearchResultBlock
|
|
1210
1239
|
attr_accessor unknown: untyped
|
|
1211
1240
|
SENSITIVE: []
|
|
1212
1241
|
|
|
@@ -1220,6 +1249,8 @@ module Aws::BedrockRuntime
|
|
|
1220
1249
|
end
|
|
1221
1250
|
class Video < ToolResultContentBlock
|
|
1222
1251
|
end
|
|
1252
|
+
class SearchResult < ToolResultContentBlock
|
|
1253
|
+
end
|
|
1223
1254
|
class Unknown < ToolResultContentBlock
|
|
1224
1255
|
end
|
|
1225
1256
|
end
|