aws-sdk-bedrockagentruntime 1.4.0 → 1.6.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.
@@ -20,28 +20,57 @@ module Aws::BedrockAgentRuntime
20
20
  ActionGroupOutputString = Shapes::StringShape.new(name: 'ActionGroupOutputString')
21
21
  AgentAliasId = Shapes::StringShape.new(name: 'AgentAliasId')
22
22
  AgentId = Shapes::StringShape.new(name: 'AgentId')
23
+ AgentVersion = Shapes::StringShape.new(name: 'AgentVersion')
24
+ ApiContentMap = Shapes::MapShape.new(name: 'ApiContentMap')
25
+ ApiInvocationInput = Shapes::StructureShape.new(name: 'ApiInvocationInput')
26
+ ApiParameter = Shapes::StructureShape.new(name: 'ApiParameter')
27
+ ApiParameters = Shapes::ListShape.new(name: 'ApiParameters')
23
28
  ApiPath = Shapes::StringShape.new(name: 'ApiPath')
29
+ ApiRequestBody = Shapes::StructureShape.new(name: 'ApiRequestBody')
30
+ ApiResult = Shapes::StructureShape.new(name: 'ApiResult')
24
31
  Attribution = Shapes::StructureShape.new(name: 'Attribution')
25
32
  BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
26
33
  BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
27
34
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
35
+ ByteContentBlob = Shapes::BlobShape.new(name: 'ByteContentBlob')
36
+ ByteContentDoc = Shapes::StructureShape.new(name: 'ByteContentDoc')
28
37
  Citation = Shapes::StructureShape.new(name: 'Citation')
29
38
  Citations = Shapes::ListShape.new(name: 'Citations')
30
39
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
40
+ ContentBody = Shapes::StructureShape.new(name: 'ContentBody')
31
41
  ContentMap = Shapes::MapShape.new(name: 'ContentMap')
42
+ ContentType = Shapes::StringShape.new(name: 'ContentType')
32
43
  CreationMode = Shapes::StringShape.new(name: 'CreationMode')
33
44
  DependencyFailedException = Shapes::StructureShape.new(name: 'DependencyFailedException')
34
45
  Double = Shapes::FloatShape.new(name: 'Double')
46
+ ExternalSource = Shapes::StructureShape.new(name: 'ExternalSource')
47
+ ExternalSourceType = Shapes::StringShape.new(name: 'ExternalSourceType')
48
+ ExternalSources = Shapes::ListShape.new(name: 'ExternalSources')
49
+ ExternalSourcesGenerationConfiguration = Shapes::StructureShape.new(name: 'ExternalSourcesGenerationConfiguration')
50
+ ExternalSourcesRetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'ExternalSourcesRetrieveAndGenerateConfiguration')
35
51
  FailureReasonString = Shapes::StringShape.new(name: 'FailureReasonString')
36
52
  FailureTrace = Shapes::StructureShape.new(name: 'FailureTrace')
53
+ FilterAttribute = Shapes::StructureShape.new(name: 'FilterAttribute')
54
+ FilterKey = Shapes::StringShape.new(name: 'FilterKey')
55
+ FilterValue = Shapes::DocumentShape.new(name: 'FilterValue', document: true)
37
56
  FinalResponse = Shapes::StructureShape.new(name: 'FinalResponse')
38
57
  FinalResponseString = Shapes::StringShape.new(name: 'FinalResponseString')
58
+ Function = Shapes::StringShape.new(name: 'Function')
59
+ FunctionInvocationInput = Shapes::StructureShape.new(name: 'FunctionInvocationInput')
60
+ FunctionParameter = Shapes::StructureShape.new(name: 'FunctionParameter')
61
+ FunctionParameters = Shapes::ListShape.new(name: 'FunctionParameters')
62
+ FunctionResult = Shapes::StructureShape.new(name: 'FunctionResult')
39
63
  GeneratedResponsePart = Shapes::StructureShape.new(name: 'GeneratedResponsePart')
