aws-sdk-bedrockagentruntime 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12cf1b84a20e0969d3e184e5b93f9455474446b7e54b938b72fb071fb458f26b
4
- data.tar.gz: 8aff379d2148dcf2554d477750d148e0dfdb42f42aa85e6e50cce3347f76bc4b
3
+ metadata.gz: 24e10fc42b8ea0b4e35d44ca0c691949feaab6fe28ebe2a12c290ea005730c27
4
+ data.tar.gz: 7239ae58b7fc4a5343de154490f9c81eb7011fdd9a1be9472fc64575f6b4f803
5
5
  SHA512:
6
- metadata.gz: 94b70ee38eeab8f9df78cfcef7f8ec0de55e22da72660b37846584294b27b68412491d79464a0ec1c69b6fa0332c110efc4b32315ecba769a47c14d00bd396cd
7
- data.tar.gz: d6ba32ed95ac5aaeaac0a6f87d64bd27a5719e905101cf4741c570d8c175396b2102b58325901241a08918c37a197beef563e8fd8cd0f0907717de48cd348fbb
6
+ metadata.gz: 3f4d8ef61cdf0882cea1ab50df77212c91dda6f4a9457ad6632702c328f21fa20c1ff2dcff52544e935f747bb7b973c65f68ee40d77c63342c14f079599be7d7
7
+ data.tar.gz: 7b77085b8fe83e0f72e6276a82403b2a891515a51c3f2957860d516cb4b9657ea8be881250cda8abe01cd5417ef783b2ee499b8a84484bf72ca3f82f2e483ae6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2024-03-27)
5
+ ------------------
6
+
7
+ * Feature - This release introduces filtering support on Retrieve and RetrieveAndGenerate APIs.
8
+
9
+ 1.4.0 (2024-03-26)
10
+ ------------------
11
+
12
+ * Feature - This release adds support to customize prompts sent through the RetrieveAndGenerate API in Agents for Amazon Bedrock.
13
+
4
14
  1.3.0 (2024-03-08)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.5.0
@@ -459,6 +459,11 @@ module Aws::BedrockAgentRuntime
459
459
  #
460
460
  # @option params [Types::SessionState] :session_state
461
461
  # Contains parameters that specify various attributes of the session.
462
+ # For more information, see [Control session context][1].
463
+ #
464
+ #
465
+ #
466
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html
462
467
  #
463
468
  # @return [Types::InvokeAgentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
464
469
  #
@@ -681,6 +686,7 @@ module Aws::BedrockAgentRuntime
681
686
  # event.attribution.citations[0].retrieved_references[0].content.text #=> String
682
687
  # event.attribution.citations[0].retrieved_references[0].location.s3_location.uri #=> String
683
688
  # event.attribution.citations[0].retrieved_references[0].location.type #=> String, one of "S3"
689
+ # event.attribution.citations[0].retrieved_references[0].metadata #=> Hash
684
690
  # event.bytes #=> String
685
691
  #
686
692
  # For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
@@ -742,6 +748,7 @@ module Aws::BedrockAgentRuntime
742
748
  # event.trace.orchestration_trace.observation.knowledge_base_lookup_output.retrieved_references[0].content.text #=> String
743
749
  # event.trace.orchestration_trace.observation.knowledge_base_lookup_output.retrieved_references[0].location.s3_location.uri #=> String
744
750
  # event.trace.orchestration_trace.observation.knowledge_base_lookup_output.retrieved_references[0].location.type #=> String, one of "S3"
751
+ # event.trace.orchestration_trace.observation.knowledge_base_lookup_output.retrieved_references[0].metadata #=> Hash
745
752
  # event.trace.orchestration_trace.observation.reprompt_response.source #=> String, one of "ACTION_GROUP", "KNOWLEDGE_BASE", "PARSER"
746
753
  # event.trace.orchestration_trace.observation.reprompt_response.text #=> String
747
754
  # event.trace.orchestration_trace.observation.trace_id #=> String
