aws-sdk-bedrockruntime 1.49.0 → 1.50.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.
@@ -272,6 +272,217 @@ module Aws::BedrockRuntime
272
272
  include Aws::Structure
273
273
  end
274
274
 
275
+ # Contains information about a citation that references a specific
276
+ # source document. Citations provide traceability between the model's
277
+ # generated response and the source documents that informed that
278
+ # response.
279
+ #
280
+ # @!attribute [rw] title
281
+ # The title or identifier of the source document being cited.
282
+ # @return [String]
283
+ #
284
+ # @!attribute [rw] source_content
285
+ # The specific content from the source document that was referenced or
286
+ # cited in the generated response.
287
+ # @return [Array<Types::CitationSourceContent>]
288
+ #
289
+ # @!attribute [rw] location
290
+ # The precise location within the source document where the cited
291
+ # content can be found, including character positions, page numbers,
292
+ # or chunk identifiers.
293
+ # @return [Types::CitationLocation]
294
+ #
295
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Citation AWS API Documentation
296
+ #
297
+ class Citation < Struct.new(
298
+ :title,
299
+ :source_content,
300
+ :location)
301
+ SENSITIVE = []
302
+ include Aws::Structure
303
+ end
304
+
305
+ # Contains the generated text content that corresponds to or is
306
+ # supported by a citation from a source document.
307
+ #
308
+ # @note CitationGeneratedContent is a union - when making an API calls you must set exactly one of the members.
309
+ #
310
+ # @note CitationGeneratedContent is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CitationGeneratedContent corresponding to the set member.
311
+ #
312
+ # @!attribute [rw] text
313
+ # The text content that was generated by the model and is supported by
314
+ # the associated citation.
315
+ # @return [String]
316
+ #
317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationGeneratedContent AWS API Documentation
318
+ #
319
+ class CitationGeneratedContent < Struct.new(
320
+ :text,
321
+ :unknown)
322
+ SENSITIVE = []
323
+ include Aws::Structure
324
+ include Aws::Structure::Union
325
+
326
+ class Text < CitationGeneratedContent; end
327
+ class Unknown < CitationGeneratedContent; end
328
+ end
329
+
330
+ # Specifies the precise location within a source document where cited
331
+ # content can be found. This can include character-level positions, page
332
+ # numbers, or document chunks depending on the document type and
333
+ # indexing method.
334
+ #
335
+ # @note CitationLocation is a union - when making an API calls you must set exactly one of the members.
336
+ #
337
+ # @note CitationLocation is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CitationLocation corresponding to the set member.
338
+ #
339
+ # @!attribute [rw] document_char
340
+ # The character-level location within the document where the cited
341
+ # content is found.
342
+ # @return [Types::DocumentCharLocation]
343
+ #
344
+ # @!attribute [rw] document_page
345
+ # The page-level location within the document where the cited content
346
+ # is found.
347
+ # @return [Types::DocumentPageLocation]
348
+ #
349
+ # @!attribute [rw] document_chunk
350
+ # The chunk-level location within the document where the cited content
351
+ # is found, typically used for documents that have been segmented into
352
+ # logical chunks.
353
+ # @return [Types::DocumentChunkLocation]
354
+ #
355
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationLocation AWS API Documentation
356
+ #
357
+ class CitationLocation < Struct.new(
358
+ :document_char,
359
+ :document_page,
360
+ :document_chunk,
361
+ :unknown)
362
+ SENSITIVE = []
363
+ include Aws::Structure
364
+ include Aws::Structure::Union
365
+
366
+ class DocumentChar < CitationLocation; end
367
+ class DocumentPage < CitationLocation; end
368
+ class DocumentChunk < CitationLocation; end
369
+ class Unknown < CitationLocation; end
370
+ end
371
+
372
+ # Contains the actual text content from a source document that is being
373
+ # cited or referenced in the model's response.
374
+ #
375
+ # @note CitationSourceContent is a union - when making an API calls you must set exactly one of the members.
376
+ #
377
+ # @note CitationSourceContent is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CitationSourceContent corresponding to the set member.
378
+ #
379
+ # @!attribute [rw] text
380
+ # The text content from the source document that is being cited.
381
+ # @return [String]
382
+ #
383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationSourceContent AWS API Documentation
384
+ #
385
+ class CitationSourceContent < Struct.new(
386
+ :text,
387
+ :unknown)
388
+ SENSITIVE = []
389
+ include Aws::Structure
390
+ include Aws::Structure::Union
391
+
392
+ class Text < CitationSourceContent; end
393
+ class Unknown < CitationSourceContent; end
394
+ end
395
+
396
+ # Contains incremental updates to the source content text during
397
+ # streaming responses, allowing clients to build up the cited content
398
+ # progressively.
399
+ #
400
+ # @!attribute [rw] text
401
+ # An incremental update to the text content from the source document
402
+ # that is being cited.
403
+ # @return [String]
404
+ #
405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationSourceContentDelta AWS API Documentation
406
+ #
407
+ class CitationSourceContentDelta < Struct.new(
408
+ :text)
409
+ SENSITIVE = []
410
+ include Aws::Structure
411
+ end
412
+
413
+ # Configuration settings for enabling and controlling document citations
414
+ # in Converse API responses. When enabled, the model can include
415
+ # citation information that links generated content back to specific
416
+ # source documents.
417
+ #
418
+ # @!attribute [rw] enabled
419
+ # Specifies whether document citations should be included in the
420
+ # model's response. When set to true, the model can generate
421
+ # citations that reference the source documents used to inform the
422
+ # response.
423
+ # @return [Boolean]
424
+ #
425
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationsConfig AWS API Documentation
426
+ #
427
+ class CitationsConfig < Struct.new(
428
+ :enabled)
429
+ SENSITIVE = []
430
+ include Aws::Structure
431
+ end
432
+
433
+ # A content block that contains both generated text and associated
434
+ # citation information. This block type is returned when document
435
+ # citations are enabled, providing traceability between the generated
436
+ # content and the source documents that informed the response.
437
+ #
438
+ # @!attribute [rw] content
439
+ # The generated content that is supported by the associated citations.
440
+ # @return [Array<Types::CitationGeneratedContent>]
441
+ #
442
+ # @!attribute [rw] citations
443
+ # An array of citations that reference the source documents used to
444
+ # generate the associated content.
445
+ # @return [Array<Types::Citation>]
446
+ #
447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationsContentBlock AWS API Documentation
448
+ #
449
+ class CitationsContentBlock < Struct.new(
450
+ :content,
451
+ :citations)
452
+ SENSITIVE = []
453
+ include Aws::Structure
454
+ end
455
+
456
+ # Contains incremental updates to citation information during streaming
457
+ # responses. This allows clients to build up citation data progressively
458
+ # as the response is generated.
459
+ #
460
+ # @!attribute [rw] title
461
+ # The title or identifier of the source document being cited.
462
+ # @return [String]
463
+ #
464
+ # @!attribute [rw] source_content
465
+ # The specific content from the source document that was referenced or
466
+ # cited in the generated response.
467
+ # @return [Array<Types::CitationSourceContentDelta>]
468
+ #
469
+ # @!attribute [rw] location
470
+ # Specifies the precise location within a source document where cited
471
+ # content can be found. This can include character-level positions,
472
+ # page numbers, or document chunks depending on the document type and
473
+ # indexing method.
474
+ # @return [Types::CitationLocation]
475
+ #
476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CitationsDelta AWS API Documentation
477
+ #
478
+ class CitationsDelta < Struct.new(
479
+ :title,
480
+ :source_content,
481
+ :location)
482
+ SENSITIVE = []
483
+ include Aws::Structure
484
+ end
485
+
275
486
  # Error occurred because of a conflict while performing an operation.