40
64
  GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
65
+ Identifier = Shapes::StringShape.new(name: 'Identifier')
41
66
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
42
67
  InputText = Shapes::StringShape.new(name: 'InputText')
68
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
43
69
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
44
70
  InvocationInput = Shapes::StructureShape.new(name: 'InvocationInput')
71
+ InvocationInputMember = Shapes::UnionShape.new(name: 'InvocationInputMember')
72
+ InvocationInputs = Shapes::ListShape.new(name: 'InvocationInputs')
73
+ InvocationResultMember = Shapes::UnionShape.new(name: 'InvocationResultMember')
45
74
  InvocationType = Shapes::StringShape.new(name: 'InvocationType')
46
75
  InvokeAgentRequest = Shapes::StructureShape.new(name: 'InvokeAgentRequest')
47
76
  InvokeAgentResponse = Shapes::StructureShape.new(name: 'InvokeAgentResponse')
@@ -68,6 +97,7 @@ module Aws::BedrockAgentRuntime
68
97
  OrchestrationTrace = Shapes::UnionShape.new(name: 'OrchestrationTrace')
69
98
  OutputString = Shapes::StringShape.new(name: 'OutputString')
70
99
  Parameter = Shapes::StructureShape.new(name: 'Parameter')
100
+ ParameterList = Shapes::ListShape.new(name: 'ParameterList')
71
101
  Parameters = Shapes::ListShape.new(name: 'Parameters')
72
102
  PartBody = Shapes::BlobShape.new(name: 'PartBody')
73
103
  PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
@@ -81,15 +111,23 @@ module Aws::BedrockAgentRuntime
81
111
  PromptTemplate = Shapes::StructureShape.new(name: 'PromptTemplate')
82
112
  PromptText = Shapes::StringShape.new(name: 'PromptText')
83
113
  PromptType = Shapes::StringShape.new(name: 'PromptType')
114
+ PropertyParameters = Shapes::StructureShape.new(name: 'PropertyParameters')
84
115
  Rationale = Shapes::StructureShape.new(name: 'Rationale')
85
116
  RationaleString = Shapes::StringShape.new(name: 'RationaleString')
86
117
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
87
118
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
88
119
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
120
+ ResponseBody = Shapes::MapShape.new(name: 'ResponseBody')
121
+ ResponseState = Shapes::StringShape.new(name: 'ResponseState')
89
122
  ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
123
+ RetrievalFilter = Shapes::UnionShape.new(name: 'RetrievalFilter')
124
+ RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
90
125
  RetrievalResultContent = Shapes::StructureShape.new(name: 'RetrievalResultContent')
91
126
  RetrievalResultLocation = Shapes::StructureShape.new(name: 'RetrievalResultLocation')
92
127
  RetrievalResultLocationType = Shapes::StringShape.new(name: 'RetrievalResultLocationType')
128
+ RetrievalResultMetadata = Shapes::MapShape.new(name: 'RetrievalResultMetadata')
129
+ RetrievalResultMetadataKey = Shapes::StringShape.new(name: 'RetrievalResultMetadataKey')
130
+ RetrievalResultMetadataValue = Shapes::DocumentShape.new(name: 'RetrievalResultMetadataValue', document: true)
93
131
  RetrievalResultS3Location = Shapes::StructureShape.new(name: 'RetrievalResultS3Location')
94
132
  RetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'RetrieveAndGenerateConfiguration')
95
133
  RetrieveAndGenerateInput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateInput')
@@ -103,6 +141,10 @@ module Aws::BedrockAgentRuntime
103
141
  RetrieveResponse = Shapes::StructureShape.new(name: 'RetrieveResponse')
104
142
  RetrievedReference = Shapes::StructureShape.new(name: 'RetrievedReference')
105
143
  RetrievedReferences = Shapes::ListShape.new(name: 'RetrievedReferences')