@@ -822,10 +829,15 @@ module Aws::BedrockAgentRuntime
822
829
  # another request to retrieve the next batch of results.
823
830
  #
824
831
  # @option params [Types::KnowledgeBaseRetrievalConfiguration] :retrieval_configuration
825
- # Contains details about how the results should be returned.
832
+ # Contains configurations for the knowledge base query and retrieval
833
+ # process. For more information, see [Query configurations][1].
834
+ #
835
+ #
836
+ #
837
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html
826
838
  #
827
839
  # @option params [required, Types::KnowledgeBaseQuery] :retrieval_query
828
- # The query to send the knowledge base.
840
+ # Contains the query to send the knowledge base.
829
841
  #
830
842
  # @return [Types::RetrieveResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
831
843
  #
@@ -841,6 +853,63 @@ module Aws::BedrockAgentRuntime
841
853
  # next_token: "NextToken",
842
854
  # retrieval_configuration: {
843
855
  # vector_search_configuration: { # required
856
+ # filter: {
857
+ # and_all: [
858
+ # {
859
+ # # recursive RetrievalFilter
860
+ # },
861
+ # ],
862
+ # equals: {
863
+ # key: "FilterKey", # required
864
+ # value: { # required
865
+ # },
866
+ # },
867
+ # greater_than: {
868
+ # key: "FilterKey", # required
869
+ # value: { # required
870
+ # },
871
+ # },
872
+ # greater_than_or_equals: {
873
+ # key: "FilterKey", # required
874
+ # value: { # required
875
+ # },
876
+ # },
877
+ # in: {
878
+ # key: "FilterKey", # required
879
+ # value: { # required
880
+ # },
881
+ # },
882
+ # less_than: {
883
+ # key: "FilterKey", # required
884
+ # value: { # required
885
+ # },
886
+ # },
887
+ # less_than_or_equals: {
888
+ # key: "FilterKey", # required
889
+ # value: { # required
890
+ # },
891
+ # },
892
+ # not_equals: {
893
+ # key: "FilterKey", # required
894
+ # value: { # required
895
+ # },
896
+ # },
897
+ # not_in: {
898
+ # key: "FilterKey", # required
899
+ # value: { # required
900
+ # },
901
+ # },
902
+ # or_all: [
903
+ # {
904
+ # # recursive RetrievalFilter
905
+ # },
906
+ # ],
907
+ # starts_with: {
908
+ # key: "FilterKey", # required
909
+ # value: { # required
910
+ # },
911
+ # },
912
+ # },
844
913
  # number_of_results: 1,
845
914
  # override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
846
915
  # },
@@ -857,6 +926,7 @@ module Aws::BedrockAgentRuntime
857
926
  # resp.retrieval_results[0].content.text #=> String
858
927
  # resp.retrieval_results[0].location.s3_location.uri #=> String
859
928
  # resp.retrieval_results[0].location.type #=> String, one of "S3"
929
+ # resp.retrieval_results[0].metadata #=> Hash
860
930
  # resp.retrieval_results[0].score #=> Float
861
931
  #
862
932
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Retrieve AWS API Documentation
@@ -869,25 +939,19 @@ module Aws::BedrockAgentRuntime
869
939
  end
870
940
 
871
941
  # Queries a knowledge base and generates responses based on the
872
- # retrieved results. The response cites up to five sources but only
873
- # selects the ones that are relevant to the query.
874
- #
875
- # <note markdown="1"> The `numberOfResults` field is currently unsupported for
876
- # `RetrieveAndGenerate`. Don't include it in the
877
- # [vectorSearchConfiguration][1] object.
878
- #
879
- # </note>
942
+ # retrieved results. The response only cites sources that are relevant
943
+ # to the query.
880
944
  #
945
+ # @option params [required, Types::RetrieveAndGenerateInput] :input
946
+ # Contains the query to be made to the knowledge base.
881
947
  #
948
+ # @option params [Types::RetrieveAndGenerateConfiguration] :retrieve_and_generate_configuration
949
+ # Contains configurations for the knowledge base query and retrieval
950
+ # process. For more information, see [Query configurations][1].
882
951
  #