276
487
  #
277
488
  # @!attribute [rw] message
@@ -331,7 +542,7 @@ module Aws::BedrockRuntime
331
542
  # (if passed in the Converse API) assesses the entire message.
332
543
  #
333
544
  # For more information, see *Use a guardrail with the Converse API* in
334
- # the *Amazon Bedrock User Guide*. </p>
545
+ # the *Amazon Bedrock User Guide*.
335
546
  # @return [Types::GuardrailConverseContentBlock]
336
547
  #
337
548
  # @!attribute [rw] cache_point
@@ -344,6 +555,12 @@ module Aws::BedrockRuntime
344
555
  # generates to enhance the accuracy of its final response.
345
556
  # @return [Types::ReasoningContentBlock]
346
557
  #
558
+ # @!attribute [rw] citations_content
559
+ # A content block that contains both generated text and associated
560
+ # citation information, providing traceability between the response
561
+ # and source documents.
562
+ # @return [Types::CitationsContentBlock]
563
+ #
347
564
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlock AWS API Documentation
348
565
  #
349
566
  class ContentBlock < Struct.new(
@@ -356,6 +573,7 @@ module Aws::BedrockRuntime
356
573
  :guard_content,
357
574
  :cache_point,
358
575
  :reasoning_content,
576
+ :citations_content,
359
577
  :unknown)