144
+ ReturnControlInvocationResults = Shapes::ListShape.new(name: 'ReturnControlInvocationResults')
145
+ ReturnControlPayload = Shapes::StructureShape.new(name: 'ReturnControlPayload')
146
+ S3ObjectDoc = Shapes::StructureShape.new(name: 'S3ObjectDoc')
147
+ S3Uri = Shapes::StringShape.new(name: 'S3Uri')
106
148
  SearchType = Shapes::StringShape.new(name: 'SearchType')
107
149
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
108
150
  SessionAttributesMap = Shapes::MapShape.new(name: 'SessionAttributesMap')
@@ -133,6 +175,7 @@ module Aws::BedrockAgentRuntime
133
175
 
134
176
  ActionGroupInvocationInput.add_member(:action_group_name, Shapes::ShapeRef.new(shape: ActionGroupName, location_name: "actionGroupName"))
135
177
  ActionGroupInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
178
+ ActionGroupInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: Function, location_name: "function"))
136
179
  ActionGroupInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "parameters"))
137
180
  ActionGroupInvocationInput.add_member(:request_body, Shapes::ShapeRef.new(shape: RequestBody, location_name: "requestBody"))
138
181
  ActionGroupInvocationInput.add_member(:verb, Shapes::ShapeRef.new(shape: Verb, location_name: "verb"))
@@ -141,6 +184,34 @@ module Aws::BedrockAgentRuntime
141
184
  ActionGroupInvocationOutput.add_member(:text, Shapes::ShapeRef.new(shape: ActionGroupOutputString, location_name: "text"))
142
185
  ActionGroupInvocationOutput.struct_class = Types::ActionGroupInvocationOutput
143
186
 
187
+ ApiContentMap.key = Shapes::ShapeRef.new(shape: String)
188
+ ApiContentMap.value = Shapes::ShapeRef.new(shape: PropertyParameters)
189
+
190
+ ApiInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
191
+ ApiInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
192
+ ApiInvocationInput.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
193
+ ApiInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ApiParameters, location_name: "parameters"))
194
+ ApiInvocationInput.add_member(:request_body, Shapes::ShapeRef.new(shape: ApiRequestBody, location_name: "requestBody"))
195
+ ApiInvocationInput.struct_class = Types::ApiInvocationInput
196
+
197
+ ApiParameter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
198
+ ApiParameter.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
199
+ ApiParameter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
200
+ ApiParameter.struct_class = Types::ApiParameter
201
+
202
+ ApiParameters.member = Shapes::ShapeRef.new(shape: ApiParameter)
203
+
204
+ ApiRequestBody.add_member(:content, Shapes::ShapeRef.new(shape: ApiContentMap, location_name: "content"))
205
+ ApiRequestBody.struct_class = Types::ApiRequestBody
206
+
207
+ ApiResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
208
+ ApiResult.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
209
+ ApiResult.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
210
+ ApiResult.add_member(:http_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "httpStatusCode"))
211
+ ApiResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
212
+ ApiResult.add_member(:response_state, Shapes::ShapeRef.new(shape: ResponseState, location_name: "responseState"))
213
+ ApiResult.struct_class = Types::ApiResult
214
+
144
215
  Attribution.add_member(:citations, Shapes::ShapeRef.new(shape: Citations, location_name: "citations"))
145
216
  Attribution.struct_class = Types::Attribution
146
217
 
@@ -148,6 +219,11 @@ module Aws::BedrockAgentRuntime
148
219
  BadGatewayException.add_member(:resource_name, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "resourceName"))
149
220
  BadGatewayException.struct_class = Types::BadGatewayException
150
221
 
222
+ ByteContentDoc.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location_name: "contentType"))
223
+ ByteContentDoc.add_member(:data, Shapes::ShapeRef.new(shape: ByteContentBlob, required: true, location_name: "data"))
224
+ ByteContentDoc.add_member(:identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "identifier"))
225
+ ByteContentDoc.struct_class = Types::ByteContentDoc
226
+
151
227
  Citation.add_member(:generated_response_part, Shapes::ShapeRef.new(shape: GeneratedResponsePart, location_name: "generatedResponsePart"))
