aws-sdk-bedrockagentruntime 1.90.0 → 1.91.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-bedrockagentruntime/client.rb +28 -5
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +2 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +32 -10
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +1 -0
- data/sig/types.rbs +1 -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: 2f63906cf39e79d578016b310f20ab72c30b2c23356cfbc215921823438816b2
|
|
4
|
+
data.tar.gz: 5c85988de55bfa6f7493a6e120543d429266e5f830fe5c1fdadac88a7a28c8c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a71b428369d3c31e2ef64a6bc9a42deffa8f70b5b7b509fad1f7189b1c3fa85d3b67defbcac81f64c30282b8fe6bd0dc487fe8ae39c1f9dac608b55ad01ca87f
|
|
7
|
+
data.tar.gz: 4ae771d32f861939fd11b1047793a0b62d84ed2c0b82a1fe92329e162e658fb87f46c47a5a5ef1073ac8ba01bfe442f11b8dc7fbbadc3b0ed2aa8afa2108327c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.91.0 (2026-11-05)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock Managed Knowledge Base now supports an optional mediaId parameter in GetDocumentContent that you can use to retrieve images embedded in source documents.
|
|
8
|
+
|
|
4
9
|
1.90.0 (2026-11-04)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.91.0
|
|
@@ -1441,8 +1441,10 @@ module Aws::BedrockAgentRuntime
|
|
|
1441
1441
|
req.send_request(options)
|
|
1442
1442
|
end
|
|
1443
1443
|
|
|
1444
|
-
# Retrieves the content of an ingested document from a knowledge base
|
|
1445
|
-
# Returns a pre-signed URL for
|
|
1444
|
+
# Retrieves the content of an ingested document from a knowledge base,
|
|
1445
|
+
# or of an image embedded in the document. Returns a pre-signed URL for
|
|
1446
|
+
# downloading the content. Use this operation to display the source of a
|
|
1447
|
+
# `Retrieve` result.
|
|
1446
1448
|
#
|
|
1447
1449
|
# @option params [required, String] :data_source_id
|
|
1448
1450
|
# The unique identifier of the data source that contains the document.
|
|
@@ -1454,9 +1456,29 @@ module Aws::BedrockAgentRuntime
|
|
|
1454
1456
|
# The unique identifier of the knowledge base that contains the
|
|
1455
1457
|
# document.
|
|
1456
1458
|
#
|
|
1459
|
+
# @option params [String] :media_id
|
|
1460
|
+
# The unique identifier (in UUID format) of an image embedded in the
|
|
1461
|
+
# specified document. Set this parameter to the `_media_id` value in the
|
|
1462
|
+
# metadata of the corresponding `Retrieve` result. If you specify this
|
|
1463
|
+
# parameter, the response contains a pre-signed URL for the image
|
|
1464
|
+
# instead of the document, and you must omit `outputFormat` or set it to
|
|
1465
|
+
# `RAW`.
|
|
1466
|
+
#
|
|
1457
1467
|
# @option params [String] :output_format
|
|
1458
|
-
# The output format for the
|
|
1459
|
-
#
|
|
1468
|
+
# The output format for the content. You can specify one of the
|
|
1469
|
+
# following values:
|
|
1470
|
+
#
|
|
1471
|
+
# RAW
|
|
1472
|
+
#
|
|
1473
|
+
# : Returns the original document, or the selected image if you specify
|
|
1474
|
+
# `mediaId`.
|
|
1475
|
+
#
|
|
1476
|
+
# EXTRACTED
|
|
1477
|
+
#
|
|
1478
|
+
# : Returns parsed document text as JSON.
|
|
1479
|
+
#
|
|
1480
|
+
# If you omit this parameter, the default is `RAW`. You can't use
|
|
1481
|
+
# `EXTRACTED` with `mediaId`.
|
|
1460
1482
|
#
|
|
1461
1483
|
# @option params [Types::UserContext] :user_context
|
|
1462
1484
|
# Contains information about the user making the request. This is used
|
|
@@ -1475,6 +1497,7 @@ module Aws::BedrockAgentRuntime
|
|
|
1475
1497
|
# data_source_id: "DataSourceId", # required
|
|
1476
1498
|
# document_id: "DocumentId", # required
|
|
1477
1499
|
# knowledge_base_id: "KnowledgeBaseIdentifier", # required
|
|
1500
|
+
# media_id: "MediaId",
|
|
1478
1501
|
# output_format: "RAW", # accepts RAW, EXTRACTED
|
|
1479
1502
|
# user_context: {
|
|
1480
1503
|
# user_id: "String", # required
|
|
@@ -8492,7 +8515,7 @@ module Aws::BedrockAgentRuntime
|
|
|
8492
8515
|
tracer: tracer
|
|
8493
8516
|
)
|
|
8494
8517
|
context[:gem_name] = 'aws-sdk-bedrockagentruntime'
|
|
8495
|
-
context[:gem_version] = '1.
|
|
8518
|
+
context[:gem_version] = '1.91.0'
|
|
8496
8519
|
Seahorse::Client::Request.new(handlers, context)
|
|
8497
8520
|
end
|
|
8498
8521
|
|
|
@@ -457,6 +457,7 @@ module Aws::BedrockAgentRuntime
|
|
|
457
457
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
458
458
|
MaxTokens = Shapes::IntegerShape.new(name: 'MaxTokens')
|
|
459
459
|
MaximumLength = Shapes::IntegerShape.new(name: 'MaximumLength')
|
|
460
|
+
MediaId = Shapes::StringShape.new(name: 'MediaId')
|
|
460
461
|
Memories = Shapes::ListShape.new(name: 'Memories')
|
|
461
462
|
Memory = Shapes::UnionShape.new(name: 'Memory')
|
|
462
463
|
MemoryId = Shapes::StringShape.new(name: 'MemoryId')
|
|
@@ -1658,6 +1659,7 @@ module Aws::BedrockAgentRuntime
|
|
|
1658
1659
|
GetDocumentContentRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: DataSourceId, required: true, location: "uri", location_name: "dataSourceId"))
|
|
1659
1660
|
GetDocumentContentRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, required: true, location: "uri", location_name: "documentId"))
|
|
1660
1661
|
GetDocumentContentRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseIdentifier, required: true, location: "uri", location_name: "knowledgeBaseId"))
|
|
1662
|
+
GetDocumentContentRequest.add_member(:media_id, Shapes::ShapeRef.new(shape: MediaId, location_name: "mediaId"))
|
|
1661
1663
|
GetDocumentContentRequest.add_member(:output_format, Shapes::ShapeRef.new(shape: DocumentOutputFormat, location_name: "outputFormat"))
|
|
1662
1664
|
GetDocumentContentRequest.add_member(:user_context, Shapes::ShapeRef.new(shape: UserContext, location_name: "userContext"))
|
|
1663
1665
|
GetDocumentContentRequest.struct_class = Types::GetDocumentContentRequest
|
|
@@ -4233,10 +4233,30 @@ module Aws::BedrockAgentRuntime
|
|
|
4233
4233
|
# document.
|
|
4234
4234
|
# @return [String]
|
|
4235
4235
|
#
|
|
4236
|
+
# @!attribute [rw] media_id
|
|
4237
|
+
# The unique identifier (in UUID format) of an image embedded in the
|
|
4238
|
+
# specified document. Set this parameter to the `_media_id` value in
|
|
4239
|
+
# the metadata of the corresponding `Retrieve` result. If you specify
|
|
4240
|
+
# this parameter, the response contains a pre-signed URL for the image
|
|
4241
|
+
# instead of the document, and you must omit `outputFormat` or set it
|
|
4242
|
+
# to `RAW`.
|
|
4243
|
+
# @return [String]
|
|
4244
|
+
#
|
|
4236
4245
|
# @!attribute [rw] output_format
|
|
4237
|
-
# The output format for the
|
|
4238
|
-
#
|
|
4239
|
-
#
|
|
4246
|
+
# The output format for the content. You can specify one of the
|
|
4247
|
+
# following values:
|
|
4248
|
+
#
|
|
4249
|
+
# RAW
|
|
4250
|
+
#
|
|
4251
|
+
# : Returns the original document, or the selected image if you
|
|
4252
|
+
# specify `mediaId`.
|
|
4253
|
+
#
|
|
4254
|
+
# EXTRACTED
|
|
4255
|
+
#
|
|
4256
|
+
# : Returns parsed document text as JSON.
|
|
4257
|
+
#
|
|
4258
|
+
# If you omit this parameter, the default is `RAW`. You can't use
|
|
4259
|
+
# `EXTRACTED` with `mediaId`.
|
|
4240
4260
|
# @return [String]
|
|
4241
4261
|
#
|
|
4242
4262
|
# @!attribute [rw] user_context
|
|
@@ -4251,6 +4271,7 @@ module Aws::BedrockAgentRuntime
|
|
|
4251
4271
|
:data_source_id,
|
|
4252
4272
|
:document_id,
|
|
4253
4273
|
:knowledge_base_id,
|
|
4274
|
+
:media_id,
|
|
4254
4275
|
:output_format,
|
|
4255
4276
|
:user_context)
|
|
4256
4277
|
SENSITIVE = [:user_context]
|
|
@@ -4258,19 +4279,20 @@ module Aws::BedrockAgentRuntime
|
|
|
4258
4279
|
end
|
|
4259
4280
|
|
|
4260
4281
|
# @!attribute [rw] document_content_length
|
|
4261
|
-
# The size of the
|
|
4262
|
-
# pre-signed URL.
|
|
4282
|
+
# The size, in bytes, of the content available at the pre-signed URL.
|
|
4263
4283
|
# @return [Integer]
|
|
4264
4284
|
#
|
|
4265
4285
|
# @!attribute [rw] mime_type
|
|
4266
|
-
# The MIME type of the
|
|
4267
|
-
# original file type (for example, `application/pdf`)
|
|
4268
|
-
#
|
|
4286
|
+
# The MIME type of the returned content. For `RAW` format, this is the
|
|
4287
|
+
# original file type (for example, `application/pdf`), or the image
|
|
4288
|
+
# type (for example, `image/png`) if you specify `mediaId`. For
|
|
4289
|
+
# `EXTRACTED` format, this is always `application/json`.
|
|
4269
4290
|
# @return [String]
|
|
4270
4291
|
#
|
|
4271
4292
|
# @!attribute [rw] presigned_url
|
|
4272
|
-
# A pre-signed URL for downloading the document content
|
|
4273
|
-
# expires after 5
|
|
4293
|
+
# A pre-signed URL for downloading the document content, or the
|
|
4294
|
+
# selected image if you specify `mediaId`. The URL expires after 5
|
|
4295
|
+
# minutes.
|
|
4274
4296
|
# @return [String]
|
|
4275
4297
|
#
|
|
4276
4298
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GetDocumentContentResponse AWS API Documentation
|
data/sig/client.rbs
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -1201,6 +1201,7 @@ module Aws::BedrockAgentRuntime
|
|
|
1201
1201
|
attr_accessor data_source_id: ::String
|
|
1202
1202
|
attr_accessor document_id: ::String
|
|
1203
1203
|
attr_accessor knowledge_base_id: ::String
|
|
1204
|
+
attr_accessor media_id: ::String
|
|
1204
1205
|
attr_accessor output_format: ("RAW" | "EXTRACTED")
|
|
1205
1206
|
attr_accessor user_context: Types::UserContext
|
|
1206
1207
|
SENSITIVE: [:user_context]
|