aws-sdk-bedrockagentruntime 1.79.0 → 1.80.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: 4eb4959009f8c6687e35f5cbd2afe31cfa973fd33d82d858aad099fef3363f34
4
- data.tar.gz: e64a01355716635a665d82034a31e1580f3827905d1dbd4e4e970695b02d541e
3
+ metadata.gz: e0ef58ad0562ed2fe5cd46dd81e34603a964b80307d443b0a2e15f0943110879
4
+ data.tar.gz: 18bf2741643afbc47ab81a29325a3c559ec209b5b891cdb250565fd6c8750446
5
5
  SHA512:
6
- metadata.gz: 993b27eb8ff62be0b637ebb43faba605a7912cf4b7ae7f74d8ac9a304d18cd15a52b954dc87644b0d06ca3e63bac98568f95f3b496198bba8196be5ea4ce00dc
7
- data.tar.gz: 785e6a6416805fcbe9ba0fa389e9f7f9ec2effc286c1ed64caca5320226524d873e0b5904374331fa889229b9ee7574e11cc85766609a21a99c7151487bbadba
6
+ metadata.gz: d0cdd24b354fb95aab94b7142b78a31023317b212088d7781fcc40e3264afa200edeafe4b4f510e0740ad10ee69493a33e41861124733c7c2295c5b296f404f8
7
+ data.tar.gz: 201283cf416a858b94dd887deed683a842cb239c0ceb691b09a85f7692ddb5f115240235ca21f8b94cc5a00e70b42f7ee34f5035cff762eff404de59242320cf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.80.0 (2026-08-17)
5
+ ------------------
6
+
7
+ * Feature - AgenticRetrieveStream API now supports Amazon Bedrock AgentCore Memory. Use the new memoryConfiguration parameter to continue a session from short-term memory and retrieve from long-term memory.
8
+
4
9
  1.79.0 (2026-08-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.79.0
1
+ 1.80.0
@@ -503,6 +503,10 @@ module Aws::BedrockAgentRuntime
503
503
  # @option params [Boolean] :generate_response
504
504
  # Whether to generate a response based on the retrieved results.
505
505
  #
506
+ # @option params [Types::AgenticRetrieveMemoryConfiguration] :memory_configuration
507
+ # The configuration for using an Amazon Bedrock AgentCore Memory
508
+ # resource with this retrieval.
509
+ #
506
510
  # @option params [required, Array<Types::AgenticRetrieveMessage>] :messages
507
511
  # The list of messages for the agentic retrieval conversation.
508
512
  #
@@ -737,6 +741,37 @@ module Aws::BedrockAgentRuntime
737
741
  # reranking_model_type: "CUSTOM", # accepts CUSTOM, MANAGED, NONE
738
742
  # },
739
743
  # generate_response: false,
744
+ # memory_configuration: {
745
+ # memory_id: "AgentCoreMemoryId", # required
746
+ # persistence_mode: "DEFAULT", # accepts DEFAULT, NONE
747
+ # retrieval_configs: [
748
+ # {
749
+ # metadata_filters: [
750
+ # {
751
+ # left: { # required
752
+ # metadata_key: "AgenticRetrieveMemoryMetadataKey",
753
+ # },
754
+ # operator: "EQUALS_TO", # required, accepts EQUALS_TO, EXISTS, NOT_EXISTS, BEFORE, AFTER, CONTAINS, GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS
755
+ # right: {
756
+ # metadata_value: {
757
+ # date_time_value: Time.now,
758
+ # number_value: 1.0,
759
+ # string_list_value: ["AgenticRetrieveMemoryMetadataStringListItem"],
760
+ # string_value: "AgenticRetrieveMemoryMetadataStringValue",
761
+ # },
762
+ # },
763
+ # },
764
+ # ],
765
+ # namespace: "MemoryNamespace",
766
+ # namespace_path: "MemoryNamespace",
767
+ # strategy_id: "MemoryStrategyId",
768
+ # },
769
+ # ],
770
+ # session_binding: {
771
+ # actor_id: "AgentCoreMemoryActorId", # required
772
+ # session_id: "AgentCoreMemorySessionId", # required
773
+ # },
774
+ # },
740
775
  # messages: [ # required
741
776
  # {
742
777
  # content: { # required
@@ -892,6 +927,11 @@ module Aws::BedrockAgentRuntime
892
927
  # event.attributes.actions #=> Array
893
928
  # event.attributes.actions[0].full_document_expansion.document_id #=> String
894
929
  # event.attributes.actions[0].full_document_expansion.source_retriever.identifier #=> String
930
+ # event.attributes.actions[0].memory_retrieve.input_query.text #=> String
931
+ # event.attributes.actions[0].memory_retrieve.memory_id #=> String
932
+ # event.attributes.actions[0].memory_retrieve.namespace #=> String
933
+ # event.attributes.actions[0].memory_retrieve.namespace_path #=> String
934
+ # event.attributes.actions[0].memory_retrieve.strategy_id #=> String
895
935
  # event.attributes.actions[0].retrieve.input_query.text #=> String
896
936
  # event.attributes.actions[0].retrieve.source_retrievers #=> Array
897
937
  # event.attributes.actions[0].retrieve.source_retrievers[0].identifier #=> String
@@ -900,7 +940,7 @@ module Aws::BedrockAgentRuntime
900
940
  # event.attributes.message #=> String
901
941
  # event.attributes.retrieval_metadata #=> Array
902
942
  # event.attributes.retrieval_metadata[0].identifier #=> String
903
- # event.attributes.retrieval_metadata[0].retrieval_type #=> String, one of "BedrockKnowledgeBase"
943
+ # event.attributes.retrieval_metadata[0].retrieval_type #=> String, one of "BedrockKnowledgeBase", "BedrockAgentCoreMemory"
904
944
  # event.attributes.retrieval_response #=> Array
905
945
  # event.attributes.retrieval_response[0].content.byte_content #=> String
906
946
  # event.attributes.retrieval_response[0].content.mime_type #=> String
@@ -908,7 +948,7 @@ module Aws::BedrockAgentRuntime
908
948
  # event.attributes.retrieval_response[0].metadata #=> Hash
909
949
  # event.attributes.retrieval_response[0].source_retriever.identifier #=> String
910
950
  # event.attributes.status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED"
911
- # event.attributes.step #=> String, one of "Planning", "Retrieval", "SpeculativeRetrieval", "FullDocumentExpansion"
951
+ # event.attributes.step #=> String, one of "Planning", "Retrieval", "SpeculativeRetrieval", "FullDocumentExpansion", "SessionHistoryLoad"
912
952
  # event.attributes.warnings #=> Array
913
953
  # event.attributes.warnings[0].guardrail.action #=> String, one of "INTERVENED", "NONE"
914
954
  # event.attributes.warnings[0].guardrail.id #=> String
@@ -8427,7 +8467,7 @@ module Aws::BedrockAgentRuntime
8427
8467
  tracer: tracer
8428
8468
  )