883
- # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_KnowledgeBaseVectorSearchConfiguration.html
884
952
  #
885
- # @option params [required, Types::RetrieveAndGenerateInput] :input
886
- # Contains the query made to the knowledge base.
887
953
  #
888
- # @option params [Types::RetrieveAndGenerateConfiguration] :retrieve_and_generate_configuration
889
- # Contains details about the resource being queried and the foundation
890
- # model used for generation.
954
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html
891
955
  #
892
956
  # @option params [Types::RetrieveAndGenerateSessionConfiguration] :session_configuration
893
957
  # Contains details about the session with the knowledge base.
@@ -910,10 +974,72 @@ module Aws::BedrockAgentRuntime
910
974
  # },
911
975
  # retrieve_and_generate_configuration: {
912
976
  # knowledge_base_configuration: {
977
+ # generation_configuration: {
978
+ # prompt_template: {
979
+ # text_prompt_template: "TextPromptTemplate",
980
+ # },
981
+ # },
913
982
  # knowledge_base_id: "KnowledgeBaseId", # required
914
983
  # model_arn: "BedrockModelArn", # required
915
984
  # retrieval_configuration: {
916
985
  # vector_search_configuration: { # required
986
+ # filter: {
987
+ # and_all: [
988
+ # {
989
+ # # recursive RetrievalFilter
990
+ # },
991
+ # ],
992
+ # equals: {
993
+ # key: "FilterKey", # required
994
+ # value: { # required
995
+ # },
996
+ # },
997
+ # greater_than: {
998
+ # key: "FilterKey", # required
999
+ # value: { # required
1000
+ # },
1001
+ # },
1002
+ # greater_than_or_equals: {
1003
+ # key: "FilterKey", # required
1004
+ # value: { # required
1005
+ # },
1006
+ # },
1007
+ # in: {
1008
+ # key: "FilterKey", # required
1009
+ # value: { # required
1010
+ # },
1011
+ # },
1012
+ # less_than: {
1013
+ # key: "FilterKey", # required
1014
+ # value: { # required
1015
+ # },
1016
+ # },
1017
+ # less_than_or_equals: {
1018
+ # key: "FilterKey", # required
1019
+ # value: { # required
1020
+ # },
1021
+ # },
1022
+ # not_equals: {
1023
+ # key: "FilterKey", # required
1024
+ # value: { # required
1025
+ # },
1026
+ # },
1027
+ # not_in: {
1028
+ # key: "FilterKey", # required
1029
+ # value: { # required
1030
+ # },
1031
+ # },
1032
+ # or_all: [
1033
+ # {
1034
+ # # recursive RetrievalFilter
1035
+ # },
1036
+ # ],
1037
+ # starts_with: {
1038
+ # key: "FilterKey", # required
1039
+ # value: { # required
1040
+ # },
1041
+ # },
1042
+ # },
917
1043
  # number_of_results: 1,
918
1044
  # override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
919
1045
  # },
@@ -937,6 +1063,7 @@ module Aws::BedrockAgentRuntime
937
1063
  # resp.citations[0].retrieved_references[0].content.text #=> String
938
1064
  # resp.citations[0].retrieved_references[0].location.s3_location.uri #=> String
939
1065
  # resp.citations[0].retrieved_references[0].location.type #=> String, one of "S3"
1066
+ # resp.citations[0].retrieved_references[0].metadata #=> Hash
940
1067
  # resp.output.text #=> String
941
1068
  # resp.session_id #=> String
942
1069
  #
@@ -962,7 +1089,7 @@ module Aws::BedrockAgentRuntime
962
1089
  params: params,
963
1090
  config: config)
964
1091
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
965
- context[:gem_version] = '1.3.0'
1092
+ context[:gem_version] = '1.5.0'
966
1093
  Seahorse::Client::Request.new(handlers, context)
967
1094
  end
968
1095
 
