aws-sdk-bedrockagentruntime 1.83.0 → 1.84.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64cab7e9c3d40e31a684ad2774b9ccea870a126d2b21f6bd10244b0e9d1092d2
4
- data.tar.gz: ea9a4ff59ad86272e546c0c0c301907b8611828df881277a7167e3a7847993c3
3
+ metadata.gz: 9191ec22c4f80374a7f7f6848053fcc13d4c2232dea708219457d52b799b4b79
4
+ data.tar.gz: 9efe31e8f7520001be6029a760a738c0c824da6efef311d3bb0dd46dc98c04a4
5
5
  SHA512:
6
- metadata.gz: 671c92315d2110a010dd7116136631fa99ac570dd65e75f3fc999b8923c75e50440cd82b06888d3900dbfd78019e61521e7476bd2a4861189c2bcd49331a85de
7
- data.tar.gz: a7e0478abe6a15ec26d2978e3a3a0e5ab16b4256fb285f3b968b38a496878f731f965d7c017808998b8855f55bdba04dfe592f18b8cb6582c2d79256ecd8e66f
6
+ metadata.gz: b5e3d037e41a7b91cf75f5eadda510d8f51ec263d5145b5b4f98ab950e02160daf34e809afce1ec7be4ff130bdf5e292eeea4a11bcdc66ffbfb12bf9817e4ef3
7
+ data.tar.gz: f6cba559cb61a2bb42ca1c176f1987994f47e8d716e0c31ce54afb7b663b2a67ca5b74a70ec6100275f832002898181f77fd03ad421d667af922a8a6d79aff05
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.84.0 (2026-10-19)
5
+ ------------------
6
+
7
+ * Feature - Adds support for applying a Retrieval Instruction, optionally by version, to AgenticRetrieveStream requests for Amazon Bedrock Knowledge Bases, and reports the applied instruction and version on the trace.
8
+
4
9
  1.83.0 (2026-09-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.83.0
1
+ 1.84.0
@@ -516,6 +516,9 @@ module Aws::BedrockAgentRuntime
516
516
  # @option params [Types::AgenticRetrievePolicyConfiguration] :policy_configuration
517
517
  # Policy configuration for guardrails and content filtering.
518
518
  #
519
+ # @option params [Types::AgenticRetrieveInstructionConfiguration] :retrieval_instruction_configuration
520
+ # A retrieval instruction to apply to this request.
521
+ #
519
522
  # @option params [required, Array<Types::AgenticRetriever>] :retrievers
520
523
  # The list of retrievers to use for agentic retrieval.
521
524
  #
@@ -793,6 +796,10 @@ module Aws::BedrockAgentRuntime
793
796
  # guardrail_version: "AgenticRetrieveBedrockGuardrailConfigurationGuardrailVersionString", # required
794
797
  # },
795
798
  # },
799
+ # retrieval_instruction_configuration: {
800
+ # retrieval_instruction_id: "RetrievalInstructionId", # required
801
+ # version: "RetrievalInstructionVersion",
802
+ # },
796
803
  # retrievers: [ # required
797
804
  # {
798
805
  # configuration: { # required
@@ -941,6 +948,8 @@ module Aws::BedrockAgentRuntime
941
948
  # event.attributes.actions[0].retrieve.input_query.text #=> String
942
949
  # event.attributes.actions[0].retrieve.source_retrievers #=> Array
943
950
  # event.attributes.actions[0].retrieve.source_retrievers[0].identifier #=> String
951
+ # event.attributes.applied_instruction.id #=> String
952
+ # event.attributes.applied_instruction.version #=> String
944
953
  # event.attributes.failures #=> Array
945
954
  # event.attributes.failures[0].message #=> String
946
955
  # event.attributes.message #=> String
@@ -8473,7 +8482,7 @@ module Aws::BedrockAgentRuntime
8473
8482
  tracer: tracer
8474
8483
  )
8475
8484
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
8476
- context[:gem_version] = '1.83.0'
8485
+ context[:gem_version] = '1.84.0'
8477
8486
  Seahorse::Client::Request.new(handlers, context)
8478
8487
  end
8479
8488
 
@@ -49,6 +49,7 @@ module Aws::BedrockAgentRuntime
49
49
  AgenticRetrieveAction = Shapes::StructureShape.new(name: 'AgenticRetrieveAction')