360
578
  SENSITIVE = [:reasoning_content]
361
579
  include Aws::Structure
@@ -370,6 +588,7 @@ module Aws::BedrockRuntime
370
588
  class GuardContent < ContentBlock; end
371
589
  class CachePoint < ContentBlock; end
372
590
  class ReasoningContent < ContentBlock; end
591
+ class CitationsContent < ContentBlock; end
373
592
  class Unknown < ContentBlock; end
374
593
  end
375
594
 
@@ -391,12 +610,18 @@ module Aws::BedrockRuntime
391
610
  # generates to enhance the accuracy of its final response.
392
611
  # @return [Types::ReasoningContentBlockDelta]
393
612
  #
613
+ # @!attribute [rw] citation
614
+ # Incremental citation information that is streamed as part of the
615
+ # response generation process.
616
+ # @return [Types::CitationsDelta]
617
+ #
394
618
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ContentBlockDelta AWS API Documentation
395
619
  #
396
620
  class ContentBlockDelta < Struct.new(
397
621
  :text,
398
622
  :tool_use,
399
623
  :reasoning_content,
624
+ :citation,
400
625
  :unknown)
401
626
  SENSITIVE = [:reasoning_content]
402
627
  include Aws::Structure
@@ -405,6 +630,7 @@ module Aws::BedrockRuntime
405
630
  class Text < ContentBlockDelta; end
406
631
  class ToolUse < ContentBlockDelta; end
407
632
  class ReasoningContent < ContentBlockDelta; end
633
+ class Citation < ContentBlockDelta; end
408
634
  class Unknown < ContentBlockDelta; end
409
635
  end
410
636
 
@@ -997,12 +1223,132 @@ module Aws::BedrockRuntime
997
1223
  # Contains the content of the document.
998
1224
  # @return [Types::DocumentSource]
999
1225
  #
1226
+ # @!attribute [rw] context
1227
+ # Contextual information about how the document should be processed or
1228
+ # interpreted by the model when generating citations.
1229
+ # @return [String]
1230
+ #
1231
+ # @!attribute [rw] citations
1232
+ # Configuration settings that control how citations should be
1233
+ # generated for this specific document.
1234
+ # @return [Types::CitationsConfig]
1235
+ #
1000
1236
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentBlock AWS API Documentation
1001
1237
  #