@@ -34,9 +34,13 @@ module Aws::BedrockAgentRuntime
34
34
  Double = Shapes::FloatShape.new(name: 'Double')
35
35
  FailureReasonString = Shapes::StringShape.new(name: 'FailureReasonString')
36
36
  FailureTrace = Shapes::StructureShape.new(name: 'FailureTrace')
37
+ FilterAttribute = Shapes::StructureShape.new(name: 'FilterAttribute')
38
+ FilterKey = Shapes::StringShape.new(name: 'FilterKey')
39
+ FilterValue = Shapes::DocumentShape.new(name: 'FilterValue', document: true)
37
40
  FinalResponse = Shapes::StructureShape.new(name: 'FinalResponse')
38
41
  FinalResponseString = Shapes::StringShape.new(name: 'FinalResponseString')
39
42
  GeneratedResponsePart = Shapes::StructureShape.new(name: 'GeneratedResponsePart')
43
+ GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
40
44
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
41
45
  InputText = Shapes::StringShape.new(name: 'InputText')
42
46
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -77,6 +81,7 @@ module Aws::BedrockAgentRuntime
77
81
  PreProcessingParsedResponse = Shapes::StructureShape.new(name: 'PreProcessingParsedResponse')
78
82
  PreProcessingTrace = Shapes::UnionShape.new(name: 'PreProcessingTrace')
79
83
  PromptSessionAttributesMap = Shapes::MapShape.new(name: 'PromptSessionAttributesMap')
84
+ PromptTemplate = Shapes::StructureShape.new(name: 'PromptTemplate')
80
85
  PromptText = Shapes::StringShape.new(name: 'PromptText')
81
86
  PromptType = Shapes::StringShape.new(name: 'PromptType')
82
87
  Rationale = Shapes::StructureShape.new(name: 'Rationale')
@@ -85,9 +90,14 @@ module Aws::BedrockAgentRuntime
85
90
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
86
91
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
87
92
  ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
93
+ RetrievalFilter = Shapes::UnionShape.new(name: 'RetrievalFilter')
94
+ RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
88
95
  RetrievalResultContent = Shapes::StructureShape.new(name: 'RetrievalResultContent')
89
96
  RetrievalResultLocation = Shapes::StructureShape.new(name: 'RetrievalResultLocation')
90
97
  RetrievalResultLocationType = Shapes::StringShape.new(name: 'RetrievalResultLocationType')
98
+ RetrievalResultMetadata = Shapes::MapShape.new(name: 'RetrievalResultMetadata')
99
+ RetrievalResultMetadataKey = Shapes::StringShape.new(name: 'RetrievalResultMetadataKey')
100
+ RetrievalResultMetadataValue = Shapes::DocumentShape.new(name: 'RetrievalResultMetadataValue', document: true)
91
101
  RetrievalResultS3Location = Shapes::StructureShape.new(name: 'RetrievalResultS3Location')
92
102
  RetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'RetrieveAndGenerateConfiguration')
93
103
  RetrieveAndGenerateInput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateInput')
@@ -113,6 +123,7 @@ module Aws::BedrockAgentRuntime
113
123
  StopSequences = Shapes::ListShape.new(name: 'StopSequences')
114
124
  String = Shapes::StringShape.new(name: 'String')
115
125
  Temperature = Shapes::FloatShape.new(name: 'Temperature')
126
+ TextPromptTemplate = Shapes::StringShape.new(name: 'TextPromptTemplate')
116
127
  TextResponsePart = Shapes::StructureShape.new(name: 'TextResponsePart')
117
128
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
118
129
  TopK = Shapes::IntegerShape.new(name: 'TopK')
@@ -165,12 +176,19 @@ module Aws::BedrockAgentRuntime
165
176
  FailureTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
166
177
  FailureTrace.struct_class = Types::FailureTrace
167
178
 