8429
8469
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
8430
- context[:gem_version] = '1.79.0'
8470
+ context[:gem_version] = '1.80.0'
8431
8471
  Seahorse::Client::Request.new(handlers, context)
8432
8472
  end
8433
8473
 
@@ -40,6 +40,9 @@ module Aws::BedrockAgentRuntime
40
40
  AgentCollaboratorInvocationOutput = Shapes::StructureShape.new(name: 'AgentCollaboratorInvocationOutput')
41
41
  AgentCollaboratorOutputPayload = Shapes::StructureShape.new(name: 'AgentCollaboratorOutputPayload')
42
42
  AgentCollaboratorPayloadString = Shapes::StringShape.new(name: 'AgentCollaboratorPayloadString')
43
+ AgentCoreMemoryActorId = Shapes::StringShape.new(name: 'AgentCoreMemoryActorId')
44
+ AgentCoreMemoryId = Shapes::StringShape.new(name: 'AgentCoreMemoryId')
45
+ AgentCoreMemorySessionId = Shapes::StringShape.new(name: 'AgentCoreMemorySessionId')
43
46
  AgentId = Shapes::StringShape.new(name: 'AgentId')
44
47
  AgentTraces = Shapes::ListShape.new(name: 'AgentTraces')
45
48
  AgentVersion = Shapes::StringShape.new(name: 'AgentVersion')
@@ -62,6 +65,22 @@ module Aws::BedrockAgentRuntime
62
65
  AgenticRetrieveFullDocExpansionDetails = Shapes::StructureShape.new(name: 'AgenticRetrieveFullDocExpansionDetails')
63
66
  AgenticRetrieveGeneratedResponse = Shapes::StructureShape.new(name: 'AgenticRetrieveGeneratedResponse')
64
67
  AgenticRetrieveGuardrailWarning = Shapes::StructureShape.new(name: 'AgenticRetrieveGuardrailWarning')
68
+ AgenticRetrieveMemoryConfiguration = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryConfiguration')
69
+ AgenticRetrieveMemoryMetadataFilter = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryMetadataFilter')
70
+ AgenticRetrieveMemoryMetadataFilterLeft = Shapes::UnionShape.new(name: 'AgenticRetrieveMemoryMetadataFilterLeft')
71
+ AgenticRetrieveMemoryMetadataFilterList = Shapes::ListShape.new(name: 'AgenticRetrieveMemoryMetadataFilterList')
72
+ AgenticRetrieveMemoryMetadataFilterOperator = Shapes::StringShape.new(name: 'AgenticRetrieveMemoryMetadataFilterOperator')
73
+ AgenticRetrieveMemoryMetadataFilterRight = Shapes::UnionShape.new(name: 'AgenticRetrieveMemoryMetadataFilterRight')
74
+ AgenticRetrieveMemoryMetadataKey = Shapes::StringShape.new(name: 'AgenticRetrieveMemoryMetadataKey')
75
+ AgenticRetrieveMemoryMetadataStringList = Shapes::ListShape.new(name: 'AgenticRetrieveMemoryMetadataStringList')
76
+ AgenticRetrieveMemoryMetadataStringListItem = Shapes::StringShape.new(name: 'AgenticRetrieveMemoryMetadataStringListItem')
77
+ AgenticRetrieveMemoryMetadataStringValue = Shapes::StringShape.new(name: 'AgenticRetrieveMemoryMetadataStringValue')
78
+ AgenticRetrieveMemoryMetadataValue = Shapes::UnionShape.new(name: 'AgenticRetrieveMemoryMetadataValue')
79
+ AgenticRetrieveMemoryPersistenceMode = Shapes::StringShape.new(name: 'AgenticRetrieveMemoryPersistenceMode')
80
+ AgenticRetrieveMemoryRetrievalConfig = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryRetrievalConfig')
81
+ AgenticRetrieveMemoryRetrievalConfigList = Shapes::ListShape.new(name: 'AgenticRetrieveMemoryRetrievalConfigList')
82
+ AgenticRetrieveMemoryRetrieveDetails = Shapes::StructureShape.new(name: 'AgenticRetrieveMemoryRetrieveDetails')
83
+ AgenticRetrieveMemorySessionBinding = Shapes::StructureShape.new(name: 'AgenticRetrieveMemorySessionBinding')
65
84
  AgenticRetrieveMessage = Shapes::StructureShape.new(name: 'AgenticRetrieveMessage')