50
50
  AgenticRetrieveActionDetails = Shapes::StructureShape.new(name: 'AgenticRetrieveActionDetails')
51
51
  AgenticRetrieveActions = Shapes::ListShape.new(name: 'AgenticRetrieveActions')
52
+ AgenticRetrieveAppliedInstruction = Shapes::StructureShape.new(name: 'AgenticRetrieveAppliedInstruction')
52
53
  AgenticRetrieveBedrockGuardrailConfiguration = Shapes::StructureShape.new(name: 'AgenticRetrieveBedrockGuardrailConfiguration')
53
54
  AgenticRetrieveBedrockGuardrailConfigurationGuardrailIdString = Shapes::StringShape.new(name: 'AgenticRetrieveBedrockGuardrailConfigurationGuardrailIdString')
54
55
  AgenticRetrieveBedrockGuardrailConfigurationGuardrailVersionString = Shapes::StringShape.new(name: 'AgenticRetrieveBedrockGuardrailConfigurationGuardrailVersionString')
@@ -65,6 +66,7 @@ module Aws::BedrockAgentRuntime
65
66
  AgenticRetrieveFullDocExpansionDetails = Shapes::StructureShape.new(name: 'AgenticRetrieveFullDocExpansionDetails')
66
67
  AgenticRetrieveGeneratedResponse = Shapes::StructureShape.new(name: 'AgenticRetrieveGeneratedResponse')
67
68
  AgenticRetrieveGuardrailWarning = Shapes::StructureShape.new(name: 'AgenticRetrieveGuardrailWarning')
69
+ AgenticRetrieveInstructionConfiguration = Shapes::StructureShape.new(name: 'AgenticRetrieveInstructionConfiguration')
68
70
  AgenticRetrieveMemoryConfiguration = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryConfiguration')
69
71
  AgenticRetrieveMemoryMetadataFilter = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryMetadataFilter')
70
72
  AgenticRetrieveMemoryMetadataFilterLeft = Shapes::UnionShape.new(name: 'AgenticRetrieveMemoryMetadataFilterLeft')
@@ -590,6 +592,8 @@ module Aws::BedrockAgentRuntime
590
592
  RetrievalContent = Shapes::StructureShape.new(name: 'RetrievalContent')
591
593
  RetrievalFilter = Shapes::UnionShape.new(name: 'RetrievalFilter')
592
594
  RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
595
+ RetrievalInstructionId = Shapes::StringShape.new(name: 'RetrievalInstructionId')
596
+ RetrievalInstructionVersion = Shapes::StringShape.new(name: 'RetrievalInstructionVersion')
593
597
  RetrievalOverrides = Shapes::StructureShape.new(name: 'RetrievalOverrides')
594
598
  RetrievalOverridesMaxNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'RetrievalOverridesMaxNumberOfResultsInteger')
595
599
  RetrievalResultConfluenceLocation = Shapes::StructureShape.new(name: 'RetrievalResultConfluenceLocation')
@@ -800,6 +804,10 @@ module Aws::BedrockAgentRuntime
800
804
 
801
805
  AgenticRetrieveActions.member = Shapes::ShapeRef.new(shape: AgenticRetrieveAction)
802
806
 
807
+ AgenticRetrieveAppliedInstruction.add_member(:id, Shapes::ShapeRef.new(shape: RetrievalInstructionId, required: true, location_name: "id"))
808
+ AgenticRetrieveAppliedInstruction.add_member(:version, Shapes::ShapeRef.new(shape: RetrievalInstructionVersion, location_name: "version"))
809
+ AgenticRetrieveAppliedInstruction.struct_class = Types::AgenticRetrieveAppliedInstruction
810
+
803
811
  AgenticRetrieveBedrockGuardrailConfiguration.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: AgenticRetrieveBedrockGuardrailConfigurationGuardrailIdString, required: true, location_name: "guardrailId"))
804
812
  AgenticRetrieveBedrockGuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: AgenticRetrieveBedrockGuardrailConfigurationGuardrailVersionString, required: true, location_name: "guardrailVersion"))
805
813
  AgenticRetrieveBedrockGuardrailConfiguration.struct_class = Types::AgenticRetrieveBedrockGuardrailConfiguration
@@ -848,6 +856,10 @@ module Aws::BedrockAgentRuntime
848
856
  AgenticRetrieveGuardrailWarning.add_member(:version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "version"))