179
+ FilterAttribute.add_member(:key, Shapes::ShapeRef.new(shape: FilterKey, required: true, location_name: "key"))
180
+ FilterAttribute.add_member(:value, Shapes::ShapeRef.new(shape: FilterValue, required: true, location_name: "value"))
181
+ FilterAttribute.struct_class = Types::FilterAttribute
182
+
168
183
  FinalResponse.add_member(:text, Shapes::ShapeRef.new(shape: FinalResponseString, location_name: "text"))
169
184
  FinalResponse.struct_class = Types::FinalResponse
170
185
 
171
186
  GeneratedResponsePart.add_member(:text_response_part, Shapes::ShapeRef.new(shape: TextResponsePart, location_name: "textResponsePart"))
172
187
  GeneratedResponsePart.struct_class = Types::GeneratedResponsePart
173
188
 
189
+ GenerationConfiguration.add_member(:prompt_template, Shapes::ShapeRef.new(shape: PromptTemplate, location_name: "promptTemplate"))
190
+ GenerationConfiguration.struct_class = Types::GenerationConfiguration
191
+
174
192
  InferenceConfiguration.add_member(:maximum_length, Shapes::ShapeRef.new(shape: MaximumLength, location_name: "maximumLength"))
175
193
  InferenceConfiguration.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: StopSequences, location_name: "stopSequences"))
176
194
  InferenceConfiguration.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
@@ -218,16 +236,19 @@ module Aws::BedrockAgentRuntime
218
236
 
219
237
  KnowledgeBaseRetrievalResult.add_member(:content, Shapes::ShapeRef.new(shape: RetrievalResultContent, required: true, location_name: "content"))
220
238
  KnowledgeBaseRetrievalResult.add_member(:location, Shapes::ShapeRef.new(shape: RetrievalResultLocation, location_name: "location"))
239
+ KnowledgeBaseRetrievalResult.add_member(:metadata, Shapes::ShapeRef.new(shape: RetrievalResultMetadata, location_name: "metadata"))
221
240
  KnowledgeBaseRetrievalResult.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
222
241
  KnowledgeBaseRetrievalResult.struct_class = Types::KnowledgeBaseRetrievalResult
223
242
 
224
243
  KnowledgeBaseRetrievalResults.member = Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalResult)
225
244
 
245
+ KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:generation_configuration, Shapes::ShapeRef.new(shape: GenerationConfiguration, location_name: "generationConfiguration"))
226
246
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
227
247
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
228
248
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
229
249
  KnowledgeBaseRetrieveAndGenerateConfiguration.struct_class = Types::KnowledgeBaseRetrieveAndGenerateConfiguration
230
250
 
251
+ KnowledgeBaseVectorSearchConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: RetrievalFilter, location_name: "filter"))
231
252
  KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, location_name: "numberOfResults", metadata: {"box"=>true}))
232
253
  KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
233
254
  KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
@@ -306,6 +327,9 @@ module Aws::BedrockAgentRuntime
306
327
  PromptSessionAttributesMap.key = Shapes::ShapeRef.new(shape: String)
307
328
  PromptSessionAttributesMap.value = Shapes::ShapeRef.new(shape: String)
308
329
 
330
+ PromptTemplate.add_member(:text_prompt_template, Shapes::ShapeRef.new(shape: TextPromptTemplate, location_name: "textPromptTemplate"))
331
+ PromptTemplate.struct_class = Types::PromptTemplate
332
+
309
333
  Rationale.add_member(:text, Shapes::ShapeRef.new(shape: RationaleString, location_name: "text"))
310
334
  Rationale.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
311
335
  Rationale.struct_class = Types::Rationale
@@ -333,6 +357,34 @@ module Aws::BedrockAgentRuntime
333
357
  ResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
334
358
  ResponseStream.struct_class = Types::ResponseStream
335
359
 
