aws-sdk-bedrockagentruntime 1.76.0 → 1.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +1220 -32
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +358 -2
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +89 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +1066 -7
- data/lib/aws-sdk-bedrockagentruntime.rb +2 -2
- data/sig/client.rbs +92 -2
- data/sig/params.rbs +61 -38
- data/sig/types.rbs +315 -4
- metadata +1 -1
data/sig/types.rbs
CHANGED
|
@@ -100,6 +100,202 @@ module Aws::BedrockAgentRuntime
|
|
|
100
100
|
SENSITIVE: [:return_control_payload, :text]
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
+
class AgenticRetrieveAction
|
|
104
|
+
attr_accessor full_document_expansion: Types::AgenticRetrieveFullDocExpansionDetails
|
|
105
|
+
attr_accessor retrieve: Types::AgenticRetrieveActionDetails
|
|
106
|
+
SENSITIVE: []
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class AgenticRetrieveActionDetails
|
|
110
|
+
attr_accessor input_query: Types::AgenticRetrieveMessageContent
|
|
111
|
+
attr_accessor source_retrievers: ::Array[Types::AgenticRetrieveSourceRetriever]
|
|
112
|
+
SENSITIVE: [:input_query]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class AgenticRetrieveBedrockGuardrailConfiguration
|
|
116
|
+
attr_accessor guardrail_id: ::String
|
|
117
|
+
attr_accessor guardrail_version: ::String
|
|
118
|
+
SENSITIVE: []
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class AgenticRetrieveBedrockRerankingConfiguration
|
|
122
|
+
attr_accessor model_configuration: Types::AgenticRetrieveBedrockRerankingModelConfiguration
|
|
123
|
+
SENSITIVE: []
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
class AgenticRetrieveBedrockRerankingModelConfiguration
|
|
127
|
+
attr_accessor model_arn: ::String
|
|
128
|
+
SENSITIVE: []
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
class AgenticRetrieveCitation
|
|
132
|
+
attr_accessor end_index: ::Integer
|
|
133
|
+
attr_accessor references: ::Array[Types::AgenticRetrieveCitationReference]
|
|
134
|
+
attr_accessor start_index: ::Integer
|
|
135
|
+
SENSITIVE: []
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class AgenticRetrieveCitationReference
|
|
139
|
+
attr_accessor result_index: ::Integer
|
|
140
|
+
SENSITIVE: []
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
class AgenticRetrieveConfiguration
|
|
144
|
+
attr_accessor foundation_model_configuration: Types::FoundationModelConfiguration
|
|
145
|
+
attr_accessor foundation_model_type: ("CUSTOM" | "MANAGED")
|
|
146
|
+
attr_accessor max_agent_iteration: ::Integer
|
|
147
|
+
attr_accessor reranking_configuration: Types::AgenticRetrieveRerankingConfiguration
|
|
148
|
+
attr_accessor reranking_model_type: ("CUSTOM" | "MANAGED" | "NONE")
|
|
149
|
+
SENSITIVE: []
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
class AgenticRetrieveFailure
|
|
153
|
+
attr_accessor message: ::String
|
|
154
|
+
SENSITIVE: []
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class AgenticRetrieveFullDocExpansionDetails
|
|
158
|
+
attr_accessor document_id: ::String
|
|
159
|
+
attr_accessor source_retriever: Types::AgenticRetrieveSourceRetriever
|
|
160
|
+
SENSITIVE: []
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
class AgenticRetrieveGeneratedResponse
|
|
164
|
+
attr_accessor answer: ::String
|
|
165
|
+
attr_accessor citations: ::Array[Types::AgenticRetrieveCitation]
|
|
166
|
+
SENSITIVE: []
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class AgenticRetrieveGuardrailWarning
|
|
170
|
+
attr_accessor action: ("INTERVENED" | "NONE")
|
|
171
|
+
attr_accessor id: ::String
|
|
172
|
+
attr_accessor message: ::String
|
|
173
|
+
attr_accessor version: ::String
|
|
174
|
+
SENSITIVE: []
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
class AgenticRetrieveMessage
|
|
178
|
+
attr_accessor content: Types::AgenticRetrieveMessageContent
|
|
179
|
+
attr_accessor role: ("user" | "assistant")
|
|
180
|
+
SENSITIVE: [:content]
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
class AgenticRetrieveMessageContent
|
|
184
|
+
attr_accessor text: ::String
|
|
185
|
+
SENSITIVE: []
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
class AgenticRetrievePolicyConfiguration
|
|
189
|
+
attr_accessor bedrock_guardrail_configuration: Types::AgenticRetrieveBedrockGuardrailConfiguration
|
|
190
|
+
SENSITIVE: []
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
class AgenticRetrieveRerankingConfiguration
|
|
194
|
+
attr_accessor bedrock_reranking_configuration: Types::AgenticRetrieveBedrockRerankingConfiguration
|
|
195
|
+
attr_accessor type: ("BEDROCK_RERANKING_MODEL")
|
|
196
|
+
SENSITIVE: []
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class AgenticRetrieveResponseEvent
|
|
200
|
+
attr_accessor text: ::String
|
|
201
|
+
attr_accessor event_type: untyped
|
|
202
|
+
SENSITIVE: []
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
class AgenticRetrieveResultEvent
|
|
206
|
+
attr_accessor generated_response: Types::AgenticRetrieveGeneratedResponse
|
|
207
|
+
attr_accessor next_token: ::String
|
|
208
|
+
attr_accessor results: ::Array[Types::AgenticRetrieveResultItem]
|
|
209
|
+
attr_accessor event_type: untyped
|
|
210
|
+
SENSITIVE: []
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
class AgenticRetrieveResultItem
|
|
214
|
+
attr_accessor content: Types::RetrievalContent
|
|
215
|
+
attr_accessor metadata: ::Hash[::String, untyped]
|
|
216
|
+
attr_accessor source_retriever: Types::AgenticRetrieveSourceRetriever
|
|
217
|
+
SENSITIVE: []
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class AgenticRetrieveSourceMetadata
|
|
221
|
+
attr_accessor identifier: ::String
|
|
222
|
+
attr_accessor retrieval_type: ("BedrockKnowledgeBase")
|
|
223
|
+
SENSITIVE: []
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
class AgenticRetrieveSourceRetriever
|
|
227
|
+
attr_accessor identifier: ::String
|
|
228
|
+
SENSITIVE: []
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class AgenticRetrieveStreamRequest
|
|
232
|
+
attr_accessor agentic_retrieve_configuration: Types::AgenticRetrieveConfiguration
|
|
233
|
+
attr_accessor generate_response: bool
|
|
234
|
+
attr_accessor messages: ::Array[Types::AgenticRetrieveMessage]
|
|
235
|
+
attr_accessor next_token: ::String
|
|
236
|
+
attr_accessor policy_configuration: Types::AgenticRetrievePolicyConfiguration
|
|
237
|
+
attr_accessor retrievers: ::Array[Types::AgenticRetriever]
|
|
238
|
+
attr_accessor user_context: Types::UserContext
|
|
239
|
+
SENSITIVE: [:user_context]
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class AgenticRetrieveStreamResponse
|
|
243
|
+
attr_accessor stream: Types::AgenticRetrieveStreamResponseOutput
|
|
244
|
+
SENSITIVE: []
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
class AgenticRetrieveTraceEvent
|
|
248
|
+
attr_accessor attributes: Types::AgenticRetrieveTraceEventAttributes
|
|
249
|
+
attr_accessor id: ::String
|
|
250
|
+
attr_accessor timestamp: ::Integer
|
|
251
|
+
attr_accessor event_type: untyped
|
|
252
|
+
SENSITIVE: []
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
class AgenticRetrieveTraceEventAttributes
|
|
256
|
+
attr_accessor actions: ::Array[Types::AgenticRetrieveAction]
|
|
257
|
+
attr_accessor failures: ::Array[Types::AgenticRetrieveFailure]
|
|
258
|
+
attr_accessor message: ::String
|
|
259
|
+
attr_accessor retrieval_metadata: ::Array[Types::AgenticRetrieveSourceMetadata]
|
|
260
|
+
attr_accessor retrieval_response: ::Array[Types::AgenticRetrieveTraceResultItem]
|
|
261
|
+
attr_accessor status: ("IN_PROGRESS" | "SUCCEEDED" | "FAILED")
|
|
262
|
+
attr_accessor step: ("Planning" | "Retrieval" | "SpeculativeRetrieval" | "FullDocumentExpansion")
|
|
263
|
+
attr_accessor warnings: ::Array[Types::AgenticRetrieveWarning]
|
|
264
|
+
SENSITIVE: []
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
class AgenticRetrieveTraceResultItem
|
|
268
|
+
attr_accessor content: Types::RetrievalContent
|
|
269
|
+
attr_accessor metadata: ::Hash[::String, untyped]
|
|
270
|
+
attr_accessor source_retriever: Types::AgenticRetrieveSourceRetriever
|
|
271
|
+
SENSITIVE: []
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
class AgenticRetrieveWarning
|
|
275
|
+
attr_accessor guardrail: Types::AgenticRetrieveGuardrailWarning
|
|
276
|
+
attr_accessor message: Types::AgenticRetrieveWarningMessage
|
|
277
|
+
attr_accessor unknown: untyped
|
|
278
|
+
SENSITIVE: []
|
|
279
|
+
|
|
280
|
+
class Guardrail < AgenticRetrieveWarning
|
|
281
|
+
end
|
|
282
|
+
class Message < AgenticRetrieveWarning
|
|
283
|
+
end
|
|
284
|
+
class Unknown < AgenticRetrieveWarning
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
class AgenticRetrieveWarningMessage
|
|
289
|
+
attr_accessor message: ::String
|
|
290
|
+
SENSITIVE: []
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
class AgenticRetriever
|
|
294
|
+
attr_accessor configuration: Types::RetrieverConfiguration
|
|
295
|
+
attr_accessor description: ::String
|
|
296
|
+
SENSITIVE: []
|
|
297
|
+
end
|
|
298
|
+
|
|
103
299
|
class AnalyzePromptEvent
|
|
104
300
|
attr_accessor message: ::String
|
|
105
301
|
attr_accessor event_type: untyped
|
|
@@ -160,6 +356,16 @@ module Aws::BedrockAgentRuntime
|
|
|
160
356
|
SENSITIVE: []
|
|
161
357
|
end
|
|
162
358
|
|
|
359
|
+
class BedrockFoundationModelConfiguration
|
|
360
|
+
attr_accessor model_configuration: Types::BedrockFoundationModelModelConfiguration
|
|
361
|
+
SENSITIVE: []
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
class BedrockFoundationModelModelConfiguration
|
|
365
|
+
attr_accessor model_arn: ::String
|
|
366
|
+
SENSITIVE: []
|
|
367
|
+
end
|
|
368
|
+
|
|
163
369
|
class BedrockModelConfigurations
|
|
164
370
|
attr_accessor performance_config: Types::PerformanceConfiguration
|
|
165
371
|
SENSITIVE: []
|
|
@@ -739,6 +945,12 @@ module Aws::BedrockAgentRuntime
|
|
|
739
945
|
SENSITIVE: []
|
|
740
946
|
end
|
|
741
947
|
|
|
948
|
+
class FoundationModelConfiguration
|
|
949
|
+
attr_accessor bedrock_foundation_model_configuration: Types::BedrockFoundationModelConfiguration
|
|
950
|
+
attr_accessor type: ("BEDROCK_FOUNDATION_MODEL")
|
|
951
|
+
SENSITIVE: []
|
|
952
|
+
end
|
|
953
|
+
|
|
742
954
|
class FunctionDefinition
|
|
743
955
|
attr_accessor description: ::String
|
|
744
956
|
attr_accessor name: ::String
|
|
@@ -832,6 +1044,22 @@ module Aws::BedrockAgentRuntime
|
|
|
832
1044
|
SENSITIVE: []
|
|
833
1045
|
end
|
|
834
1046
|
|
|
1047
|
+
class GetDocumentContentRequest
|
|
1048
|
+
attr_accessor data_source_id: ::String
|
|
1049
|
+
attr_accessor document_id: ::String
|
|
1050
|
+
attr_accessor knowledge_base_id: ::String
|
|
1051
|
+
attr_accessor output_format: ("RAW" | "EXTRACTED")
|
|
1052
|
+
attr_accessor user_context: Types::UserContext
|
|
1053
|
+
SENSITIVE: [:user_context]
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
class GetDocumentContentResponse
|
|
1057
|
+
attr_accessor document_content_length: ::Integer
|
|
1058
|
+
attr_accessor mime_type: ::String
|
|
1059
|
+
attr_accessor presigned_url: ::String
|
|
1060
|
+
SENSITIVE: [:presigned_url]
|
|
1061
|
+
end
|
|
1062
|
+
|
|
835
1063
|
class GetExecutionFlowSnapshotRequest
|
|
836
1064
|
attr_accessor execution_identifier: ::String
|
|
837
1065
|
attr_accessor flow_alias_identifier: ::String
|
|
@@ -1307,12 +1535,14 @@ module Aws::BedrockAgentRuntime
|
|
|
1307
1535
|
end
|
|
1308
1536
|
|
|
1309
1537
|
class KnowledgeBaseRetrievalConfiguration
|
|
1538
|
+
attr_accessor managed_search_configuration: Types::ManagedSearchConfiguration
|
|
1310
1539
|
attr_accessor vector_search_configuration: Types::KnowledgeBaseVectorSearchConfiguration
|
|
1311
1540
|
SENSITIVE: []
|
|
1312
1541
|
end
|
|
1313
1542
|
|
|
1314
1543
|
class KnowledgeBaseRetrievalResult
|
|
1315
1544
|
attr_accessor content: Types::RetrievalResultContent
|
|
1545
|
+
attr_accessor document_id: ::String
|
|
1316
1546
|
attr_accessor location: Types::RetrievalResultLocation
|
|
1317
1547
|
attr_accessor metadata: ::Hash[::String, untyped]
|
|
1318
1548
|
attr_accessor score: ::Float
|
|
@@ -1328,6 +1558,12 @@ module Aws::BedrockAgentRuntime
|
|
|
1328
1558
|
SENSITIVE: []
|
|
1329
1559
|
end
|
|
1330
1560
|
|
|
1561
|
+
class KnowledgeBaseRetrieverConfiguration
|
|
1562
|
+
attr_accessor knowledge_base_id: ::String
|
|
1563
|
+
attr_accessor retrieval_overrides: Types::RetrievalOverrides
|
|
1564
|
+
SENSITIVE: []
|
|
1565
|
+
end
|
|
1566
|
+
|
|
1331
1567
|
class KnowledgeBaseVectorSearchConfiguration
|
|
1332
1568
|
attr_accessor filter: Types::RetrievalFilter
|
|
1333
1569
|
attr_accessor implicit_filter_configuration: Types::ImplicitFilterConfiguration
|
|
@@ -1416,6 +1652,33 @@ module Aws::BedrockAgentRuntime
|
|
|
1416
1652
|
SENSITIVE: []
|
|
1417
1653
|
end
|
|
1418
1654
|
|
|
1655
|
+
class ManagedSearchBedrockRerankingConfiguration
|
|
1656
|
+
attr_accessor metadata_configuration: Types::MetadataConfigurationForReranking
|
|
1657
|
+
attr_accessor model_configuration: Types::ManagedSearchBedrockRerankingModelConfiguration
|
|
1658
|
+
attr_accessor number_of_reranked_results: ::Integer
|
|
1659
|
+
SENSITIVE: []
|
|
1660
|
+
end
|
|
1661
|
+
|
|
1662
|
+
class ManagedSearchBedrockRerankingModelConfiguration
|
|
1663
|
+
attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
|
|
1664
|
+
attr_accessor model_arn: ::String
|
|
1665
|
+
SENSITIVE: []
|
|
1666
|
+
end
|
|
1667
|
+
|
|
1668
|
+
class ManagedSearchConfiguration
|
|
1669
|
+
attr_accessor filter: Types::RetrievalFilter
|
|
1670
|
+
attr_accessor number_of_results: ::Integer
|
|
1671
|
+
attr_accessor reranking_configuration: Types::ManagedSearchRerankingConfiguration
|
|
1672
|
+
attr_accessor reranking_model_type: ("CUSTOM" | "MANAGED" | "NONE")
|
|
1673
|
+
SENSITIVE: [:filter]
|
|
1674
|
+
end
|
|
1675
|
+
|
|
1676
|
+
class ManagedSearchRerankingConfiguration
|
|
1677
|
+
attr_accessor bedrock_reranking_configuration: Types::ManagedSearchBedrockRerankingConfiguration
|
|
1678
|
+
attr_accessor type: ("BEDROCK_RERANKING_MODEL")
|
|
1679
|
+
SENSITIVE: []
|
|
1680
|
+
end
|
|
1681
|
+
|
|
1419
1682
|
class Memory
|
|
1420
1683
|
attr_accessor session_summary: Types::MemorySessionSummary
|
|
1421
1684
|
attr_accessor unknown: untyped
|
|
@@ -1941,6 +2204,13 @@ module Aws::BedrockAgentRuntime
|
|
|
1941
2204
|
SENSITIVE: []
|
|
1942
2205
|
end
|
|
1943
2206
|
|
|
2207
|
+
class RetrievalContent
|
|
2208
|
+
attr_accessor byte_content: ::String
|
|
2209
|
+
attr_accessor mime_type: ::String
|
|
2210
|
+
attr_accessor text: ::String
|
|
2211
|
+
SENSITIVE: []
|
|
2212
|
+
end
|
|
2213
|
+
|
|
1944
2214
|
class RetrievalFilter
|
|
1945
2215
|
attr_accessor and_all: ::Array[Types::RetrievalFilter]
|
|
1946
2216
|
attr_accessor equals: Types::FilterAttribute
|
|
@@ -1988,6 +2258,12 @@ module Aws::BedrockAgentRuntime
|
|
|
1988
2258
|
end
|
|
1989
2259
|
end
|
|
1990
2260
|
|
|
2261
|
+
class RetrievalOverrides
|
|
2262
|
+
attr_accessor filter: Types::RetrievalFilter
|
|
2263
|
+
attr_accessor max_number_of_results: ::Integer
|
|
2264
|
+
SENSITIVE: [:filter]
|
|
2265
|
+
end
|
|
2266
|
+
|
|
1991
2267
|
class RetrievalResultConfluenceLocation
|
|
1992
2268
|
attr_accessor url: ::String
|
|
1993
2269
|
SENSITIVE: []
|
|
@@ -2015,6 +2291,11 @@ module Aws::BedrockAgentRuntime
|
|
|
2015
2291
|
SENSITIVE: []
|
|
2016
2292
|
end
|
|
2017
2293
|
|
|
2294
|
+
class RetrievalResultGoogleDriveLocation
|
|
2295
|
+
attr_accessor url: ::String
|
|
2296
|
+
SENSITIVE: []
|
|
2297
|
+
end
|
|
2298
|
+
|
|
2018
2299
|
class RetrievalResultKendraDocumentLocation
|
|
2019
2300
|
attr_accessor uri: ::String
|
|
2020
2301
|
SENSITIVE: []
|
|
@@ -2023,16 +2304,23 @@ module Aws::BedrockAgentRuntime
|
|
|
2023
2304
|
class RetrievalResultLocation
|
|
2024
2305
|
attr_accessor confluence_location: Types::RetrievalResultConfluenceLocation
|
|
2025
2306
|
attr_accessor custom_document_location: Types::RetrievalResultCustomDocumentLocation
|
|
2307
|
+
attr_accessor google_drive_location: Types::RetrievalResultGoogleDriveLocation
|
|
2026
2308
|
attr_accessor kendra_document_location: Types::RetrievalResultKendraDocumentLocation
|
|
2309
|
+
attr_accessor one_drive_location: Types::RetrievalResultOneDriveLocation
|
|
2027
2310
|
attr_accessor s3_location: Types::RetrievalResultS3Location
|
|
2028
2311
|
attr_accessor salesforce_location: Types::RetrievalResultSalesforceLocation
|
|
2029
2312
|
attr_accessor share_point_location: Types::RetrievalResultSharePointLocation
|
|
2030
2313
|
attr_accessor sql_location: Types::RetrievalResultSqlLocation
|
|
2031
|
-
attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "KENDRA" | "SQL")
|
|
2314
|
+
attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "KENDRA" | "SQL" | "ONEDRIVE" | "GOOGLEDRIVE")
|
|
2032
2315
|
attr_accessor web_location: Types::RetrievalResultWebLocation
|
|
2033
2316
|
SENSITIVE: []
|
|
2034
2317
|
end
|
|
2035
2318
|
|
|
2319
|
+
class RetrievalResultOneDriveLocation
|
|
2320
|
+
attr_accessor url: ::String
|
|
2321
|
+
SENSITIVE: []
|
|
2322
|
+
end
|
|
2323
|
+
|
|
2036
2324
|
class RetrievalResultS3Location
|
|
2037
2325
|
attr_accessor uri: ::String
|
|
2038
2326
|
SENSITIVE: []
|
|
@@ -2086,7 +2374,8 @@ module Aws::BedrockAgentRuntime
|
|
|
2086
2374
|
attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
|
|
2087
2375
|
attr_accessor session_configuration: Types::RetrieveAndGenerateSessionConfiguration
|
|
2088
2376
|
attr_accessor session_id: ::String
|
|
2089
|
-
|
|
2377
|
+
attr_accessor user_context: Types::UserContext
|
|
2378
|
+
SENSITIVE: [:input, :user_context]
|
|
2090
2379
|
end
|
|
2091
2380
|
|
|
2092
2381
|
class RetrieveAndGenerateResponse
|
|
@@ -2107,7 +2396,8 @@ module Aws::BedrockAgentRuntime
|
|
|
2107
2396
|
attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
|
|
2108
2397
|
attr_accessor session_configuration: Types::RetrieveAndGenerateSessionConfiguration
|
|
2109
2398
|
attr_accessor session_id: ::String
|
|
2110
|
-
|
|
2399
|
+
attr_accessor user_context: Types::UserContext
|
|
2400
|
+
SENSITIVE: [:input, :user_context]
|
|
2111
2401
|
end
|
|
2112
2402
|
|
|
2113
2403
|
class RetrieveAndGenerateStreamResponse
|
|
@@ -2122,7 +2412,8 @@ module Aws::BedrockAgentRuntime
|
|
|
2122
2412
|
attr_accessor next_token: ::String
|
|
2123
2413
|
attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
|
|
2124
2414
|
attr_accessor retrieval_query: Types::KnowledgeBaseQuery
|
|
2125
|
-
|
|
2415
|
+
attr_accessor user_context: Types::UserContext
|
|
2416
|
+
SENSITIVE: [:retrieval_query, :user_context]
|
|
2126
2417
|
end
|
|
2127
2418
|
|
|
2128
2419
|
class RetrieveResponse
|
|
@@ -2139,6 +2430,17 @@ module Aws::BedrockAgentRuntime
|
|
|
2139
2430
|
SENSITIVE: [:content, :location, :metadata]
|
|
2140
2431
|
end
|
|
2141
2432
|
|
|
2433
|
+
class RetrieverConfiguration
|
|
2434
|
+
attr_accessor knowledge_base: Types::KnowledgeBaseRetrieverConfiguration
|
|
2435
|
+
attr_accessor unknown: untyped
|
|
2436
|
+
SENSITIVE: []
|
|
2437
|
+
|
|
2438
|
+
class KnowledgeBase < RetrieverConfiguration
|
|
2439
|
+
end
|
|
2440
|
+
class Unknown < RetrieverConfiguration
|
|
2441
|
+
end
|
|
2442
|
+
end
|
|
2443
|
+
|
|
2142
2444
|
class ReturnControlPayload
|
|
2143
2445
|
attr_accessor invocation_id: ::String
|
|
2144
2446
|
attr_accessor invocation_inputs: ::Array[Types::InvocationInputMember]
|
|
@@ -2404,6 +2706,11 @@ module Aws::BedrockAgentRuntime
|
|
|
2404
2706
|
SENSITIVE: []
|
|
2405
2707
|
end
|
|
2406
2708
|
|
|
2709
|
+
class UserContext
|
|
2710
|
+
attr_accessor user_id: ::String
|
|
2711
|
+
SENSITIVE: []
|
|
2712
|
+
end
|
|
2713
|
+
|
|
2407
2714
|
class ValidationException
|
|
2408
2715
|
attr_accessor message: ::String
|
|
2409
2716
|
attr_accessor event_type: untyped
|
|
@@ -2435,6 +2742,10 @@ module Aws::BedrockAgentRuntime
|
|
|
2435
2742
|
SENSITIVE: []
|
|
2436
2743
|
end
|
|
2437
2744
|
|
|
2745
|
+
class AgenticRetrieveStreamResponseOutput < Enumerator[untyped, untyped]
|
|
2746
|
+
def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :conflict_exception, :dependency_failed_exception, :internal_server_exception, :resource_not_found_exception, :response_event, :result, :service_quota_exceeded_exception, :throttling_exception, :trace_event, :validation_exception]
|
|
2747
|
+
end
|
|
2748
|
+
|
|
2438
2749
|
class FlowResponseStream < Enumerator[untyped, untyped]
|
|
2439
2750
|
def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :conflict_exception, :dependency_failed_exception, :flow_completion_event, :flow_multi_turn_input_request_event, :flow_output_event, :flow_trace_event, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
|
|
2440
2751
|
end
|