66
85
  AgenticRetrieveMessageContent = Shapes::StructureShape.new(name: 'AgenticRetrieveMessageContent')
67
86
  AgenticRetrieveMetadata = Shapes::MapShape.new(name: 'AgenticRetrieveMetadata')
@@ -433,7 +452,9 @@ module Aws::BedrockAgentRuntime
433
452
  Memories = Shapes::ListShape.new(name: 'Memories')
434
453
  Memory = Shapes::UnionShape.new(name: 'Memory')
435
454
  MemoryId = Shapes::StringShape.new(name: 'MemoryId')
455
+ MemoryNamespace = Shapes::StringShape.new(name: 'MemoryNamespace')
436
456
  MemorySessionSummary = Shapes::StructureShape.new(name: 'MemorySessionSummary')
457
+ MemoryStrategyId = Shapes::StringShape.new(name: 'MemoryStrategyId')
437
458
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
438
459
  Message = Shapes::StructureShape.new(name: 'Message')
439
460
  Messages = Shapes::ListShape.new(name: 'Messages')
@@ -664,6 +685,7 @@ module Aws::BedrockAgentRuntime
664
685
  TextToSqlConfigurationType = Shapes::StringShape.new(name: 'TextToSqlConfigurationType')
665
686
  TextToSqlKnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'TextToSqlKnowledgeBaseConfiguration')
666
687
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
688
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
667
689
  TopK = Shapes::IntegerShape.new(name: 'TopK')
668
690
  TopP = Shapes::FloatShape.new(name: 'TopP')
669
691
  Trace = Shapes::UnionShape.new(name: 'Trace')
@@ -765,6 +787,7 @@ module Aws::BedrockAgentRuntime
765
787
  AgentTraces.member = Shapes::ShapeRef.new(shape: TracePart, event: true)
766
788
 
767
789
  AgenticRetrieveAction.add_member(:full_document_expansion, Shapes::ShapeRef.new(shape: AgenticRetrieveFullDocExpansionDetails, location_name: "fullDocumentExpansion"))
790
+ AgenticRetrieveAction.add_member(:memory_retrieve, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryRetrieveDetails, location_name: "memoryRetrieve"))
768
791
  AgenticRetrieveAction.add_member(:retrieve, Shapes::ShapeRef.new(shape: AgenticRetrieveActionDetails, location_name: "retrieve"))
769
792
  AgenticRetrieveAction.struct_class = Types::AgenticRetrieveAction
770
793
 
@@ -822,6 +845,64 @@ module Aws::BedrockAgentRuntime
822
845
  AgenticRetrieveGuardrailWarning.add_member(:version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "version"))
823
846
  AgenticRetrieveGuardrailWarning.struct_class = Types::AgenticRetrieveGuardrailWarning
824
847
 