1002
1238
  class DocumentBlock < Struct.new(
1003
1239
  :format,
1004
1240
  :name,
1005
- :source)
1241
+ :source,
1242
+ :context,
1243
+ :citations)
1244
+ SENSITIVE = []
1245
+ include Aws::Structure
1246
+ end
1247
+
1248
+ # Specifies a character-level location within a document, providing
1249
+ # precise positioning information for cited content using start and end
1250
+ # character indices.
1251
+ #
1252
+ # @!attribute [rw] document_index
1253
+ # The index of the document within the array of documents provided in
1254
+ # the request.
1255
+ # @return [Integer]
1256
+ #
1257
+ # @!attribute [rw] start
1258
+ # The starting character position of the cited content within the
1259
+ # document.
1260
+ # @return [Integer]
1261
+ #
1262
+ # @!attribute [rw] end
1263
+ # The ending character position of the cited content within the
1264
+ # document.
1265
+ # @return [Integer]
1266
+ #
1267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentCharLocation AWS API Documentation
1268
+ #
1269
+ class DocumentCharLocation < Struct.new(
1270
+ :document_index,
1271
+ :start,
1272
+ :end)
1273
+ SENSITIVE = []
1274
+ include Aws::Structure
1275
+ end
1276
+
1277
+ # Specifies a chunk-level location within a document, providing
1278
+ # positioning information for cited content using logical document
1279
+ # segments or chunks.
1280
+ #
1281
+ # @!attribute [rw] document_index
1282
+ # The index of the document within the array of documents provided in
1283
+ # the request.
1284
+ # @return [Integer]
1285
+ #
1286
+ # @!attribute [rw] start
1287
+ # The starting chunk identifier or index of the cited content within
1288
+ # the document.
1289
+ # @return [Integer]
1290
+ #
1291
+ # @!attribute [rw] end
1292
+ # The ending chunk identifier or index of the cited content within the
1293
+ # document.
1294
+ # @return [Integer]
1295
+ #
1296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentChunkLocation AWS API Documentation
1297
+ #
1298
+ class DocumentChunkLocation < Struct.new(
1299
+ :document_index,
1300
+ :start,
1301
+ :end)
1302
+ SENSITIVE = []
1303
+ include Aws::Structure
1304
+ end
1305
+
1306
+ # Contains the actual content of a document that can be processed by the
1307
+ # model and potentially cited in the response.
1308
+ #
1309
+ # @note DocumentContentBlock is a union - when making an API calls you must set exactly one of the members.
1310
+ #
1311
+ # @note DocumentContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of DocumentContentBlock corresponding to the set member.
1312
+ #
1313
+ # @!attribute [rw] text
1314
+ # The text content of the document.
1315
+ # @return [String]
1316
+ #
1317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentContentBlock AWS API Documentation
1318
+ #
1319
+ class DocumentContentBlock < Struct.new(
1320
+ :text,
1321
+ :unknown)
1322
+ SENSITIVE = []
1323
+ include Aws::Structure
1324
+ include Aws::Structure::Union
1325
+
1326
+ class Text < DocumentContentBlock; end
1327
+ class Unknown < DocumentContentBlock; end
1328
+ end
1329
+
1330
+ # Specifies a page-level location within a document, providing
1331
+ # positioning information for cited content using page numbers.
1332
+ #
1333
+ # @!attribute [rw] document_index
1334
+ # The index of the document within the array of documents provided in
1335
+ # the request.
1336
+ # @return [Integer]
1337
+ #
1338
+ # @!attribute [rw] start
1339
+ # The starting page number of the cited content within the document.
1340
+ # @return [Integer]
1341
+ #
1342
+ # @!attribute [rw] end
1343
+ # The ending page number of the cited content within the document.
1344
+ # @return [Integer]
1345
+ #
1346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentPageLocation AWS API Documentation
1347
+ #
1348
+ class DocumentPageLocation < Struct.new(
1349
+ :document_index,
1350
+ :start,
1351
+ :end)
1006
1352
  SENSITIVE = []
1007
1353
  include Aws::Structure
1008
1354
  end
@@ -1028,11 +1374,23 @@ module Aws::BedrockRuntime
1028
1374
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
1029
1375
  # @return [Types::S3Location]
1030
1376
  #
1377
+ # @!attribute [rw] text
1378
+ # The text content of the document source.
1379
+ # @return [String]
1380
+ #
1381
+ # @!attribute [rw] content
1382
+ # The structured content of the document source, which may include
1383
+ # various content blocks such as text, images, or other document
1384
+ # elements.
1385
+ # @return [Array<Types::DocumentContentBlock>]
1386
+ #
1031
1387
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentSource AWS API Documentation
1032
1388
  #