152
228
  Citation.add_member(:retrieved_references, Shapes::ShapeRef.new(shape: RetrievedReferences, location_name: "retrievedReferences"))
153
229
  Citation.struct_class = Types::Citation
@@ -157,6 +233,9 @@ module Aws::BedrockAgentRuntime
157
233
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
158
234
  ConflictException.struct_class = Types::ConflictException
159
235
 
236
+ ContentBody.add_member(:body, Shapes::ShapeRef.new(shape: String, location_name: "body"))
237
+ ContentBody.struct_class = Types::ContentBody
238
+
160
239
  ContentMap.key = Shapes::ShapeRef.new(shape: String)
161
240
  ContentMap.value = Shapes::ShapeRef.new(shape: Parameters)
162
241
 
@@ -164,13 +243,50 @@ module Aws::BedrockAgentRuntime
164
243
  DependencyFailedException.add_member(:resource_name, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "resourceName"))
165
244
  DependencyFailedException.struct_class = Types::DependencyFailedException
166
245
 
246
+ ExternalSource.add_member(:byte_content, Shapes::ShapeRef.new(shape: ByteContentDoc, location_name: "byteContent"))
247
+ ExternalSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3ObjectDoc, location_name: "s3Location"))
248
+ ExternalSource.add_member(:source_type, Shapes::ShapeRef.new(shape: ExternalSourceType, required: true, location_name: "sourceType"))
249
+ ExternalSource.struct_class = Types::ExternalSource
250
+
251
+ ExternalSources.member = Shapes::ShapeRef.new(shape: ExternalSource)
252
+
253
+ ExternalSourcesGenerationConfiguration.add_member(:prompt_template, Shapes::ShapeRef.new(shape: PromptTemplate, location_name: "promptTemplate"))
254
+ ExternalSourcesGenerationConfiguration.struct_class = Types::ExternalSourcesGenerationConfiguration
255
+
256
+ ExternalSourcesRetrieveAndGenerateConfiguration.add_member(:generation_configuration, Shapes::ShapeRef.new(shape: ExternalSourcesGenerationConfiguration, location_name: "generationConfiguration"))
257
+ ExternalSourcesRetrieveAndGenerateConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
258
+ ExternalSourcesRetrieveAndGenerateConfiguration.add_member(:sources, Shapes::ShapeRef.new(shape: ExternalSources, required: true, location_name: "sources"))
259
+ ExternalSourcesRetrieveAndGenerateConfiguration.struct_class = Types::ExternalSourcesRetrieveAndGenerateConfiguration
260
+
167
261
  FailureTrace.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReasonString, location_name: "failureReason"))
168
262
  FailureTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
169
263
  FailureTrace.struct_class = Types::FailureTrace
170
264
 
265
+ FilterAttribute.add_member(:key, Shapes::ShapeRef.new(shape: FilterKey, required: true, location_name: "key"))
266
+ FilterAttribute.add_member(:value, Shapes::ShapeRef.new(shape: FilterValue, required: true, location_name: "value"))
267
+ FilterAttribute.struct_class = Types::FilterAttribute
268
+
171
269
  FinalResponse.add_member(:text, Shapes::ShapeRef.new(shape: FinalResponseString, location_name: "text"))
172
270
  FinalResponse.struct_class = Types::FinalResponse
173
271
 