360
+ RetrievalFilter.add_member(:and_all, Shapes::ShapeRef.new(shape: RetrievalFilterList, location_name: "andAll"))
361
+ RetrievalFilter.add_member(:equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "equals"))
362
+ RetrievalFilter.add_member(:greater_than, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "greaterThan"))
363
+ RetrievalFilter.add_member(:greater_than_or_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "greaterThanOrEquals"))
364
+ RetrievalFilter.add_member(:in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "in"))
365
+ RetrievalFilter.add_member(:less_than, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThan"))
366
+ RetrievalFilter.add_member(:less_than_or_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThanOrEquals"))
367
+ RetrievalFilter.add_member(:not_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notEquals"))
368
+ RetrievalFilter.add_member(:not_in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notIn"))
369
+ RetrievalFilter.add_member(:or_all, Shapes::ShapeRef.new(shape: RetrievalFilterList, location_name: "orAll"))
370
+ RetrievalFilter.add_member(:starts_with, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "startsWith"))
371
+ RetrievalFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
372
+ RetrievalFilter.add_member_subclass(:and_all, Types::RetrievalFilter::AndAll)
373
+ RetrievalFilter.add_member_subclass(:equals, Types::RetrievalFilter::Equals)
374
+ RetrievalFilter.add_member_subclass(:greater_than, Types::RetrievalFilter::GreaterThan)
375
+ RetrievalFilter.add_member_subclass(:greater_than_or_equals, Types::RetrievalFilter::GreaterThanOrEquals)
376
+ RetrievalFilter.add_member_subclass(:in, Types::RetrievalFilter::In)
377
+ RetrievalFilter.add_member_subclass(:less_than, Types::RetrievalFilter::LessThan)
378
+ RetrievalFilter.add_member_subclass(:less_than_or_equals, Types::RetrievalFilter::LessThanOrEquals)
379
+ RetrievalFilter.add_member_subclass(:not_equals, Types::RetrievalFilter::NotEquals)
380
+ RetrievalFilter.add_member_subclass(:not_in, Types::RetrievalFilter::NotIn)
381
+ RetrievalFilter.add_member_subclass(:or_all, Types::RetrievalFilter::OrAll)
382
+ RetrievalFilter.add_member_subclass(:starts_with, Types::RetrievalFilter::StartsWith)
383
+ RetrievalFilter.add_member_subclass(:unknown, Types::RetrievalFilter::Unknown)
384
+ RetrievalFilter.struct_class = Types::RetrievalFilter
385
+
386
+ RetrievalFilterList.member = Shapes::ShapeRef.new(shape: RetrievalFilter)
387
+
336
388
  RetrievalResultContent.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
337
389
  RetrievalResultContent.struct_class = Types::RetrievalResultContent
338
390
 
@@ -340,6 +392,9 @@ module Aws::BedrockAgentRuntime
340
392
  RetrievalResultLocation.add_member(:type, Shapes::ShapeRef.new(shape: RetrievalResultLocationType, required: true, location_name: "type"))
341
393
  RetrievalResultLocation.struct_class = Types::RetrievalResultLocation
342
394
 
395
+ RetrievalResultMetadata.key = Shapes::ShapeRef.new(shape: RetrievalResultMetadataKey)
396
+ RetrievalResultMetadata.value = Shapes::ShapeRef.new(shape: RetrievalResultMetadataValue)
397
+
343
398
  RetrievalResultS3Location.add_member(:uri, Shapes::ShapeRef.new(shape: String, location_name: "uri"))
344
399
  RetrievalResultS3Location.struct_class = Types::RetrievalResultS3Location
345
400
 
@@ -379,6 +434,7 @@ module Aws::BedrockAgentRuntime
379
434
 
380
435
  RetrievedReference.add_member(:content, Shapes::ShapeRef.new(shape: RetrievalResultContent, location_name: "content"))
381
436
  RetrievedReference.add_member(:location, Shapes::ShapeRef.new(shape: RetrievalResultLocation, location_name: "location"))
437
+ RetrievedReference.add_member(:metadata, Shapes::ShapeRef.new(shape: RetrievalResultMetadata, location_name: "metadata"))
382
438
  RetrievedReference.struct_class = Types::RetrievedReference
383
439
 
384
440
  RetrievedReferences.member = Shapes::ShapeRef.new(shape: RetrievedReference)