aws-sdk-bedrockagentruntime 1.34.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/types.rbs CHANGED
@@ -120,6 +120,18 @@ module Aws::BedrockAgentRuntime
120
120
  SENSITIVE: []
121
121
  end
122
122
 
123
+ class BedrockRerankingConfiguration
124
+ attr_accessor model_configuration: Types::BedrockRerankingModelConfiguration
125
+ attr_accessor number_of_results: ::Integer
126
+ SENSITIVE: []
127
+ end
128
+
129
+ class BedrockRerankingModelConfiguration
130
+ attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
131
+ attr_accessor model_arn: ::String
132
+ SENSITIVE: []
133
+ end
134
+
123
135
  class ByteContentDoc
124
136
  attr_accessor content_type: ::String
125
137
  attr_accessor data: ::String
@@ -139,6 +151,12 @@ module Aws::BedrockAgentRuntime
139
151
  SENSITIVE: []
140
152
  end
141
153
 
154
+ class CitationEvent
155
+ attr_accessor citation: Types::Citation
156
+ attr_accessor event_type: untyped
157
+ SENSITIVE: []
158
+ end
159
+
142
160
  class CodeInterpreterInvocationInput
143
161
  attr_accessor code: ::String
144
162
  attr_accessor files: ::Array[::String]
@@ -220,6 +238,11 @@ module Aws::BedrockAgentRuntime
220
238
  SENSITIVE: [:failure_reason]
221
239
  end
222
240
 
241
+ class FieldForReranking
242
+ attr_accessor field_name: ::String
243
+ SENSITIVE: []
244
+ end
245
+
223
246
  class FilePart
224
247
  attr_accessor files: ::Array[Types::OutputFile]
225
248
  attr_accessor event_type: untyped
@@ -480,6 +503,12 @@ module Aws::BedrockAgentRuntime
480
503
  SENSITIVE: []
481
504
  end
482
505
 
506
+ class GuardrailEvent
507
+ attr_accessor action: ("INTERVENED" | "NONE")
508
+ attr_accessor event_type: untyped
509
+ SENSITIVE: []
510
+ end
511
+
483
512
  class GuardrailManagedWord
484
513
  attr_accessor action: ("BLOCKED")
485
514
  attr_accessor match: ::String
@@ -534,6 +563,12 @@ module Aws::BedrockAgentRuntime
534
563
  SENSITIVE: [:custom_words, :managed_word_lists]
535
564
  end
536
565
 
566
+ class ImplicitFilterConfiguration
567
+ attr_accessor metadata_attributes: ::Array[Types::MetadataAttributeSchema]
568
+ attr_accessor model_arn: ::String
569
+ SENSITIVE: []
570
+ end
571
+
537
572
  class InferenceConfig
538
573
  attr_accessor text_inference_config: Types::TextInferenceConfig
539
574
  SENSITIVE: []
@@ -756,8 +791,10 @@ module Aws::BedrockAgentRuntime
756
791
 
757
792
  class KnowledgeBaseVectorSearchConfiguration
758
793
  attr_accessor filter: Types::RetrievalFilter
794
+ attr_accessor implicit_filter_configuration: Types::ImplicitFilterConfiguration
759
795
  attr_accessor number_of_results: ::Integer
760
796
  attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
797
+ attr_accessor reranking_configuration: Types::VectorSearchRerankingConfiguration
761
798
  SENSITIVE: [:filter]
762
799
  end
763
800
 
@@ -786,6 +823,19 @@ module Aws::BedrockAgentRuntime
786
823
  SENSITIVE: [:usage]
787
824
  end
788
825
 
826
+ class MetadataAttributeSchema
827
+ attr_accessor description: ::String
828
+ attr_accessor key: ::String
829
+ attr_accessor type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
830
+ SENSITIVE: []
831
+ end
832
+
833
+ class MetadataConfigurationForReranking
834
+ attr_accessor selection_mode: ("SELECTIVE" | "ALL")
835
+ attr_accessor selective_mode_configuration: Types::RerankingMetadataSelectiveModeConfiguration
836
+ SENSITIVE: []
837
+ end
838
+
789
839
  class ModelInvocationInput
790
840
  attr_accessor inference_configuration: Types::InferenceConfiguration