272
+ FunctionInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
273
+ FunctionInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
274
+ FunctionInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: FunctionParameters, location_name: "parameters"))
275
+ FunctionInvocationInput.struct_class = Types::FunctionInvocationInput
276
+
277
+ FunctionParameter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
278
+ FunctionParameter.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
279
+ FunctionParameter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
280
+ FunctionParameter.struct_class = Types::FunctionParameter
281
+
282
+ FunctionParameters.member = Shapes::ShapeRef.new(shape: FunctionParameter)
283
+
284
+ FunctionResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
285
+ FunctionResult.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
286
+ FunctionResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
287
+ FunctionResult.add_member(:response_state, Shapes::ShapeRef.new(shape: ResponseState, location_name: "responseState"))
288
+ FunctionResult.struct_class = Types::FunctionResult
289
+
174
290
  GeneratedResponsePart.add_member(:text_response_part, Shapes::ShapeRef.new(shape: TextResponsePart, location_name: "textResponsePart"))
175
291
  GeneratedResponsePart.struct_class = Types::GeneratedResponsePart
176
292
 
@@ -193,11 +309,29 @@ module Aws::BedrockAgentRuntime
193
309
  InvocationInput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
194
310
  InvocationInput.struct_class = Types::InvocationInput
195
311
 
312
+ InvocationInputMember.add_member(:api_invocation_input, Shapes::ShapeRef.new(shape: ApiInvocationInput, location_name: "apiInvocationInput"))
313
+ InvocationInputMember.add_member(:function_invocation_input, Shapes::ShapeRef.new(shape: FunctionInvocationInput, location_name: "functionInvocationInput"))
314
+ InvocationInputMember.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
315
+ InvocationInputMember.add_member_subclass(:api_invocation_input, Types::InvocationInputMember::ApiInvocationInput)
316
+ InvocationInputMember.add_member_subclass(:function_invocation_input, Types::InvocationInputMember::FunctionInvocationInput)
317
+ InvocationInputMember.add_member_subclass(:unknown, Types::InvocationInputMember::Unknown)
318
+ InvocationInputMember.struct_class = Types::InvocationInputMember
319
+
320
+ InvocationInputs.member = Shapes::ShapeRef.new(shape: InvocationInputMember)
321
+
322
+ InvocationResultMember.add_member(:api_result, Shapes::ShapeRef.new(shape: ApiResult, location_name: "apiResult"))
323
+ InvocationResultMember.add_member(:function_result, Shapes::ShapeRef.new(shape: FunctionResult, location_name: "functionResult"))
324
+ InvocationResultMember.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
325
+ InvocationResultMember.add_member_subclass(:api_result, Types::InvocationResultMember::ApiResult)
326
+ InvocationResultMember.add_member_subclass(:function_result, Types::InvocationResultMember::FunctionResult)
327
+ InvocationResultMember.add_member_subclass(:unknown, Types::InvocationResultMember::Unknown)
328
+ InvocationResultMember.struct_class = Types::InvocationResultMember
329
+
196
330
  InvokeAgentRequest.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, required: true, location: "uri", location_name: "agentAliasId"))
197
331
  InvokeAgentRequest.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, required: true, location: "uri", location_name: "agentId"))
198
332
  InvokeAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
199
333
  InvokeAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
200
- InvokeAgentRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: InputText, required: true, location_name: "inputText"))
334
+ InvokeAgentRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: InputText, location_name: "inputText"))
201
335
  InvokeAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
202
336
  InvokeAgentRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
203
337
  InvokeAgentRequest.struct_class = Types::InvokeAgentRequest
@@ -224,6 +358,7 @@ module Aws::BedrockAgentRuntime
224
358
 
225
359
  KnowledgeBaseRetrievalResult.add_member(:content, Shapes::ShapeRef.new(shape: RetrievalResultContent, required: true, location_name: "content"))
226
360
  KnowledgeBaseRetrievalResult.add_member(:location, Shapes::ShapeRef.new(shape: RetrievalResultLocation, location_name: "location"))
361
+ KnowledgeBaseRetrievalResult.add_member(:metadata, Shapes::ShapeRef.new(shape: RetrievalResultMetadata, location_name: "metadata"))
227
362
  KnowledgeBaseRetrievalResult.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