848
+ AgenticRetrieveMemoryConfiguration.add_member(:memory_id, Shapes::ShapeRef.new(shape: AgentCoreMemoryId, required: true, location_name: "memoryId"))
849
+ AgenticRetrieveMemoryConfiguration.add_member(:persistence_mode, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryPersistenceMode, location_name: "persistenceMode"))
850
+ AgenticRetrieveMemoryConfiguration.add_member(:retrieval_configs, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryRetrievalConfigList, location_name: "retrievalConfigs"))
851
+ AgenticRetrieveMemoryConfiguration.add_member(:session_binding, Shapes::ShapeRef.new(shape: AgenticRetrieveMemorySessionBinding, location_name: "sessionBinding"))
852
+ AgenticRetrieveMemoryConfiguration.struct_class = Types::AgenticRetrieveMemoryConfiguration
853
+
854
+ AgenticRetrieveMemoryMetadataFilter.add_member(:left, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataFilterLeft, required: true, location_name: "left"))
855
+ AgenticRetrieveMemoryMetadataFilter.add_member(:operator, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataFilterOperator, required: true, location_name: "operator"))
856
+ AgenticRetrieveMemoryMetadataFilter.add_member(:right, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataFilterRight, location_name: "right"))
857
+ AgenticRetrieveMemoryMetadataFilter.struct_class = Types::AgenticRetrieveMemoryMetadataFilter
858
+
859
+ AgenticRetrieveMemoryMetadataFilterLeft.add_member(:metadata_key, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataKey, location_name: "metadataKey"))
860
+ AgenticRetrieveMemoryMetadataFilterLeft.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
861
+ AgenticRetrieveMemoryMetadataFilterLeft.add_member_subclass(:metadata_key, Types::AgenticRetrieveMemoryMetadataFilterLeft::MetadataKey)
862
+ AgenticRetrieveMemoryMetadataFilterLeft.add_member_subclass(:unknown, Types::AgenticRetrieveMemoryMetadataFilterLeft::Unknown)
863
+ AgenticRetrieveMemoryMetadataFilterLeft.struct_class = Types::AgenticRetrieveMemoryMetadataFilterLeft
864
+
865
+ AgenticRetrieveMemoryMetadataFilterList.member = Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataFilter)
866
+
867
+ AgenticRetrieveMemoryMetadataFilterRight.add_member(:metadata_value, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataValue, location_name: "metadataValue"))
868
+ AgenticRetrieveMemoryMetadataFilterRight.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
869
+ AgenticRetrieveMemoryMetadataFilterRight.add_member_subclass(:metadata_value, Types::AgenticRetrieveMemoryMetadataFilterRight::MetadataValue)
870
+ AgenticRetrieveMemoryMetadataFilterRight.add_member_subclass(:unknown, Types::AgenticRetrieveMemoryMetadataFilterRight::Unknown)
871
+ AgenticRetrieveMemoryMetadataFilterRight.struct_class = Types::AgenticRetrieveMemoryMetadataFilterRight
872
+
873
+ AgenticRetrieveMemoryMetadataStringList.member = Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataStringListItem)
874
+
875
+ AgenticRetrieveMemoryMetadataValue.add_member(:date_time_value, Shapes::ShapeRef.new(shape: Timestamp, location_name: "dateTimeValue"))
876
+ AgenticRetrieveMemoryMetadataValue.add_member(:number_value, Shapes::ShapeRef.new(shape: Double, location_name: "numberValue"))
877
+ AgenticRetrieveMemoryMetadataValue.add_member(:string_list_value, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataStringList, location_name: "stringListValue"))
878
+ AgenticRetrieveMemoryMetadataValue.add_member(:string_value, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataStringValue, location_name: "stringValue"))
879
+ AgenticRetrieveMemoryMetadataValue.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
880
+ AgenticRetrieveMemoryMetadataValue.add_member_subclass(:date_time_value, Types::AgenticRetrieveMemoryMetadataValue::DateTimeValue)
881
+ AgenticRetrieveMemoryMetadataValue.add_member_subclass(:number_value, Types::AgenticRetrieveMemoryMetadataValue::NumberValue)
882
+ AgenticRetrieveMemoryMetadataValue.add_member_subclass(:string_list_value, Types::AgenticRetrieveMemoryMetadataValue::StringListValue)
883
+ AgenticRetrieveMemoryMetadataValue.add_member_subclass(:string_value, Types::AgenticRetrieveMemoryMetadataValue::StringValue)
884
+ AgenticRetrieveMemoryMetadataValue.add_member_subclass(:unknown, Types::AgenticRetrieveMemoryMetadataValue::Unknown)
885
+ AgenticRetrieveMemoryMetadataValue.struct_class = Types::AgenticRetrieveMemoryMetadataValue
886
+
887
+ AgenticRetrieveMemoryRetrievalConfig.add_member(:metadata_filters, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryMetadataFilterList, location_name: "metadataFilters"))
888
+ AgenticRetrieveMemoryRetrievalConfig.add_member(:namespace, Shapes::ShapeRef.new(shape: MemoryNamespace, location_name: "namespace"))
889
+ AgenticRetrieveMemoryRetrievalConfig.add_member(:namespace_path, Shapes::ShapeRef.new(shape: MemoryNamespace, location_name: "namespacePath"))
890
+ AgenticRetrieveMemoryRetrievalConfig.add_member(:strategy_id, Shapes::ShapeRef.new(shape: MemoryStrategyId, location_name: "strategyId"))
891
+ AgenticRetrieveMemoryRetrievalConfig.struct_class = Types::AgenticRetrieveMemoryRetrievalConfig
892
+
893
+ AgenticRetrieveMemoryRetrievalConfigList.member = Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryRetrievalConfig)
894
+
895
+ AgenticRetrieveMemoryRetrieveDetails.add_member(:input_query, Shapes::ShapeRef.new(shape: AgenticRetrieveMessageContent, required: true, location_name: "inputQuery"))
896
+ AgenticRetrieveMemoryRetrieveDetails.add_member(:memory_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "memoryId"))
897
+ AgenticRetrieveMemoryRetrieveDetails.add_member(:namespace, Shapes::ShapeRef.new(shape: String, location_name: "namespace"))
898
+ AgenticRetrieveMemoryRetrieveDetails.add_member(:namespace_path, Shapes::ShapeRef.new(shape: String, location_name: "namespacePath"))
899
+ AgenticRetrieveMemoryRetrieveDetails.add_member(:strategy_id, Shapes::ShapeRef.new(shape: String, location_name: "strategyId"))
900
+ AgenticRetrieveMemoryRetrieveDetails.struct_class = Types::AgenticRetrieveMemoryRetrieveDetails
901
+
902
+ AgenticRetrieveMemorySessionBinding.add_member(:actor_id, Shapes::ShapeRef.new(shape: AgentCoreMemoryActorId, required: true, location_name: "actorId"))
903
+ AgenticRetrieveMemorySessionBinding.add_member(:session_id, Shapes::ShapeRef.new(shape: AgentCoreMemorySessionId, required: true, location_name: "sessionId"))
904
+ AgenticRetrieveMemorySessionBinding.struct_class = Types::AgenticRetrieveMemorySessionBinding
905
+
825
906
  AgenticRetrieveMessage.add_member(:content, Shapes::ShapeRef.new(shape: AgenticRetrieveMessageContent, required: true, location_name: "content"))
826
907
  AgenticRetrieveMessage.add_member(:role, Shapes::ShapeRef.new(shape: ConversationRole, required: true, location_name: "role"))
827
908
  AgenticRetrieveMessage.struct_class = Types::AgenticRetrieveMessage
@@ -867,6 +948,7 @@ module Aws::BedrockAgentRuntime
867
948
 
868
949
  AgenticRetrieveStreamRequest.add_member(:agentic_retrieve_configuration, Shapes::ShapeRef.new(shape: AgenticRetrieveConfiguration, required: true, location_name: "agenticRetrieveConfiguration"))