849
857
  AgenticRetrieveGuardrailWarning.struct_class = Types::AgenticRetrieveGuardrailWarning
850
858
 
859
+ AgenticRetrieveInstructionConfiguration.add_member(:retrieval_instruction_id, Shapes::ShapeRef.new(shape: RetrievalInstructionId, required: true, location_name: "retrievalInstructionId"))
860
+ AgenticRetrieveInstructionConfiguration.add_member(:version, Shapes::ShapeRef.new(shape: RetrievalInstructionVersion, location_name: "version"))
861
+ AgenticRetrieveInstructionConfiguration.struct_class = Types::AgenticRetrieveInstructionConfiguration
862
+
851
863
  AgenticRetrieveMemoryConfiguration.add_member(:memory_id, Shapes::ShapeRef.new(shape: AgentCoreMemoryId, required: true, location_name: "memoryId"))
852
864
  AgenticRetrieveMemoryConfiguration.add_member(:persistence_mode, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryPersistenceMode, location_name: "persistenceMode"))
853
865
  AgenticRetrieveMemoryConfiguration.add_member(:retrieval_configs, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryRetrievalConfigList, location_name: "retrievalConfigs"))
@@ -955,6 +967,7 @@ module Aws::BedrockAgentRuntime
955
967
  AgenticRetrieveStreamRequest.add_member(:messages, Shapes::ShapeRef.new(shape: AgenticRetrieveStreamRequestMessagesList, required: true, location_name: "messages"))
956
968
  AgenticRetrieveStreamRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
957
969
  AgenticRetrieveStreamRequest.add_member(:policy_configuration, Shapes::ShapeRef.new(shape: AgenticRetrievePolicyConfiguration, location_name: "policyConfiguration"))
970
+ AgenticRetrieveStreamRequest.add_member(:retrieval_instruction_configuration, Shapes::ShapeRef.new(shape: AgenticRetrieveInstructionConfiguration, location_name: "retrievalInstructionConfiguration"))
958
971
  AgenticRetrieveStreamRequest.add_member(:retrievers, Shapes::ShapeRef.new(shape: AgenticRetrieveStreamRequestRetrieversList, required: true, location_name: "retrievers"))
959
972
  AgenticRetrieveStreamRequest.add_member(:user_context, Shapes::ShapeRef.new(shape: UserContext, location_name: "userContext"))
960
973
  AgenticRetrieveStreamRequest.struct_class = Types::AgenticRetrieveStreamRequest
@@ -988,6 +1001,7 @@ module Aws::BedrockAgentRuntime
988
1001
  AgenticRetrieveTraceEvent.struct_class = Types::AgenticRetrieveTraceEvent
989
1002
 
990
1003
  AgenticRetrieveTraceEventAttributes.add_member(:actions, Shapes::ShapeRef.new(shape: AgenticRetrieveActions, location_name: "actions"))
1004
+ AgenticRetrieveTraceEventAttributes.add_member(:applied_instruction, Shapes::ShapeRef.new(shape: AgenticRetrieveAppliedInstruction, location_name: "appliedInstruction"))
991
1005
  AgenticRetrieveTraceEventAttributes.add_member(:failures, Shapes::ShapeRef.new(shape: AgenticRetrieveFailures, location_name: "failures"))
992
1006
  AgenticRetrieveTraceEventAttributes.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
993
1007
  AgenticRetrieveTraceEventAttributes.add_member(:retrieval_metadata, Shapes::ShapeRef.new(shape: AgenticRetrieveSourceMetadataList, location_name: "retrievalMetadata"))
@@ -423,6 +423,28 @@ module Aws::BedrockAgentRuntime
423
423
  include Aws::Structure
424
424
  end
425
425
 
426
+ # The retrieval instruction, identified by its ID and version, that was
427
+ # applied to the request.
428
+ #
429
+ # @!attribute [rw] id
430
+ # The identifier of the retrieval instruction applied.
431
+ # @return [String]
432
+ #
433
+ # @!attribute [rw] version
434
+ # The version that was applied: a version number, or DRAFT. The
435
+ # service reports this version whenever it reports appliedInstruction,
436
+ # including DRAFT when the request did not specify a version.
437
+ # @return [String]
438
+ #
439
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveAppliedInstruction AWS API Documentation
440
+ #
441
+ class AgenticRetrieveAppliedInstruction < Struct.new(
442
+ :id,
443
+ :version)
444
+ SENSITIVE = []
445
+ include Aws::Structure
446
+ end
447
+
426
448
  # Configuration for a Bedrock guardrail applied during agentic