228
363
  KnowledgeBaseRetrievalResult.struct_class = Types::KnowledgeBaseRetrievalResult
229
364
 
@@ -235,6 +370,7 @@ module Aws::BedrockAgentRuntime
235
370
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
236
371
  KnowledgeBaseRetrieveAndGenerateConfiguration.struct_class = Types::KnowledgeBaseRetrieveAndGenerateConfiguration
237
372
 
373
+ KnowledgeBaseVectorSearchConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: RetrievalFilter, location_name: "filter"))
238
374
  KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, location_name: "numberOfResults", metadata: {"box"=>true}))
239
375
  KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
240
376
  KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
@@ -273,6 +409,8 @@ module Aws::BedrockAgentRuntime
273
409
  Parameter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
274
410
  Parameter.struct_class = Types::Parameter
275
411
 
412
+ ParameterList.member = Shapes::ShapeRef.new(shape: Parameter)
413
+
276
414
  Parameters.member = Shapes::ShapeRef.new(shape: Parameter)
277
415
 
278
416
  PayloadPart.add_member(:attribution, Shapes::ShapeRef.new(shape: Attribution, location_name: "attribution"))
@@ -316,6 +454,9 @@ module Aws::BedrockAgentRuntime
316
454
  PromptTemplate.add_member(:text_prompt_template, Shapes::ShapeRef.new(shape: TextPromptTemplate, location_name: "textPromptTemplate"))
317
455
  PromptTemplate.struct_class = Types::PromptTemplate
318
456
 
457
+ PropertyParameters.add_member(:properties, Shapes::ShapeRef.new(shape: ParameterList, location_name: "properties"))
458
+ PropertyParameters.struct_class = Types::PropertyParameters
459
+
319
460
  Rationale.add_member(:text, Shapes::ShapeRef.new(shape: RationaleString, location_name: "text"))
320
461
  Rationale.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
321
462
  Rationale.struct_class = Types::Rationale
@@ -330,6 +471,9 @@ module Aws::BedrockAgentRuntime
330
471
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
331
472
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
332
473
 
474
+ ResponseBody.key = Shapes::ShapeRef.new(shape: String)
475
+ ResponseBody.value = Shapes::ShapeRef.new(shape: ContentBody)
476
+
333
477
  ResponseStream.add_member(:access_denied_exception, Shapes::ShapeRef.new(shape: AccessDeniedException, location_name: "accessDeniedException"))
334
478
  ResponseStream.add_member(:bad_gateway_exception, Shapes::ShapeRef.new(shape: BadGatewayException, location_name: "badGatewayException"))
335
479
  ResponseStream.add_member(:chunk, Shapes::ShapeRef.new(shape: PayloadPart, event: true, location_name: "chunk"))
@@ -337,12 +481,41 @@ module Aws::BedrockAgentRuntime
337
481
  ResponseStream.add_member(:dependency_failed_exception, Shapes::ShapeRef.new(shape: DependencyFailedException, location_name: "dependencyFailedException"))
338
482
  ResponseStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
339
483
  ResponseStream.add_member(:resource_not_found_exception, Shapes::ShapeRef.new(shape: ResourceNotFoundException, location_name: "resourceNotFoundException"))
484
+ ResponseStream.add_member(:return_control, Shapes::ShapeRef.new(shape: ReturnControlPayload, event: true, location_name: "returnControl"))
340
485
  ResponseStream.add_member(:service_quota_exceeded_exception, Shapes::ShapeRef.new(shape: ServiceQuotaExceededException, location_name: "serviceQuotaExceededException"))
341
486
  ResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
342
487
  ResponseStream.add_member(:trace, Shapes::ShapeRef.new(shape: TracePart, event: true, location_name: "trace"))
343
488
  ResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
344
489
  ResponseStream.struct_class = Types::ResponseStream
345
490
 