869
950
  AgenticRetrieveStreamRequest.add_member(:generate_response, Shapes::ShapeRef.new(shape: Boolean, location_name: "generateResponse"))
951
+ AgenticRetrieveStreamRequest.add_member(:memory_configuration, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryConfiguration, location_name: "memoryConfiguration"))
870
952
  AgenticRetrieveStreamRequest.add_member(:messages, Shapes::ShapeRef.new(shape: AgenticRetrieveStreamRequestMessagesList, required: true, location_name: "messages"))
871
953
  AgenticRetrieveStreamRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
872
954
  AgenticRetrieveStreamRequest.add_member(:policy_configuration, Shapes::ShapeRef.new(shape: AgenticRetrievePolicyConfiguration, location_name: "policyConfiguration"))
@@ -384,6 +384,11 @@ module Aws::BedrockAgentRuntime
384
384
  # Details of a full document expansion action.
385
385
  # @return [Types::AgenticRetrieveFullDocExpansionDetails]
386
386
  #
387
+ # @!attribute [rw] memory_retrieve
388
+ # The details of a long-term memory retrieval that the agent chose to
389
+ # perform.
390
+ # @return [Types::AgenticRetrieveMemoryRetrieveDetails]
391
+ #
387
392
  # @!attribute [rw] retrieve
388
393
  # Details of the retrieve action.
389
394
  # @return [Types::AgenticRetrieveActionDetails]
@@ -392,6 +397,7 @@ module Aws::BedrockAgentRuntime
392
397
  #
393
398
  class AgenticRetrieveAction < Struct.new(
394
399
  :full_document_expansion,
400
+ :memory_retrieve,
395
401
  :retrieve)
396
402
  SENSITIVE = []
397
403
  include Aws::Structure
@@ -625,6 +631,270 @@ module Aws::BedrockAgentRuntime
625
631
  include Aws::Structure
626
632
  end
627
633
 