1033
1389
  class DocumentSource < Struct.new(
1034
1390
  :bytes,
1035
1391
  :s3_location,
1392
+ :text,
1393
+ :content,
1036
1394
  :unknown)
1037
1395
  SENSITIVE = []
1038
1396
  include Aws::Structure
@@ -1040,6 +1398,8 @@ module Aws::BedrockRuntime
1040
1398
 
1041
1399
  class Bytes < DocumentSource; end
1042
1400
  class S3Location < DocumentSource; end
1401
+ class Text < DocumentSource; end
1402
+ class Content < DocumentSource; end
1043
1403
  class Unknown < DocumentSource; end
1044
1404
  end
1045
1405
 
@@ -2069,10 +2429,11 @@ module Aws::BedrockRuntime
2069
2429
  # Throughput. For more information, see [Run inference using a
2070
2430
  # Provisioned Throughput][3] in the Amazon Bedrock User Guide.
2071
2431
  #
2072
- # * If you use a custom model, first purchase Provisioned Throughput
2073
- # for it. Then specify the ARN of the resulting provisioned model.
2074
- # For more information, see [Use a custom model in Amazon
2075
- # Bedrock][4] in the Amazon Bedrock User Guide.
2432
+ # * If you use a custom model, specify the ARN of the custom model
2433
+ # deployment (for on-demand inference) or the ARN of your
2434
+ # provisioned model (for Provisioned Throughput). For more
2435
+ # information, see [Use a custom model in Amazon Bedrock][4] in the
2436
+ # Amazon Bedrock User Guide.
2076
2437
  #
2077
2438
  # * If you use an [imported model][5], specify the ARN of the imported
2078
2439
  # model. You can get the model ARN from a successful call to
@@ -2245,10 +2606,11 @@ module Aws::BedrockRuntime
2245
2606
  # Throughput. For more information, see [Run inference using a
2246
2607
  # Provisioned Throughput][3] in the Amazon Bedrock User Guide.
2247
2608
  #
2248
- # * If you use a custom model, first purchase Provisioned Throughput
2249
- # for it. Then specify the ARN of the resulting provisioned model.
2250
- # For more information, see [Use a custom model in Amazon
2251
- # Bedrock][4] in the Amazon Bedrock User Guide.
2609
+ # * If you use a custom model, specify the ARN of the custom model
2610
+ # deployment (for on-demand inference) or the ARN of your
2611
+ # provisioned model (for Provisioned Throughput). For more
2612
+ # information, see [Use a custom model in Amazon Bedrock][4] in the
2613
+ # Amazon Bedrock User Guide.
2252
2614
  #
2253
2615
  # * If you use an [imported model][5], specify the ARN of the imported
2254
2616
  # model. You can get the model ARN from a successful call to
@@ -57,7 +57,7 @@ module Aws::BedrockRuntime
57
57
  autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
58
58
  autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
59
59
 
60
- GEM_VERSION = '1.49.0'
60
+ GEM_VERSION = '1.50.0'
61
61
 
62
62
  end
63
63
 
data/sig/client.rbs CHANGED
@@ -142,15 +142,25 @@ module Aws
142
142
  }
143
143
  }?,
144
144
  document: {
145
- format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
145
+ format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")?,
146
146
  name: ::String,
147
147
  source: {
148
148
  bytes: ::String?,
149
149
  s3_location: {
150
150
  uri: ::String,
151
151
  bucket_owner: ::String?
152
- }?
153
- }
152
+ }?,
153
+ text: ::String?,
154
+ content: Array[
155
+ {
156
+ text: ::String?
157
+ },
158
+ ]?
159
+ },
160
+ context: ::String?,
161
+ citations: {
162
+ enabled: bool
163
+ }?
154
164
  }?,
155
165
  video: {
156
166
  format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp"),
@@ -186,15 +196,25 @@ module Aws
186
196
  }
187
197
  }?,