491
+ RetrievalFilter.add_member(:and_all, Shapes::ShapeRef.new(shape: RetrievalFilterList, location_name: "andAll"))
492
+ RetrievalFilter.add_member(:equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "equals"))
493
+ RetrievalFilter.add_member(:greater_than, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "greaterThan"))
494
+ RetrievalFilter.add_member(:greater_than_or_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "greaterThanOrEquals"))
495
+ RetrievalFilter.add_member(:in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "in"))
496
+ RetrievalFilter.add_member(:less_than, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThan"))
497
+ RetrievalFilter.add_member(:less_than_or_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThanOrEquals"))
498
+ RetrievalFilter.add_member(:not_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notEquals"))
499
+ RetrievalFilter.add_member(:not_in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notIn"))
500
+ RetrievalFilter.add_member(:or_all, Shapes::ShapeRef.new(shape: RetrievalFilterList, location_name: "orAll"))
501
+ RetrievalFilter.add_member(:starts_with, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "startsWith"))
502
+ RetrievalFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
503
+ RetrievalFilter.add_member_subclass(:and_all, Types::RetrievalFilter::AndAll)
504
+ RetrievalFilter.add_member_subclass(:equals, Types::RetrievalFilter::Equals)
505
+ RetrievalFilter.add_member_subclass(:greater_than, Types::RetrievalFilter::GreaterThan)
506
+ RetrievalFilter.add_member_subclass(:greater_than_or_equals, Types::RetrievalFilter::GreaterThanOrEquals)
507
+ RetrievalFilter.add_member_subclass(:in, Types::RetrievalFilter::In)
508
+ RetrievalFilter.add_member_subclass(:less_than, Types::RetrievalFilter::LessThan)
509
+ RetrievalFilter.add_member_subclass(:less_than_or_equals, Types::RetrievalFilter::LessThanOrEquals)
510
+ RetrievalFilter.add_member_subclass(:not_equals, Types::RetrievalFilter::NotEquals)
511
+ RetrievalFilter.add_member_subclass(:not_in, Types::RetrievalFilter::NotIn)
512
+ RetrievalFilter.add_member_subclass(:or_all, Types::RetrievalFilter::OrAll)
513
+ RetrievalFilter.add_member_subclass(:starts_with, Types::RetrievalFilter::StartsWith)
514
+ RetrievalFilter.add_member_subclass(:unknown, Types::RetrievalFilter::Unknown)
515
+ RetrievalFilter.struct_class = Types::RetrievalFilter
516
+
517
+ RetrievalFilterList.member = Shapes::ShapeRef.new(shape: RetrievalFilter)
518
+
346
519
  RetrievalResultContent.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
347
520
  RetrievalResultContent.struct_class = Types::RetrievalResultContent
348
521
 
@@ -350,9 +523,13 @@ module Aws::BedrockAgentRuntime
350
523
  RetrievalResultLocation.add_member(:type, Shapes::ShapeRef.new(shape: RetrievalResultLocationType, required: true, location_name: "type"))
351
524
  RetrievalResultLocation.struct_class = Types::RetrievalResultLocation
352
525
 
526
+ RetrievalResultMetadata.key = Shapes::ShapeRef.new(shape: RetrievalResultMetadataKey)
527
+ RetrievalResultMetadata.value = Shapes::ShapeRef.new(shape: RetrievalResultMetadataValue)
528
+
353
529
  RetrievalResultS3Location.add_member(:uri, Shapes::ShapeRef.new(shape: String, location_name: "uri"))
354
530
  RetrievalResultS3Location.struct_class = Types::RetrievalResultS3Location
355
531
 
532
+ RetrieveAndGenerateConfiguration.add_member(:external_sources_configuration, Shapes::ShapeRef.new(shape: ExternalSourcesRetrieveAndGenerateConfiguration, location_name: "externalSourcesConfiguration"))
356
533
  RetrieveAndGenerateConfiguration.add_member(:knowledge_base_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrieveAndGenerateConfiguration, location_name: "knowledgeBaseConfiguration"))
357
534
  RetrieveAndGenerateConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: RetrieveAndGenerateType, required: true, location_name: "type"))