634
+ # Specifies an AgentCore Memory resource and how this retrieval uses it.
635
+ # Set sessionBinding to restore and continue a session. Set
636
+ # retrievalConfigs to let the agent retrieve from long-term memory. You
637
+ # must specify at least one of the two.
638
+ #
639
+ # @!attribute [rw] memory_id
640
+ # The identifier of the AgentCore Memory resource to use. The resource
641
+ # must exist in your account and be in the ACTIVE state.
642
+ # @return [String]
643
+ #
644
+ # @!attribute [rw] persistence_mode
645
+ # Specifies whether the agent-generated answer is written back to the
646
+ # given short-term memory session, and applies only when
647
+ # sessionBinding is set. Valid values:
648
+ #
649
+ # * `DEFAULT` (default) – Specifies that the question and the
650
+ # agent-generated answer are persisted to the session as a single
651
+ # event. This value requires generateResponse to be true.
652
+ #
653
+ # * `NONE` – Specifies that the session is left unchanged.
654
+ # @return [String]
655
+ #
656
+ # @!attribute [rw] retrieval_configs
657
+ # Specifies the long-term memory configuration the agent can retrieve
658
+ # from. The agent decides whether to retrieve and composes its own
659
+ # query. This field currently accepts at most one entry.
660
+ # @return [Array<Types::AgenticRetrieveMemoryRetrievalConfig>]
661
+ #
662
+ # @!attribute [rw] session_binding
663
+ # The short-term memory session whose history is restored for this
664
+ # retrieval. To persist the agent-generated answer to the session,
665
+ # omit persistenceMode or set it to DEFAULT. To leave the session
666
+ # unchanged, set persistenceMode to NONE. Supply session history
667
+ # through the existing messages parameter or through short-term
668
+ # memory, but not both.
669
+ # @return [Types::AgenticRetrieveMemorySessionBinding]
670
+ #
671
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryConfiguration AWS API Documentation
672
+ #
673
+ class AgenticRetrieveMemoryConfiguration < Struct.new(
674
+ :memory_id,
675
+ :persistence_mode,
676
+ :retrieval_configs,
677
+ :session_binding)
678
+ SENSITIVE = []
679
+ include Aws::Structure
680
+ end
681
+
682
+ # A metadata filter expression, in the form accepted by the AgentCore
683
+ # Memory RetrieveMemoryRecords operation. The expression has a left
684
+ # operand that names the metadata key, an operator, and a right operand.
685
+ # For the EXISTS and NOT\_EXISTS operators, omit the right operand.
686
+ #
687
+ # @!attribute [rw] left
688
+ # The metadata key that the expression evaluates.
689
+ # @return [Types::AgenticRetrieveMemoryMetadataFilterLeft]
690
+ #
691
+ # @!attribute [rw] operator
692
+ # The relationship that the metadata key and value must have for a
693
+ # memory record to match.
694
+ # @return [String]
695
+ #
696
+ # @!attribute [rw] right
697
+ # The value that the expression compares the metadata key against.
698
+ # Supply this value for every operator except EXISTS and NOT\_EXISTS.
699
+ # @return [Types::AgenticRetrieveMemoryMetadataFilterRight]
700
+ #
701
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryMetadataFilter AWS API Documentation
702
+ #
703
+ class AgenticRetrieveMemoryMetadataFilter < Struct.new(
704
+ :left,
705
+ :operator,
706
+ :right)
707
+ SENSITIVE = []
708
+ include Aws::Structure
709
+ end
710
+
711
+ # The left operand of a metadata filter expression. Set exactly one
712
+ # member.
713
+ #
714
+ # @note AgenticRetrieveMemoryMetadataFilterLeft is a union - when making an API calls you must set exactly one of the members.
715
+ #
716
+ # @!attribute [rw] metadata_key
717
+ # The metadata key to filter on.
718
+ # @return [String]
719
+ #
720
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryMetadataFilterLeft AWS API Documentation
721
+ #
722
+ class AgenticRetrieveMemoryMetadataFilterLeft < Struct.new(
723
+ :metadata_key,
724
+ :unknown)
725
+ SENSITIVE = []
726
+ include Aws::Structure
727
+ include Aws::Structure::Union
728
+
729
+ class MetadataKey < AgenticRetrieveMemoryMetadataFilterLeft; end
730
+ class Unknown < AgenticRetrieveMemoryMetadataFilterLeft; end
731
+ end
732
+
733
+ # The right operand of a metadata filter expression. Set exactly one
734
+ # member.
735
+ #
736
+ # @note AgenticRetrieveMemoryMetadataFilterRight is a union - when making an API calls you must set exactly one of the members.
737
+ #
738
+ # @!attribute [rw] metadata_value
739
+ # The value to compare the metadata key against.
740
+ # @return [Types::AgenticRetrieveMemoryMetadataValue]
741
+ #
742
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryMetadataFilterRight AWS API Documentation
743
+ #
744
+ class AgenticRetrieveMemoryMetadataFilterRight < Struct.new(
745
+ :metadata_value,
746
+ :unknown)
747
+ SENSITIVE = []
748
+ include Aws::Structure
749
+ include Aws::Structure::Union
750
+
751
+ class MetadataValue < AgenticRetrieveMemoryMetadataFilterRight; end
752
+ class Unknown < AgenticRetrieveMemoryMetadataFilterRight; end
753
+ end
754
+
755
+ # A metadata value that a filter expression compares against. Set
756
+ # exactly one member.
757
+ #
758
+ # @note AgenticRetrieveMemoryMetadataValue is a union - when making an API calls you must set exactly one of the members.
759
+ #
760
+ # @!attribute [rw] date_time_value
761
+ # A timestamp value in ISO 8601 UTC format.
762
+ # @return [Time]
763
+ #
764
+ # @!attribute [rw] number_value
765
+ # A numeric value.
766
+ # @return [Float]
767
+ #
768
+ # @!attribute [rw] string_list_value
769
+ # A list of string values.
770
+ # @return [Array<String>]
771
+ #
772
+ # @!attribute [rw] string_value
773
+ # A string value.
774
+ # @return [String]
775
+ #
776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryMetadataValue AWS API Documentation
777
+ #
778
+ class AgenticRetrieveMemoryMetadataValue < Struct.new(
779
+ :date_time_value,
780
+ :number_value,
781
+ :string_list_value,
782
+ :string_value,
783
+ :unknown)
784
+ SENSITIVE = []
785
+ include Aws::Structure
786
+ include Aws::Structure::Union
787
+
788
+ class DateTimeValue < AgenticRetrieveMemoryMetadataValue; end
789
+ class NumberValue < AgenticRetrieveMemoryMetadataValue; end
790
+ class StringListValue < AgenticRetrieveMemoryMetadataValue; end
791
+ class StringValue < AgenticRetrieveMemoryMetadataValue; end
792
+ class Unknown < AgenticRetrieveMemoryMetadataValue; end
793
+ end
794
+
795
+ # The long-term memory namespace that the agent might retrieve memory
796
+ # records from, and the filters applied to that retrieval. You must
797
+ # specify either namespace or namespacePath.
798
+ #
799
+ # @!attribute [rw] metadata_filters
800
+ # The metadata filter expressions that restrict retrieval to matching
801
+ # memory records. You can specify a maximum of 5 expressions.
802
+ # @return [Array<Types::AgenticRetrieveMemoryMetadataFilter>]
803
+ #
804
+ # @!attribute [rw] namespace
805
+ # The namespace prefix to filter memory records by. The agent
806
+ # retrieves memory records in namespaces that start with the provided
807
+ # prefix. You must specify either namespace or namespacePath.
808
+ # @return [String]
809
+ #
810
+ # @!attribute [rw] namespace_path
811
+ # The parent namespace to use for hierarchical retrievals. The agent
812
+ # retrieves all memory records whose namespace falls under the same
813
+ # parent hierarchy. You must specify either namespace or
814
+ # namespacePath.
815
+ # @return [String]
816
+ #
817
+ # @!attribute [rw] strategy_id
818
+ # The extraction strategy ID that restricts retrieval to memory
819
+ # records produced by a single strategy. Omit this parameter to
820
+ # retrieve records from every strategy on the memory resource.
821
+ # @return [String]
822
+ #
823
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryRetrievalConfig AWS API Documentation
824
+ #
825
+ class AgenticRetrieveMemoryRetrievalConfig < Struct.new(
826
+ :metadata_filters,
827
+ :namespace,
828
+ :namespace_path,
829
+ :strategy_id)
830
+ SENSITIVE = []
831
+ include Aws::Structure
832
+ end
833
+
834
+ # A long-term memory retrieval that the agent chose to perform. The
835
+ # record reports the query and the namespace. The corresponding
836
+ # Retrieval step reports the results.
837
+ #
838
+ # @!attribute [rw] input_query
839
+ # The query that the agent composed.
840
+ # @return [Types::AgenticRetrieveMessageContent]
841
+ #
842
+ # @!attribute [rw] memory_id
843
+ # The identifier of the AgentCore Memory resource retrieved from.
844
+ # @return [String]
845
+ #
846
+ # @!attribute [rw] namespace
847
+ # The namespace prefix retrieved from, as supplied in the request.
848
+ # This field is present when the request specified namespace.
849
+ # @return [String]
850
+ #
851
+ # @!attribute [rw] namespace_path
852
+ # The parent namespace retrieved from hierarchically, as supplied in
853
+ # the request. This field is present when the request specified
854
+ # namespacePath.
855
+ # @return [String]
856
+ #
857
+ # @!attribute [rw] strategy_id
858
+ # The extraction strategy that restricted retrieval, if the request
859
+ # specified one.
860
+ # @return [String]
861
+ #
862
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemoryRetrieveDetails AWS API Documentation
863
+ #
864
+ class AgenticRetrieveMemoryRetrieveDetails < Struct.new(
865
+ :input_query,
866
+ :memory_id,
867
+ :namespace,
868
+ :namespace_path,
869
+ :strategy_id)
870
+ SENSITIVE = [:input_query]
871
+ include Aws::Structure
872
+ end
873
+
874
+ # The short-term memory session that this retrieval reads from and
875
+ # writes to.
876
+ #
877
+ # @!attribute [rw] actor_id
878
+ # The identifier of the end user or agent that the session belongs to.
879
+ # This identifier scopes session history so that one actor's history
880
+ # is never returned for another. You are responsible for sending the
881
+ # correct actor value.
882
+ # @return [String]
883
+ #
884
+ # @!attribute [rw] session_id
885
+ # The identifier of the session to restore and continue. You are
886
+ # responsible for sending the correct session value.
887
+ # @return [String]
888
+ #
889
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveMemorySessionBinding AWS API Documentation
890
+ #
891
+ class AgenticRetrieveMemorySessionBinding < Struct.new(
892
+ :actor_id,
893
+ :session_id)
894
+ SENSITIVE = []
895
+ include Aws::Structure
896
+ end
897
+
628
898
  # A message in the agentic retrieval conversation.