188
198
  document: {
189
- format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
199
+ format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")?,
190
200
  name: ::String,
191
201
  source: {
192
202
  bytes: ::String?,
193
203
  s3_location: {
194
204
  uri: ::String,
195
205
  bucket_owner: ::String?
196
- }?
197
- }
206
+ }?,
207
+ text: ::String?,
208
+ content: Array[
209
+ {
210
+ text: ::String?
211
+ },
212
+ ]?
213
+ },
214
+ context: ::String?,
215
+ citations: {
216
+ enabled: bool
217
+ }?
198
218
  }?,
199
219
  video: {
200
220
  format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp"),
@@ -231,6 +251,40 @@ module Aws
231
251
  signature: ::String?
232
252
  }?,
233
253
  redacted_content: ::String?
254
+ }?,
255
+ citations_content: {
256
+ content: Array[
257
+ {
258
+ text: ::String?
259
+ },
260
+ ]?,
261
+ citations: Array[
262
+ {
263
+ title: ::String?,
264
+ source_content: Array[
265
+ {
266
+ text: ::String?
267
+ },
268
+ ]?,
269
+ location: {
270
+ document_char: {
271
+ document_index: ::Integer?,
272
+ start: ::Integer?,
273
+ end: ::Integer?
274
+ }?,
275
+ document_page: {
276
+ document_index: ::Integer?,
277
+ start: ::Integer?,
278
+ end: ::Integer?
279
+ }?,
280
+ document_chunk: {
281
+ document_index: ::Integer?,
282
+ start: ::Integer?,
283
+ end: ::Integer?
284
+ }?
285
+ }?
286
+ },
287
+ ]?
234
288
  }?
235
289
  },
236
290
  ]
@@ -330,15 +384,25 @@ module Aws
330
384
  }
331
385
  }?,
332
386
  document: {
333
- format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
387
+ format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")?,
334
388
  name: ::String,
335
389
  source: {
336
390
  bytes: ::String?,
337
391
  s3_location: {
338
392
  uri: ::String,
339
393
  bucket_owner: ::String?
340
- }?
341
- }
394
+ }?,
395
+ text: ::String?,
396
+ content: Array[
397
+ {
398
+ text: ::String?
399
+ },
400
+ ]?
401
+ },
402
+ context: ::String?,
403
+ citations: {
404
+ enabled: bool
405
+ }?
342
406
  }?,
343
407
  video: {
344
408
  format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp"),
@@ -374,15 +438,25 @@ module Aws
374
438
  }
375
439
  }?,
376
440
  document: {
377
- format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
441
+ format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md")?,
378
442
  name: ::String,
379
443
  source: {
380
444
  bytes: ::String?,
381
445
  s3_location: {
382
446
  uri: ::String,
383
447
  bucket_owner: ::String?
384
- }?
385
- }
448
+ }?,
449
+ text: ::String?,
450
+ content: Array[
451
+ {
452
+ text: ::String?
453
+ },
454
+ ]?
455
+ },
456
+ context: ::String?,
457
+ citations: {
458
+ enabled: bool
459
+ }?
386
460
  }?,
387
461
  video: {
388
462
  format: ("mkv" | "mov" | "mp4" | "webm" | "flv" | "mpeg" | "mpg" | "wmv" | "three_gp"),
@@ -419,6 +493,40 @@ module Aws
419
493
  signature: ::String?
420
494
  }?,
421
495
  redacted_content: ::String?
496
+ }?,
497
+ citations_content: {
498
+ content: Array[
499
+ {
500
+ text: ::String?
501
+ },
502
+ ]?,
503
+ citations: Array[
504
+ {
505
+ title: ::String?,
506
+ source_content: Array[
507
+ {
508
+ text: ::String?
509
+ },
510
+ ]?,
511
+ location: {
512
+ document_char: {
513
+ document_index: ::Integer?,
514
+ start: ::Integer?,
515
+ end: ::Integer?
516
+ }?,
517
+ document_page: {
518
+ document_index: ::Integer?,
519
+ start: ::Integer?,
520
+ end: ::Integer?
521
+ }?,
522
+ document_chunk: {
523
+ document_index: ::Integer?,
524
+ start: ::Integer?,
525
+ end: ::Integer?
526
+ }?
527
+ }?
528
+ },
529
+ ]?
422
530
  }?
423
531
  },
424
532
  ]