358
535
  RetrieveAndGenerateConfiguration.struct_class = Types::RetrieveAndGenerateConfiguration
@@ -389,17 +566,29 @@ module Aws::BedrockAgentRuntime
389
566
 
390
567
  RetrievedReference.add_member(:content, Shapes::ShapeRef.new(shape: RetrievalResultContent, location_name: "content"))
391
568
  RetrievedReference.add_member(:location, Shapes::ShapeRef.new(shape: RetrievalResultLocation, location_name: "location"))
569
+ RetrievedReference.add_member(:metadata, Shapes::ShapeRef.new(shape: RetrievalResultMetadata, location_name: "metadata"))
392
570
  RetrievedReference.struct_class = Types::RetrievedReference
393
571
 
394
572
  RetrievedReferences.member = Shapes::ShapeRef.new(shape: RetrievedReference)
395
573
 
574
+ ReturnControlInvocationResults.member = Shapes::ShapeRef.new(shape: InvocationResultMember)
575
+
576
+ ReturnControlPayload.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
577
+ ReturnControlPayload.add_member(:invocation_inputs, Shapes::ShapeRef.new(shape: InvocationInputs, location_name: "invocationInputs"))
578
+ ReturnControlPayload.struct_class = Types::ReturnControlPayload
579
+
580
+ S3ObjectDoc.add_member(:uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "uri"))
581
+ S3ObjectDoc.struct_class = Types::S3ObjectDoc
582
+
396
583
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
397
584
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
398
585
 
399
586
  SessionAttributesMap.key = Shapes::ShapeRef.new(shape: String)
400
587
  SessionAttributesMap.value = Shapes::ShapeRef.new(shape: String)
401
588
 
589
+ SessionState.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
402
590
  SessionState.add_member(:prompt_session_attributes, Shapes::ShapeRef.new(shape: PromptSessionAttributesMap, location_name: "promptSessionAttributes"))
591
+ SessionState.add_member(:return_control_invocation_results, Shapes::ShapeRef.new(shape: ReturnControlInvocationResults, location_name: "returnControlInvocationResults"))
403
592
  SessionState.add_member(:session_attributes, Shapes::ShapeRef.new(shape: SessionAttributesMap, location_name: "sessionAttributes"))
404
593
  SessionState.struct_class = Types::SessionState
405
594
 
@@ -430,6 +619,7 @@ module Aws::BedrockAgentRuntime
430
619
 
431
620
  TracePart.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, location_name: "agentAliasId"))
432
621
  TracePart.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, location_name: "agentId"))
622
+ TracePart.add_member(:agent_version, Shapes::ShapeRef.new(shape: AgentVersion, location_name: "agentVersion"))
433
623
  TracePart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
434
624
  TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
435
625
  TracePart.struct_class = Types::TracePart
@@ -43,6 +43,10 @@ module Aws::BedrockAgentRuntime
43
43
  @event_emitter.on(:resource_not_found_exception, block) if block_given?
44
44
  end
45
45
 
46
+ def on_return_control_event(&block)
47
+ @event_emitter.on(:return_control, block) if block_given?
48
+ end
49
+
46
50
  def on_service_quota_exceeded_exception_event(&block)
47
51
  @event_emitter.on(:service_quota_exceeded_exception, block) if block_given?
48
52
  end
@@ -79,6 +83,7 @@ module Aws::BedrockAgentRuntime
79
83
  on_dependency_failed_exception_event(&block)
80
84
  on_internal_server_exception_event(&block)
81
85
  on_resource_not_found_exception_event(&block)
86
+ on_return_control_event(&block)
82
87
  on_service_quota_exceeded_exception_event(&block)
83
88
  on_throttling_exception_event(&block)
84
89
  on_trace_event(&block)