791
841
  attr_accessor override_lambda: ::String
@@ -1010,6 +1060,71 @@ module Aws::BedrockAgentRuntime
1010
1060
  SENSITIVE: []
1011
1061
  end
1012
1062
 
1063
+ class RerankDocument
1064
+ attr_accessor json_document: untyped
1065
+ attr_accessor text_document: Types::RerankTextDocument
1066
+ attr_accessor type: ("TEXT" | "JSON")
1067
+ SENSITIVE: [:text_document]
1068
+ end
1069
+
1070
+ class RerankQuery
1071
+ attr_accessor text_query: Types::RerankTextDocument
1072
+ attr_accessor type: ("TEXT")
1073
+ SENSITIVE: [:text_query]
1074
+ end
1075
+
1076
+ class RerankRequest
1077
+ attr_accessor next_token: ::String
1078
+ attr_accessor queries: ::Array[Types::RerankQuery]
1079
+ attr_accessor reranking_configuration: Types::RerankingConfiguration
1080
+ attr_accessor sources: ::Array[Types::RerankSource]
1081
+ SENSITIVE: [:queries, :sources]
1082
+ end
1083
+
1084
+ class RerankResponse
1085
+ attr_accessor next_token: ::String
1086
+ attr_accessor results: ::Array[Types::RerankResult]
1087
+ SENSITIVE: []
1088
+ end
1089
+
1090
+ class RerankResult
1091
+ attr_accessor document: Types::RerankDocument
1092
+ attr_accessor index: ::Integer
1093
+ attr_accessor relevance_score: ::Float
1094
+ SENSITIVE: [:document]
1095
+ end
1096
+
1097
+ class RerankSource
1098
+ attr_accessor inline_document_source: Types::RerankDocument
1099
+ attr_accessor type: ("INLINE")
1100
+ SENSITIVE: [:inline_document_source]
1101
+ end
1102
+
1103
+ class RerankTextDocument
1104
+ attr_accessor text: ::String
1105
+ SENSITIVE: []
1106
+ end
1107
+
1108
+ class RerankingConfiguration
1109
+ attr_accessor bedrock_reranking_configuration: Types::BedrockRerankingConfiguration
1110
+ attr_accessor type: ("BEDROCK_RERANKING_MODEL")
1111
+ SENSITIVE: []
1112
+ end
1113
+
1114
+ class RerankingMetadataSelectiveModeConfiguration
1115
+ attr_accessor fields_to_exclude: ::Array[Types::FieldForReranking]
1116
+ attr_accessor fields_to_include: ::Array[Types::FieldForReranking]
1117
+ attr_accessor unknown: untyped
1118
+ SENSITIVE: [:fields_to_exclude, :fields_to_include]
1119
+
1120
+ class FieldsToExclude < RerankingMetadataSelectiveModeConfiguration
1121
+ end
1122
+ class FieldsToInclude < RerankingMetadataSelectiveModeConfiguration
1123
+ end
1124
+ class Unknown < RerankingMetadataSelectiveModeConfiguration
1125
+ end
1126
+ end
1127
+
1013
1128
  class ResourceNotFoundException
1014
1129
  attr_accessor message: ::String
1015
1130
  attr_accessor event_type: untyped
@@ -1073,12 +1188,18 @@ module Aws::BedrockAgentRuntime
1073
1188
  SENSITIVE: []
1074
1189
  end
1075
1190
 
1191
+ class RetrievalResultCustomDocumentLocation
1192
+ attr_accessor id: ::String
1193
+ SENSITIVE: []
1194
+ end
1195
+
1076
1196
  class RetrievalResultLocation
1077
1197
  attr_accessor confluence_location: Types::RetrievalResultConfluenceLocation
1198
+ attr_accessor custom_document_location: Types::RetrievalResultCustomDocumentLocation
1078
1199
  attr_accessor s3_location: Types::RetrievalResultS3Location
1079
1200
  attr_accessor salesforce_location: Types::RetrievalResultSalesforceLocation
1080
1201
  attr_accessor share_point_location: Types::RetrievalResultSharePointLocation
1081
- attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT")
1202
+ attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM")
1082
1203
  attr_accessor web_location: Types::RetrievalResultWebLocation
1083
1204
  SENSITIVE: []