427
449
  # retrieval.
428
450
  #
@@ -631,6 +653,29 @@ module Aws::BedrockAgentRuntime
631
653
  include Aws::Structure
632
654
  end
633
655
 
656
+ # The retrieval instruction, identified by its ID and optional version,
657
+ # to apply to this request.
658
+ #
659
+ # @!attribute [rw] retrieval_instruction_id
660
+ # The identifier of the retrieval instruction. The instruction must
661
+ # exist in the caller's account and its status must be ACTIVE.
662
+ # @return [String]
663
+ #
664
+ # @!attribute [rw] version
665
+ # The version of the retrieval instruction to apply: a version number,
666
+ # or DRAFT for the instruction's current reviewed content. When
667
+ # omitted, DRAFT is used. This default is permanent.
668
+ # @return [String]
669
+ #
670
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveInstructionConfiguration AWS API Documentation
671
+ #
672
+ class AgenticRetrieveInstructionConfiguration < Struct.new(
673
+ :retrieval_instruction_id,
674
+ :version)
675
+ SENSITIVE = []
676
+ include Aws::Structure
677
+ end
678
+
634
679
  # Specifies an AgentCore Memory resource and how this retrieval uses it.
635
680
  # Set sessionBinding to restore and continue a session. Set
636
681
  # retrievalConfigs to let the agent retrieve from long-term memory. You
@@ -1085,6 +1130,10 @@ module Aws::BedrockAgentRuntime
1085
1130
  # Policy configuration for guardrails and content filtering.
1086
1131
  # @return [Types::AgenticRetrievePolicyConfiguration]
1087
1132
  #
1133
+ # @!attribute [rw] retrieval_instruction_configuration
1134
+ # A retrieval instruction to apply to this request.
1135
+ # @return [Types::AgenticRetrieveInstructionConfiguration]
1136
+ #
1088
1137
  # @!attribute [rw] retrievers
1089
1138
  # The list of retrievers to use for agentic retrieval.
1090
1139
  # @return [Array<Types::AgenticRetriever>]
@@ -1104,6 +1153,7 @@ module Aws::BedrockAgentRuntime
1104
1153
  :messages,
1105
1154
  :next_token,
1106
1155
  :policy_configuration,
1156
+ :retrieval_instruction_configuration,
1107
1157
  :retrievers,
1108
1158
  :user_context)
1109
1159
  SENSITIVE = [:user_context]
@@ -1155,6 +1205,11 @@ module Aws::BedrockAgentRuntime
1155
1205
  # The list of actions taken during this step.
1156
1206
  # @return [Array<Types::AgenticRetrieveAction>]
1157
1207
  #
1208
+ # @!attribute [rw] applied_instruction
1209
+ # The agent reports the retrieval instruction applied to this request
1210
+ # on the first planning step.
1211
+ # @return [Types::AgenticRetrieveAppliedInstruction]
1212
+ #
1158
1213
  # @!attribute [rw] failures
1159
1214
  # Failures that occurred during this step.
1160
1215
  # @return [Array<Types::AgenticRetrieveFailure>]
@@ -1187,6 +1242,7 @@ module Aws::BedrockAgentRuntime
1187
1242
  #
1188
1243
  class AgenticRetrieveTraceEventAttributes < Struct.new(
1189
1244
  :actions,
1245
+ :applied_instruction,
1190
1246
  :failures,
1191
1247
  :message,
1192
1248
  :retrieval_metadata,
@@ -56,7 +56,7 @@ module Aws::BedrockAgentRuntime
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
58
58
 
59
- GEM_VERSION = '1.83.0'
59
+ GEM_VERSION = '1.84.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -161,6 +161,10 @@ module Aws
161
161
  guardrail_version: ::String
162
162
  }?
163
163
  },