629
899
  #
630
900
  # @!attribute [rw] content
@@ -798,6 +1068,11 @@ module Aws::BedrockAgentRuntime
798
1068
  # Whether to generate a response based on the retrieved results.
799
1069
  # @return [Boolean]
800
1070
  #
1071
+ # @!attribute [rw] memory_configuration
1072
+ # The configuration for using an Amazon Bedrock AgentCore Memory
1073
+ # resource with this retrieval.
1074
+ # @return [Types::AgenticRetrieveMemoryConfiguration]
1075
+ #
801
1076
  # @!attribute [rw] messages
802
1077
  # The list of messages for the agentic retrieval conversation.
803
1078
  # @return [Array<Types::AgenticRetrieveMessage>]
@@ -825,6 +1100,7 @@ module Aws::BedrockAgentRuntime
825
1100
  class AgenticRetrieveStreamRequest < Struct.new(
826
1101
  :agentic_retrieve_configuration,
827
1102
  :generate_response,
1103
+ :memory_configuration,
828
1104
  :messages,
829
1105
  :next_token,
830
1106
  :policy_configuration,
@@ -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.79.0'
59
+ GEM_VERSION = '1.80.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -109,6 +109,37 @@ module Aws
109
109
  reranking_model_type: ("CUSTOM" | "MANAGED" | "NONE")?
110
110
  },
111
111
  ?generate_response: bool,
112
+ ?memory_configuration: {
113
+ memory_id: ::String,
114
+ persistence_mode: ("DEFAULT" | "NONE")?,
115
+ retrieval_configs: Array[
116
+ {
117
+ metadata_filters: Array[
118
+ {
119
+ left: {
120
+ metadata_key: ::String?
121
+ },
122
+ operator: ("EQUALS_TO" | "EXISTS" | "NOT_EXISTS" | "BEFORE" | "AFTER" | "CONTAINS" | "GREATER_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN" | "LESS_THAN_OR_EQUALS"),
123
+ right: {
124
+ metadata_value: {
125
+ date_time_value: ::Time?,
126
+ number_value: ::Float?,
127
+ string_list_value: Array[::String]?,
128
+ string_value: ::String?
129
+ }?
130
+ }?
131
+ }
132
+ ]?,
133
+ namespace: ::String?,
134
+ namespace_path: ::String?,
135
+ strategy_id: ::String?
136
+ }
137
+ ]?,
138
+ session_binding: {
139
+ actor_id: ::String,
140
+ session_id: ::String
141
+ }?
142
+ },
112
143
  messages: Array[
113
144
  {
114
145
  content: {
data/sig/types.rbs CHANGED
@@ -102,6 +102,7 @@ module Aws::BedrockAgentRuntime
102
102
 
103
103
  class AgenticRetrieveAction
104
104
  attr_accessor full_document_expansion: Types::AgenticRetrieveFullDocExpansionDetails
105
+ attr_accessor memory_retrieve: Types::AgenticRetrieveMemoryRetrieveDetails
105
106
  attr_accessor retrieve: Types::AgenticRetrieveActionDetails
106
107
  SENSITIVE: []
107
108
  end
@@ -174,6 +175,86 @@ module Aws::BedrockAgentRuntime
174
175
  SENSITIVE: []
175
176
  end
176
177
 
178
+ class AgenticRetrieveMemoryConfiguration
179
+ attr_accessor memory_id: ::String
180
+ attr_accessor persistence_mode: ("DEFAULT" | "NONE")
181
+ attr_accessor retrieval_configs: ::Array[Types::AgenticRetrieveMemoryRetrievalConfig]
182
+ attr_accessor session_binding: Types::AgenticRetrieveMemorySessionBinding
183
+ SENSITIVE: []
184
+ end
185
+
186
+ class AgenticRetrieveMemoryMetadataFilter
187
+ attr_accessor left: Types::AgenticRetrieveMemoryMetadataFilterLeft
188
+ attr_accessor operator: ("EQUALS_TO" | "EXISTS" | "NOT_EXISTS" | "BEFORE" | "AFTER" | "CONTAINS" | "GREATER_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN" | "LESS_THAN_OR_EQUALS")
189
+ attr_accessor right: Types::AgenticRetrieveMemoryMetadataFilterRight
190
+ SENSITIVE: []
191
+ end
192
+
193
+ class AgenticRetrieveMemoryMetadataFilterLeft
194
+ attr_accessor metadata_key: ::String
195
+ attr_accessor unknown: untyped
196
+ SENSITIVE: []
197
+
198
+ class MetadataKey < AgenticRetrieveMemoryMetadataFilterLeft
199
+ end
200
+ class Unknown < AgenticRetrieveMemoryMetadataFilterLeft
201
+ end
202
+ end
203
+
204
+ class AgenticRetrieveMemoryMetadataFilterRight
205
+ attr_accessor metadata_value: Types::AgenticRetrieveMemoryMetadataValue
206
+ attr_accessor unknown: untyped
207
+ SENSITIVE: []
208
+
209
+ class MetadataValue < AgenticRetrieveMemoryMetadataFilterRight
210
+ end
211
+ class Unknown < AgenticRetrieveMemoryMetadataFilterRight
212
+ end
213
+ end
214
+
215
+ class AgenticRetrieveMemoryMetadataValue
216
+ attr_accessor date_time_value: ::Time
217
+ attr_accessor number_value: ::Float
218
+ attr_accessor string_list_value: ::Array[::String]
219
+ attr_accessor string_value: ::String
220
+ attr_accessor unknown: untyped
221
+ SENSITIVE: []
222
+
223
+ class DateTimeValue < AgenticRetrieveMemoryMetadataValue
224
+ end
225
+ class NumberValue < AgenticRetrieveMemoryMetadataValue
226
+ end
227
+ class StringListValue < AgenticRetrieveMemoryMetadataValue
228
+ end
229
+ class StringValue < AgenticRetrieveMemoryMetadataValue
230
+ end
231
+ class Unknown < AgenticRetrieveMemoryMetadataValue
232
+ end
233
+ end
234
+
235
+ class AgenticRetrieveMemoryRetrievalConfig
236
+ attr_accessor metadata_filters: ::Array[Types::AgenticRetrieveMemoryMetadataFilter]
237
+ attr_accessor namespace: ::String
238
+ attr_accessor namespace_path: ::String
239
+ attr_accessor strategy_id: ::String
240
+ SENSITIVE: []
241
+ end
242
+
243
+ class AgenticRetrieveMemoryRetrieveDetails
244
+ attr_accessor input_query: Types::AgenticRetrieveMessageContent
245
+ attr_accessor memory_id: ::String
246
+ attr_accessor namespace: ::String
247
+ attr_accessor namespace_path: ::String
248
+ attr_accessor strategy_id: ::String
249
+ SENSITIVE: [:input_query]
250
+ end
251
+
252
+ class AgenticRetrieveMemorySessionBinding
253
+ attr_accessor actor_id: ::String
254
+ attr_accessor session_id: ::String
255
+ SENSITIVE: []
256
+ end
257
+
177
258
  class AgenticRetrieveMessage
178
259
  attr_accessor content: Types::AgenticRetrieveMessageContent
179
260
  attr_accessor role: ("user" | "assistant")
@@ -219,7 +300,7 @@ module Aws::BedrockAgentRuntime
219
300
 
220
301
  class AgenticRetrieveSourceMetadata
221
302
  attr_accessor identifier: ::String
222
- attr_accessor retrieval_type: ("BedrockKnowledgeBase")
303
+ attr_accessor retrieval_type: ("BedrockKnowledgeBase" | "BedrockAgentCoreMemory")
223
304
  SENSITIVE: []
224
305
  end
225
306
 
@@ -231,6 +312,7 @@ module Aws::BedrockAgentRuntime
231
312
  class AgenticRetrieveStreamRequest
232
313
  attr_accessor agentic_retrieve_configuration: Types::AgenticRetrieveConfiguration
233
314
  attr_accessor generate_response: bool
315
+ attr_accessor memory_configuration: Types::AgenticRetrieveMemoryConfiguration
234
316
  attr_accessor messages: ::Array[Types::AgenticRetrieveMessage]
235
317
  attr_accessor next_token: ::String
236
318
  attr_accessor policy_configuration: Types::AgenticRetrievePolicyConfiguration
@@ -259,7 +341,7 @@ module Aws::BedrockAgentRuntime
259
341
  attr_accessor retrieval_metadata: ::Array[Types::AgenticRetrieveSourceMetadata]
260
342
  attr_accessor retrieval_response: ::Array[Types::AgenticRetrieveTraceResultItem]
261
343
  attr_accessor status: ("IN_PROGRESS" | "SUCCEEDED" | "FAILED")
262
- attr_accessor step: ("Planning" | "Retrieval" | "SpeculativeRetrieval" | "FullDocumentExpansion")
344
+ attr_accessor step: ("Planning" | "Retrieval" | "SpeculativeRetrieval" | "FullDocumentExpansion" | "SessionHistoryLoad")
263
345
  attr_accessor warnings: ::Array[Types::AgenticRetrieveWarning]
264
346
  SENSITIVE: []
265
347
  end
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.79.0
4
+ version: 1.80.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services