1084
1205
  end
@@ -1120,6 +1241,12 @@ module Aws::BedrockAgentRuntime
1120
1241
  SENSITIVE: []
1121
1242
  end
1122
1243
 
1244
+ class RetrieveAndGenerateOutputEvent
1245
+ attr_accessor text: ::String
1246
+ attr_accessor event_type: untyped
1247
+ SENSITIVE: []
1248
+ end
1249
+
1123
1250
  class RetrieveAndGenerateRequest
1124
1251
  attr_accessor input: Types::RetrieveAndGenerateInput
1125
1252
  attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
@@ -1141,7 +1268,22 @@ module Aws::BedrockAgentRuntime
1141
1268
  SENSITIVE: []
1142
1269
  end
1143
1270
 
1271
+ class RetrieveAndGenerateStreamRequest
1272
+ attr_accessor input: Types::RetrieveAndGenerateInput
1273
+ attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
1274
+ attr_accessor session_configuration: Types::RetrieveAndGenerateSessionConfiguration
1275
+ attr_accessor session_id: ::String
1276
+ SENSITIVE: [:input]
1277
+ end
1278
+
1279
+ class RetrieveAndGenerateStreamResponse
1280
+ attr_accessor session_id: ::String
1281
+ attr_accessor stream: Types::RetrieveAndGenerateStreamResponseOutput
1282
+ SENSITIVE: []
1283
+ end
1284
+
1144
1285
  class RetrieveRequest
1286
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
1145
1287
  attr_accessor knowledge_base_id: ::String
1146
1288
  attr_accessor next_token: ::String
1147
1289
  attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
@@ -1150,6 +1292,7 @@ module Aws::BedrockAgentRuntime
1150
1292
  end
1151
1293
 
1152
1294
  class RetrieveResponse
1295
+ attr_accessor guardrail_action: ("INTERVENED" | "NONE")
1153
1296
  attr_accessor next_token: ::String
1154
1297
  attr_accessor retrieval_results: ::Array[Types::KnowledgeBaseRetrievalResult]
1155
1298
  SENSITIVE: [:retrieval_results]
@@ -1286,6 +1429,25 @@ module Aws::BedrockAgentRuntime
1286
1429
  SENSITIVE: []
1287
1430
  end
1288
1431
 
1432
+ class VectorSearchBedrockRerankingConfiguration
1433
+ attr_accessor metadata_configuration: Types::MetadataConfigurationForReranking
1434
+ attr_accessor model_configuration: Types::VectorSearchBedrockRerankingModelConfiguration
1435
+ attr_accessor number_of_reranked_results: ::Integer
1436
+ SENSITIVE: []
1437
+ end
1438
+
1439
+ class VectorSearchBedrockRerankingModelConfiguration
1440
+ attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
1441
+ attr_accessor model_arn: ::String
1442
+ SENSITIVE: []
1443
+ end
1444
+
1445
+ class VectorSearchRerankingConfiguration
1446
+ attr_accessor bedrock_reranking_configuration: Types::VectorSearchBedrockRerankingConfiguration
1447
+ attr_accessor type: ("BEDROCK_RERANKING_MODEL")
1448
+ SENSITIVE: []
1449
+ end
1450
+
1289
1451
  class FlowResponseStream < Enumerator[untyped, untyped]
1290
1452
  def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :conflict_exception, :dependency_failed_exception, :flow_completion_event, :flow_output_event, :flow_trace_event, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
1291
1453
  end
@@ -1301,5 +1463,9 @@ module Aws::BedrockAgentRuntime
1301
1463
  class ResponseStream < Enumerator[untyped, untyped]
1302
1464
  def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :chunk, :conflict_exception, :dependency_failed_exception, :files, :internal_server_exception, :resource_not_found_exception, :return_control, :service_quota_exceeded_exception, :throttling_exception, :trace, :validation_exception]
1303
1465
  end
1466
+
1467
+ class RetrieveAndGenerateStreamResponseOutput < Enumerator[untyped, untyped]
1468
+ def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :citation, :conflict_exception, :dependency_failed_exception, :guardrail, :internal_server_exception, :output, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
1469
+ end
1304
1470
  end
1305
1471
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.0
4
+ version: 1.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core