164
+ ?retrieval_instruction_configuration: {
165
+ retrieval_instruction_id: ::String,
166
+ version: ::String?
167
+ },
164
168
  retrievers: Array[
165
169
  {
166
170
  configuration: {
data/sig/errors.rbs CHANGED
@@ -11,37 +11,37 @@ module Aws
11
11
  class ServiceError < ::Aws::Errors::ServiceError
12
12
  end
13
13
 
14
- class AccessDeniedException < ::Aws::Errors::ServiceError
14
+ class AccessDeniedException < ServiceError
15
15
  def message: () -> ::String
16
16
  end
17
- class BadGatewayException < ::Aws::Errors::ServiceError
17
+ class BadGatewayException < ServiceError
18
18
  def message: () -> ::String
19
19
  def resource_name: () -> ::String
20
20
  end
21
- class ConflictException < ::Aws::Errors::ServiceError
21
+ class ConflictException < ServiceError
22
22
  def message: () -> ::String
23
23
  end
24
- class DependencyFailedException < ::Aws::Errors::ServiceError
24
+ class DependencyFailedException < ServiceError
25
25
  def message: () -> ::String
26
26
  def resource_name: () -> ::String
27
27
  end
28
- class InternalServerException < ::Aws::Errors::ServiceError
28
+ class InternalServerException < ServiceError
29
29
  def message: () -> ::String
30
30
  def reason: () -> ::String
31
31
  end
32
- class ModelNotReadyException < ::Aws::Errors::ServiceError
32
+ class ModelNotReadyException < ServiceError
33
33
  def message: () -> ::String
34
34
  end
35
- class ResourceNotFoundException < ::Aws::Errors::ServiceError
35
+ class ResourceNotFoundException < ServiceError
36
36
  def message: () -> ::String
37
37
  end
38
- class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
38
+ class ServiceQuotaExceededException < ServiceError
39
39
  def message: () -> ::String
40
40
  end
41
- class ThrottlingException < ::Aws::Errors::ServiceError
41
+ class ThrottlingException < ServiceError
42
42
  def message: () -> ::String
43
43
  end
44
- class ValidationException < ::Aws::Errors::ServiceError
44
+ class ValidationException < ServiceError
45
45
  def message: () -> ::String
46
46
  end
47
47
  end
data/sig/types.rbs CHANGED
@@ -113,6 +113,12 @@ module Aws::BedrockAgentRuntime
113
113
  SENSITIVE: [:input_query]
114
114
  end
115
115
 
116
+ class AgenticRetrieveAppliedInstruction
117
+ attr_accessor id: ::String
118
+ attr_accessor version: ::String
119
+ SENSITIVE: []
120
+ end
121
+
116
122
  class AgenticRetrieveBedrockGuardrailConfiguration
117
123
  attr_accessor guardrail_id: ::String
118
124
  attr_accessor guardrail_version: ::String
@@ -175,6 +181,12 @@ module Aws::BedrockAgentRuntime
175
181
  SENSITIVE: []
176
182
  end
177
183
 
184
+ class AgenticRetrieveInstructionConfiguration
185
+ attr_accessor retrieval_instruction_id: ::String
186
+ attr_accessor version: ::String
187
+ SENSITIVE: []
188
+ end
189
+
178
190
  class AgenticRetrieveMemoryConfiguration
179
191
  attr_accessor memory_id: ::String
180
192
  attr_accessor persistence_mode: ("DEFAULT" | "NONE")
@@ -316,6 +328,7 @@ module Aws::BedrockAgentRuntime
316
328
  attr_accessor messages: ::Array[Types::AgenticRetrieveMessage]
317
329
  attr_accessor next_token: ::String
318
330
  attr_accessor policy_configuration: Types::AgenticRetrievePolicyConfiguration
331
+ attr_accessor retrieval_instruction_configuration: Types::AgenticRetrieveInstructionConfiguration
319
332
  attr_accessor retrievers: ::Array[Types::AgenticRetriever]
320
333
  attr_accessor user_context: Types::UserContext
321
334
  SENSITIVE: [:user_context]
@@ -336,6 +349,7 @@ module Aws::BedrockAgentRuntime
336
349
 
337
350
  class AgenticRetrieveTraceEventAttributes
338
351
  attr_accessor actions: ::Array[Types::AgenticRetrieveAction]
352
+ attr_accessor applied_instruction: Types::AgenticRetrieveAppliedInstruction
339
353
  attr_accessor failures: ::Array[Types::AgenticRetrieveFailure]
340
354
  attr_accessor message: ::String
341
355
  attr_accessor retrieval_metadata: ::Array[Types::AgenticRetrieveSourceMetadata]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.83.0
4
+ version: 1.84.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.256.0
21
+ version: 3.258.0
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.256.0
31
+ version: 3.258.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement