aws-sdk-bedrockagentruntime 1.34.0 → 1.36.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.
@@ -15,6 +15,7 @@ module Aws::BedrockAgentRuntime
15
15
  include Seahorse::Model
16
16
 
17
17
  APISchema = Shapes::UnionShape.new(name: 'APISchema')
18
+ AWSResourceARN = Shapes::StringShape.new(name: 'AWSResourceARN')
18
19
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
19
20
  ActionGroupExecutor = Shapes::UnionShape.new(name: 'ActionGroupExecutor')
20
21
  ActionGroupInvocationInput = Shapes::StructureShape.new(name: 'ActionGroupInvocationInput')
@@ -28,7 +29,13 @@ module Aws::BedrockAgentRuntime
28
29
  AdditionalModelRequestFieldsValue = Shapes::DocumentShape.new(name: 'AdditionalModelRequestFieldsValue', document: true)
29
30
  AgentActionGroup = Shapes::StructureShape.new(name: 'AgentActionGroup')
30
31
  AgentActionGroups = Shapes::ListShape.new(name: 'AgentActionGroups')
32
+ AgentAliasArn = Shapes::StringShape.new(name: 'AgentAliasArn')
31
33
  AgentAliasId = Shapes::StringShape.new(name: 'AgentAliasId')
34
+ AgentCollaboratorInputPayload = Shapes::StructureShape.new(name: 'AgentCollaboratorInputPayload')
35
+ AgentCollaboratorInvocationInput = Shapes::StructureShape.new(name: 'AgentCollaboratorInvocationInput')
36
+ AgentCollaboratorInvocationOutput = Shapes::StructureShape.new(name: 'AgentCollaboratorInvocationOutput')
37
+ AgentCollaboratorOutputPayload = Shapes::StructureShape.new(name: 'AgentCollaboratorOutputPayload')
38
+ AgentCollaboratorPayloadString = Shapes::StringShape.new(name: 'AgentCollaboratorPayloadString')
32
39
  AgentId = Shapes::StringShape.new(name: 'AgentId')
33
40
  AgentVersion = Shapes::StringShape.new(name: 'AgentVersion')
34
41
  AnalyzePromptEvent = Shapes::StructureShape.new(name: 'AnalyzePromptEvent')
@@ -39,23 +46,35 @@ module Aws::BedrockAgentRuntime
39
46
  ApiPath = Shapes::StringShape.new(name: 'ApiPath')
40
47
  ApiRequestBody = Shapes::StructureShape.new(name: 'ApiRequestBody')
41
48
  ApiResult = Shapes::StructureShape.new(name: 'ApiResult')
49
+ AttributeType = Shapes::StringShape.new(name: 'AttributeType')
42
50
  Attribution = Shapes::StructureShape.new(name: 'Attribution')
43
51
  BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
44
52
  BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
45
53
  BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
54
+ BedrockRerankingConfiguration = Shapes::StructureShape.new(name: 'BedrockRerankingConfiguration')
55
+ BedrockRerankingConfigurationNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'BedrockRerankingConfigurationNumberOfResultsInteger')
56
+ BedrockRerankingModelArn = Shapes::StringShape.new(name: 'BedrockRerankingModelArn')
57
+ BedrockRerankingModelConfiguration = Shapes::StructureShape.new(name: 'BedrockRerankingModelConfiguration')
46
58
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
47
59
  ByteContentBlob = Shapes::BlobShape.new(name: 'ByteContentBlob')
48
60
  ByteContentDoc = Shapes::StructureShape.new(name: 'ByteContentDoc')
49
61
  ByteContentFile = Shapes::StructureShape.new(name: 'ByteContentFile')
62
+ Caller = Shapes::UnionShape.new(name: 'Caller')
63
+ CallerChain = Shapes::ListShape.new(name: 'CallerChain')
50
64
  Citation = Shapes::StructureShape.new(name: 'Citation')
65
+ CitationEvent = Shapes::StructureShape.new(name: 'CitationEvent')
51
66
  Citations = Shapes::ListShape.new(name: 'Citations')
52
67
  CodeInterpreterInvocationInput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationInput')
53
68
  CodeInterpreterInvocationOutput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationOutput')
54
69
  ConfirmationState = Shapes::StringShape.new(name: 'ConfirmationState')
55
70
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
71
+ ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock')
72
+ ContentBlocks = Shapes::ListShape.new(name: 'ContentBlocks')
56
73
  ContentBody = Shapes::StructureShape.new(name: 'ContentBody')
57
74
  ContentMap = Shapes::MapShape.new(name: 'ContentMap')
58
75
  ContentType = Shapes::StringShape.new(name: 'ContentType')
76
+ ConversationHistory = Shapes::StructureShape.new(name: 'ConversationHistory')
77
+ ConversationRole = Shapes::StringShape.new(name: 'ConversationRole')
59
78
  CreationMode = Shapes::StringShape.new(name: 'CreationMode')
60
79
  CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
61
80
  CustomOrchestrationTrace = Shapes::StructureShape.new(name: 'CustomOrchestrationTrace')
@@ -74,6 +93,9 @@ module Aws::BedrockAgentRuntime
74
93
  ExternalSourcesRetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'ExternalSourcesRetrieveAndGenerateConfiguration')
75
94
  FailureReasonString = Shapes::StringShape.new(name: 'FailureReasonString')
76
95
  FailureTrace = Shapes::StructureShape.new(name: 'FailureTrace')
96
+ FieldForReranking = Shapes::StructureShape.new(name: 'FieldForReranking')
97
+ FieldForRerankingFieldNameString = Shapes::StringShape.new(name: 'FieldForRerankingFieldNameString')
98
+ FieldsForReranking = Shapes::ListShape.new(name: 'FieldsForReranking')
77
99
  FileBody = Shapes::BlobShape.new(name: 'FileBody')
78
100
  FilePart = Shapes::StructureShape.new(name: 'FilePart')
79
101
  FileSource = Shapes::StructureShape.new(name: 'FileSource')
@@ -85,6 +107,7 @@ module Aws::BedrockAgentRuntime
85
107
  FilterValue = Shapes::DocumentShape.new(name: 'FilterValue', document: true)
86
108
  FinalResponse = Shapes::StructureShape.new(name: 'FinalResponse')
87
109
  FinalResponseString = Shapes::StringShape.new(name: 'FinalResponseString')
110
+ Float = Shapes::FloatShape.new(name: 'Float')
88
111
  FlowAliasIdentifier = Shapes::StringShape.new(name: 'FlowAliasIdentifier')
89
112
  FlowCompletionEvent = Shapes::StructureShape.new(name: 'FlowCompletionEvent')
90
113
  FlowCompletionReason = Shapes::StringShape.new(name: 'FlowCompletionReason')
@@ -137,6 +160,7 @@ module Aws::BedrockAgentRuntime
137
160
  GuardrailContentPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailContentPolicyAssessment')
138
161
  GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
139
162
  GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
163
+ GuardrailEvent = Shapes::StructureShape.new(name: 'GuardrailEvent')
140
164
  GuardrailIdentifierWithArn = Shapes::StringShape.new(name: 'GuardrailIdentifierWithArn')
141
165
  GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
142
166
  GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
@@ -158,6 +182,7 @@ module Aws::BedrockAgentRuntime
158
182
  GuardrailWordPolicyAction = Shapes::StringShape.new(name: 'GuardrailWordPolicyAction')
159
183
  GuardrailWordPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailWordPolicyAssessment')
160
184
  Identifier = Shapes::StringShape.new(name: 'Identifier')
185
+ ImplicitFilterConfiguration = Shapes::StructureShape.new(name: 'ImplicitFilterConfiguration')
161
186
  InferenceConfig = Shapes::StructureShape.new(name: 'InferenceConfig')
162
187
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
163
188
  InlineAgentFilePart = Shapes::StructureShape.new(name: 'InlineAgentFilePart')
@@ -211,10 +236,18 @@ module Aws::BedrockAgentRuntime
211
236
  MemoryId = Shapes::StringShape.new(name: 'MemoryId')
212
237
  MemorySessionSummary = Shapes::StructureShape.new(name: 'MemorySessionSummary')
213
238
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
239
+ Message = Shapes::StructureShape.new(name: 'Message')
240
+ Messages = Shapes::ListShape.new(name: 'Messages')
214
241
  Metadata = Shapes::StructureShape.new(name: 'Metadata')
242
+ MetadataAttributeSchema = Shapes::StructureShape.new(name: 'MetadataAttributeSchema')
243
+ MetadataAttributeSchemaDescriptionString = Shapes::StringShape.new(name: 'MetadataAttributeSchemaDescriptionString')
244
+ MetadataAttributeSchemaKeyString = Shapes::StringShape.new(name: 'MetadataAttributeSchemaKeyString')
245
+ MetadataAttributeSchemaList = Shapes::ListShape.new(name: 'MetadataAttributeSchemaList')
246
+ MetadataConfigurationForReranking = Shapes::StructureShape.new(name: 'MetadataConfigurationForReranking')
215
247
  MimeType = Shapes::StringShape.new(name: 'MimeType')
216
248
  ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
217
249
  ModelInvocationInput = Shapes::StructureShape.new(name: 'ModelInvocationInput')
250
+ Name = Shapes::StringShape.new(name: 'Name')
218
251
  NextToken = Shapes::StringShape.new(name: 'NextToken')
219
252
  NodeInputName = Shapes::StringShape.new(name: 'NodeInputName')
220
253
  NodeName = Shapes::StringShape.new(name: 'NodeName')
@@ -245,6 +278,7 @@ module Aws::BedrockAgentRuntime
245
278
  PartBody = Shapes::BlobShape.new(name: 'PartBody')
246
279
  Payload = Shapes::StringShape.new(name: 'Payload')
247
280
  PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
281
+ PayloadType = Shapes::StringShape.new(name: 'PayloadType')
248
282
  PostProcessingModelInvocationOutput = Shapes::StructureShape.new(name: 'PostProcessingModelInvocationOutput')
249
283
  PostProcessingParsedResponse = Shapes::StructureShape.new(name: 'PostProcessingParsedResponse')
250
284
  PostProcessingTrace = Shapes::UnionShape.new(name: 'PostProcessingTrace')
@@ -270,6 +304,25 @@ module Aws::BedrockAgentRuntime
270
304
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
271
305
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
272
306
  RequireConfirmation = Shapes::StringShape.new(name: 'RequireConfirmation')
307
+ RerankDocument = Shapes::StructureShape.new(name: 'RerankDocument')
308
+ RerankDocumentType = Shapes::StringShape.new(name: 'RerankDocumentType')
309
+ RerankQueriesList = Shapes::ListShape.new(name: 'RerankQueriesList')
310
+ RerankQuery = Shapes::StructureShape.new(name: 'RerankQuery')
311
+ RerankQueryContentType = Shapes::StringShape.new(name: 'RerankQueryContentType')
312
+ RerankRequest = Shapes::StructureShape.new(name: 'RerankRequest')
313
+ RerankResponse = Shapes::StructureShape.new(name: 'RerankResponse')
314
+ RerankResult = Shapes::StructureShape.new(name: 'RerankResult')
315
+ RerankResultIndexInteger = Shapes::IntegerShape.new(name: 'RerankResultIndexInteger')
316
+ RerankResultsList = Shapes::ListShape.new(name: 'RerankResultsList')
317
+ RerankSource = Shapes::StructureShape.new(name: 'RerankSource')
318
+ RerankSourceType = Shapes::StringShape.new(name: 'RerankSourceType')
319
+ RerankSourcesList = Shapes::ListShape.new(name: 'RerankSourcesList')
320
+ RerankTextDocument = Shapes::StructureShape.new(name: 'RerankTextDocument')
321
+ RerankTextDocumentTextString = Shapes::StringShape.new(name: 'RerankTextDocumentTextString')
322
+ RerankingConfiguration = Shapes::StructureShape.new(name: 'RerankingConfiguration')
323
+ RerankingConfigurationType = Shapes::StringShape.new(name: 'RerankingConfigurationType')
324
+ RerankingMetadataSelectionMode = Shapes::StringShape.new(name: 'RerankingMetadataSelectionMode')
325
+ RerankingMetadataSelectiveModeConfiguration = Shapes::UnionShape.new(name: 'RerankingMetadataSelectiveModeConfiguration')
273
326
  ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
274
327
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
275
328
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -280,6 +333,7 @@ module Aws::BedrockAgentRuntime
280
333
  RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
281
334
  RetrievalResultConfluenceLocation = Shapes::StructureShape.new(name: 'RetrievalResultConfluenceLocation')
282
335
  RetrievalResultContent = Shapes::StructureShape.new(name: 'RetrievalResultContent')
336
+ RetrievalResultCustomDocumentLocation = Shapes::StructureShape.new(name: 'RetrievalResultCustomDocumentLocation')
283
337
  RetrievalResultLocation = Shapes::StructureShape.new(name: 'RetrievalResultLocation')
284
338
  RetrievalResultLocationType = Shapes::StringShape.new(name: 'RetrievalResultLocationType')
285
339
  RetrievalResultMetadata = Shapes::MapShape.new(name: 'RetrievalResultMetadata')
@@ -293,9 +347,13 @@ module Aws::BedrockAgentRuntime
293
347
  RetrieveAndGenerateInput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateInput')
294
348
  RetrieveAndGenerateInputTextString = Shapes::StringShape.new(name: 'RetrieveAndGenerateInputTextString')
295
349
  RetrieveAndGenerateOutput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateOutput')
350
+ RetrieveAndGenerateOutputEvent = Shapes::StructureShape.new(name: 'RetrieveAndGenerateOutputEvent')
296
351
  RetrieveAndGenerateRequest = Shapes::StructureShape.new(name: 'RetrieveAndGenerateRequest')
297
352
  RetrieveAndGenerateResponse = Shapes::StructureShape.new(name: 'RetrieveAndGenerateResponse')
298
353
  RetrieveAndGenerateSessionConfiguration = Shapes::StructureShape.new(name: 'RetrieveAndGenerateSessionConfiguration')
354
+ RetrieveAndGenerateStreamRequest = Shapes::StructureShape.new(name: 'RetrieveAndGenerateStreamRequest')
355
+ RetrieveAndGenerateStreamResponse = Shapes::StructureShape.new(name: 'RetrieveAndGenerateStreamResponse')
356
+ RetrieveAndGenerateStreamResponseOutput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateStreamResponseOutput')
299
357
  RetrieveAndGenerateType = Shapes::StringShape.new(name: 'RetrieveAndGenerateType')
300
358
  RetrieveRequest = Shapes::StructureShape.new(name: 'RetrieveRequest')
301
359
  RetrieveResponse = Shapes::StructureShape.new(name: 'RetrieveResponse')
@@ -303,6 +361,9 @@ module Aws::BedrockAgentRuntime
303
361
  RetrievedReferences = Shapes::ListShape.new(name: 'RetrievedReferences')
304
362
  ReturnControlInvocationResults = Shapes::ListShape.new(name: 'ReturnControlInvocationResults')
305
363
  ReturnControlPayload = Shapes::StructureShape.new(name: 'ReturnControlPayload')
364
+ ReturnControlResults = Shapes::StructureShape.new(name: 'ReturnControlResults')
365
+ RoutingClassifierModelInvocationOutput = Shapes::StructureShape.new(name: 'RoutingClassifierModelInvocationOutput')
366
+ RoutingClassifierTrace = Shapes::UnionShape.new(name: 'RoutingClassifierTrace')
306
367
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
307
368
  S3Identifier = Shapes::StructureShape.new(name: 'S3Identifier')
308
369
  S3ObjectDoc = Shapes::StructureShape.new(name: 'S3ObjectDoc')
@@ -340,6 +401,11 @@ module Aws::BedrockAgentRuntime
340
401
  Type = Shapes::StringShape.new(name: 'Type')
341
402
  Usage = Shapes::StructureShape.new(name: 'Usage')
342
403
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
404
+ VectorSearchBedrockRerankingConfiguration = Shapes::StructureShape.new(name: 'VectorSearchBedrockRerankingConfiguration')
405
+ VectorSearchBedrockRerankingConfigurationNumberOfRerankedResultsInteger = Shapes::IntegerShape.new(name: 'VectorSearchBedrockRerankingConfigurationNumberOfRerankedResultsInteger')
406
+ VectorSearchBedrockRerankingModelConfiguration = Shapes::StructureShape.new(name: 'VectorSearchBedrockRerankingModelConfiguration')
407
+ VectorSearchRerankingConfiguration = Shapes::StructureShape.new(name: 'VectorSearchRerankingConfiguration')
408
+ VectorSearchRerankingConfigurationType = Shapes::StringShape.new(name: 'VectorSearchRerankingConfigurationType')
343
409
  Verb = Shapes::StringShape.new(name: 'Verb')
344
410
 
345
411
  APISchema.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
@@ -387,6 +453,26 @@ module Aws::BedrockAgentRuntime
387
453
 
388
454
  AgentActionGroups.member = Shapes::ShapeRef.new(shape: AgentActionGroup)
389
455
 
456
+ AgentCollaboratorInputPayload.add_member(:return_control_results, Shapes::ShapeRef.new(shape: ReturnControlResults, location_name: "returnControlResults"))
457
+ AgentCollaboratorInputPayload.add_member(:text, Shapes::ShapeRef.new(shape: AgentCollaboratorPayloadString, location_name: "text"))
458
+ AgentCollaboratorInputPayload.add_member(:type, Shapes::ShapeRef.new(shape: PayloadType, location_name: "type"))
459
+ AgentCollaboratorInputPayload.struct_class = Types::AgentCollaboratorInputPayload
460
+
461
+ AgentCollaboratorInvocationInput.add_member(:agent_collaborator_alias_arn, Shapes::ShapeRef.new(shape: AgentAliasArn, location_name: "agentCollaboratorAliasArn"))
462
+ AgentCollaboratorInvocationInput.add_member(:agent_collaborator_name, Shapes::ShapeRef.new(shape: String, location_name: "agentCollaboratorName"))
463
+ AgentCollaboratorInvocationInput.add_member(:input, Shapes::ShapeRef.new(shape: AgentCollaboratorInputPayload, location_name: "input"))
464
+ AgentCollaboratorInvocationInput.struct_class = Types::AgentCollaboratorInvocationInput
465
+
466
+ AgentCollaboratorInvocationOutput.add_member(:agent_collaborator_alias_arn, Shapes::ShapeRef.new(shape: AgentAliasArn, location_name: "agentCollaboratorAliasArn"))
467
+ AgentCollaboratorInvocationOutput.add_member(:agent_collaborator_name, Shapes::ShapeRef.new(shape: String, location_name: "agentCollaboratorName"))
468
+ AgentCollaboratorInvocationOutput.add_member(:output, Shapes::ShapeRef.new(shape: AgentCollaboratorOutputPayload, location_name: "output"))
469
+ AgentCollaboratorInvocationOutput.struct_class = Types::AgentCollaboratorInvocationOutput
470
+
471
+ AgentCollaboratorOutputPayload.add_member(:return_control_payload, Shapes::ShapeRef.new(shape: ReturnControlPayload, event: true, location_name: "returnControlPayload"))
472
+ AgentCollaboratorOutputPayload.add_member(:text, Shapes::ShapeRef.new(shape: AgentCollaboratorPayloadString, location_name: "text"))
473
+ AgentCollaboratorOutputPayload.add_member(:type, Shapes::ShapeRef.new(shape: PayloadType, location_name: "type"))
474
+ AgentCollaboratorOutputPayload.struct_class = Types::AgentCollaboratorOutputPayload
475
+
390
476
  AnalyzePromptEvent.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
391
477
  AnalyzePromptEvent.struct_class = Types::AnalyzePromptEvent
392
478
 
@@ -395,7 +481,9 @@ module Aws::BedrockAgentRuntime
395
481
 
396
482
  ApiInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
397
483
  ApiInvocationInput.add_member(:action_invocation_type, Shapes::ShapeRef.new(shape: ActionInvocationType, location_name: "actionInvocationType"))
484
+ ApiInvocationInput.add_member(:agent_id, Shapes::ShapeRef.new(shape: String, location_name: "agentId"))
398
485
  ApiInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
486
+ ApiInvocationInput.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, location_name: "collaboratorName"))
399
487
  ApiInvocationInput.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
400
488
  ApiInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ApiParameters, location_name: "parameters"))
401
489
  ApiInvocationInput.add_member(:request_body, Shapes::ShapeRef.new(shape: ApiRequestBody, location_name: "requestBody"))
@@ -412,6 +500,7 @@ module Aws::BedrockAgentRuntime
412
500
  ApiRequestBody.struct_class = Types::ApiRequestBody
413
501
 
414
502
  ApiResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
503
+ ApiResult.add_member(:agent_id, Shapes::ShapeRef.new(shape: String, location_name: "agentId"))
415
504
  ApiResult.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
416
505
  ApiResult.add_member(:confirmation_state, Shapes::ShapeRef.new(shape: ConfirmationState, location_name: "confirmationState"))
417
506
  ApiResult.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
@@ -427,6 +516,14 @@ module Aws::BedrockAgentRuntime
427
516
  BadGatewayException.add_member(:resource_name, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "resourceName"))
428
517
  BadGatewayException.struct_class = Types::BadGatewayException
429
518
 
519
+ BedrockRerankingConfiguration.add_member(:model_configuration, Shapes::ShapeRef.new(shape: BedrockRerankingModelConfiguration, required: true, location_name: "modelConfiguration"))
520
+ BedrockRerankingConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: BedrockRerankingConfigurationNumberOfResultsInteger, location_name: "numberOfResults"))
521
+ BedrockRerankingConfiguration.struct_class = Types::BedrockRerankingConfiguration
522
+
523
+ BedrockRerankingModelConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
524
+ BedrockRerankingModelConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
525
+ BedrockRerankingModelConfiguration.struct_class = Types::BedrockRerankingModelConfiguration
526
+
430
527
  ByteContentDoc.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location_name: "contentType"))
431
528
  ByteContentDoc.add_member(:data, Shapes::ShapeRef.new(shape: ByteContentBlob, required: true, location_name: "data"))
432
529
  ByteContentDoc.add_member(:identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "identifier"))
@@ -436,10 +533,21 @@ module Aws::BedrockAgentRuntime
436
533
  ByteContentFile.add_member(:media_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location_name: "mediaType"))
437
534
  ByteContentFile.struct_class = Types::ByteContentFile
438
535
 
536
+ Caller.add_member(:agent_alias_arn, Shapes::ShapeRef.new(shape: AgentAliasArn, location_name: "agentAliasArn"))
537
+ Caller.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
538
+ Caller.add_member_subclass(:agent_alias_arn, Types::Caller::AgentAliasArn)
539
+ Caller.add_member_subclass(:unknown, Types::Caller::Unknown)
540
+ Caller.struct_class = Types::Caller
541
+
542
+ CallerChain.member = Shapes::ShapeRef.new(shape: Caller)
543
+
439
544
  Citation.add_member(:generated_response_part, Shapes::ShapeRef.new(shape: GeneratedResponsePart, location_name: "generatedResponsePart"))
440
545
  Citation.add_member(:retrieved_references, Shapes::ShapeRef.new(shape: RetrievedReferences, location_name: "retrievedReferences"))
441
546
  Citation.struct_class = Types::Citation
442
547
 
548
+ CitationEvent.add_member(:citation, Shapes::ShapeRef.new(shape: Citation, location_name: "citation"))
549
+ CitationEvent.struct_class = Types::CitationEvent
550
+
443
551
  Citations.member = Shapes::ShapeRef.new(shape: Citation)
444
552
 
445
553
  CodeInterpreterInvocationInput.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "code"))
@@ -455,12 +563,23 @@ module Aws::BedrockAgentRuntime
455
563
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
456
564
  ConflictException.struct_class = Types::ConflictException
457
565
 
566
+ ContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
567
+ ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
568
+ ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
569
+ ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
570
+ ContentBlock.struct_class = Types::ContentBlock
571
+
572
+ ContentBlocks.member = Shapes::ShapeRef.new(shape: ContentBlock)
573
+
458
574
  ContentBody.add_member(:body, Shapes::ShapeRef.new(shape: String, location_name: "body"))
459
575
  ContentBody.struct_class = Types::ContentBody
460
576
 
461
577
  ContentMap.key = Shapes::ShapeRef.new(shape: String)
462
578
  ContentMap.value = Shapes::ShapeRef.new(shape: Parameters)
463
579
 
580
+ ConversationHistory.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, location_name: "messages"))
581
+ ConversationHistory.struct_class = Types::ConversationHistory
582
+
464
583
  CustomOrchestrationTrace.add_member(:event, Shapes::ShapeRef.new(shape: CustomOrchestrationTraceEvent, location_name: "event"))
465
584
  CustomOrchestrationTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
466
585
  CustomOrchestrationTrace.struct_class = Types::CustomOrchestrationTrace
@@ -501,6 +620,11 @@ module Aws::BedrockAgentRuntime
501
620
  FailureTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
502
621
  FailureTrace.struct_class = Types::FailureTrace
503
622
 
623
+ FieldForReranking.add_member(:field_name, Shapes::ShapeRef.new(shape: FieldForRerankingFieldNameString, required: true, location_name: "fieldName"))
624
+ FieldForReranking.struct_class = Types::FieldForReranking
625
+
626
+ FieldsForReranking.member = Shapes::ShapeRef.new(shape: FieldForReranking)
627
+
504
628
  FilePart.add_member(:files, Shapes::ShapeRef.new(shape: OutputFiles, location_name: "files"))
505
629
  FilePart.struct_class = Types::FilePart
506
630
 
@@ -624,6 +748,8 @@ module Aws::BedrockAgentRuntime
624
748
 
625
749
  FunctionInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
626
750
  FunctionInvocationInput.add_member(:action_invocation_type, Shapes::ShapeRef.new(shape: ActionInvocationType, location_name: "actionInvocationType"))
751
+ FunctionInvocationInput.add_member(:agent_id, Shapes::ShapeRef.new(shape: String, location_name: "agentId"))
752
+ FunctionInvocationInput.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, location_name: "collaboratorName"))
627
753
  FunctionInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
628
754
  FunctionInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: FunctionParameters, location_name: "parameters"))
629
755
  FunctionInvocationInput.struct_class = Types::FunctionInvocationInput
@@ -636,6 +762,7 @@ module Aws::BedrockAgentRuntime
636
762
  FunctionParameters.member = Shapes::ShapeRef.new(shape: FunctionParameter)
637
763
 
638
764
  FunctionResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
765
+ FunctionResult.add_member(:agent_id, Shapes::ShapeRef.new(shape: String, location_name: "agentId"))
639
766
  FunctionResult.add_member(:confirmation_state, Shapes::ShapeRef.new(shape: ConfirmationState, location_name: "confirmationState"))
640
767
  FunctionResult.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
641
768
  FunctionResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
@@ -703,6 +830,9 @@ module Aws::BedrockAgentRuntime
703
830
 
704
831
  GuardrailCustomWordList.member = Shapes::ShapeRef.new(shape: GuardrailCustomWord)
705
832
 
833
+ GuardrailEvent.add_member(:action, Shapes::ShapeRef.new(shape: GuadrailAction, location_name: "action"))
834
+ GuardrailEvent.struct_class = Types::GuardrailEvent
835
+
706
836
  GuardrailManagedWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, location_name: "action"))
707
837
  GuardrailManagedWord.add_member(:match, Shapes::ShapeRef.new(shape: String, location_name: "match"))
708
838
  GuardrailManagedWord.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordType, location_name: "type"))
@@ -749,6 +879,10 @@ module Aws::BedrockAgentRuntime
749
879
  GuardrailWordPolicyAssessment.add_member(:managed_word_lists, Shapes::ShapeRef.new(shape: GuardrailManagedWordList, location_name: "managedWordLists"))
750
880
  GuardrailWordPolicyAssessment.struct_class = Types::GuardrailWordPolicyAssessment
751
881
 
882
+ ImplicitFilterConfiguration.add_member(:metadata_attributes, Shapes::ShapeRef.new(shape: MetadataAttributeSchemaList, required: true, location_name: "metadataAttributes"))
883
+ ImplicitFilterConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
884
+ ImplicitFilterConfiguration.struct_class = Types::ImplicitFilterConfiguration
885
+
752
886
  InferenceConfig.add_member(:text_inference_config, Shapes::ShapeRef.new(shape: TextInferenceConfig, location_name: "textInferenceConfig"))
753
887
  InferenceConfig.struct_class = Types::InferenceConfig
754
888
 
@@ -813,6 +947,7 @@ module Aws::BedrockAgentRuntime
813
947
  InternalServerException.struct_class = Types::InternalServerException
814
948
 
815
949
  InvocationInput.add_member(:action_group_invocation_input, Shapes::ShapeRef.new(shape: ActionGroupInvocationInput, location_name: "actionGroupInvocationInput"))
950
+ InvocationInput.add_member(:agent_collaborator_invocation_input, Shapes::ShapeRef.new(shape: AgentCollaboratorInvocationInput, location_name: "agentCollaboratorInvocationInput"))
816
951
  InvocationInput.add_member(:code_interpreter_invocation_input, Shapes::ShapeRef.new(shape: CodeInterpreterInvocationInput, location_name: "codeInterpreterInvocationInput"))
817
952
  InvocationInput.add_member(:invocation_type, Shapes::ShapeRef.new(shape: InvocationType, location_name: "invocationType"))
818
953
  InvocationInput.add_member(:knowledge_base_lookup_input, Shapes::ShapeRef.new(shape: KnowledgeBaseLookupInput, location_name: "knowledgeBaseLookupInput"))
@@ -845,6 +980,7 @@ module Aws::BedrockAgentRuntime
845
980
  InvokeAgentRequest.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, location_name: "memoryId"))
846
981
  InvokeAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
847
982
  InvokeAgentRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
983
+ InvokeAgentRequest.add_member(:source_arn, Shapes::ShapeRef.new(shape: AWSResourceARN, location: "header", location_name: "x-amz-source-arn"))
848
984
  InvokeAgentRequest.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurations, location_name: "streamingConfigurations"))
849
985
  InvokeAgentRequest.struct_class = Types::InvokeAgentRequest
850
986
 
@@ -929,8 +1065,10 @@ module Aws::BedrockAgentRuntime
929
1065
  KnowledgeBaseRetrieveAndGenerateConfiguration.struct_class = Types::KnowledgeBaseRetrieveAndGenerateConfiguration
930
1066
 
931
1067
  KnowledgeBaseVectorSearchConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: RetrievalFilter, location_name: "filter"))
1068
+ KnowledgeBaseVectorSearchConfiguration.add_member(:implicit_filter_configuration, Shapes::ShapeRef.new(shape: ImplicitFilterConfiguration, location_name: "implicitFilterConfiguration"))
932
1069
  KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, location_name: "numberOfResults", metadata: {"box"=>true}))
933
1070
  KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
1071
+ KnowledgeBaseVectorSearchConfiguration.add_member(:reranking_configuration, Shapes::ShapeRef.new(shape: VectorSearchRerankingConfiguration, location_name: "rerankingConfiguration"))
934
1072
  KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
935
1073
 
936
1074
  KnowledgeBases.member = Shapes::ShapeRef.new(shape: KnowledgeBase)
@@ -950,9 +1088,27 @@ module Aws::BedrockAgentRuntime
950
1088
  MemorySessionSummary.add_member(:summary_text, Shapes::ShapeRef.new(shape: SummaryText, location_name: "summaryText"))
951
1089
  MemorySessionSummary.struct_class = Types::MemorySessionSummary
952
1090
 
1091
+ Message.add_member(:content, Shapes::ShapeRef.new(shape: ContentBlocks, required: true, location_name: "content"))
1092
+ Message.add_member(:role, Shapes::ShapeRef.new(shape: ConversationRole, required: true, location_name: "role"))
1093
+ Message.struct_class = Types::Message
1094
+
1095
+ Messages.member = Shapes::ShapeRef.new(shape: Message)
1096
+
953
1097
  Metadata.add_member(:usage, Shapes::ShapeRef.new(shape: Usage, location_name: "usage"))
954
1098
  Metadata.struct_class = Types::Metadata
955
1099
 
1100
+ MetadataAttributeSchema.add_member(:description, Shapes::ShapeRef.new(shape: MetadataAttributeSchemaDescriptionString, required: true, location_name: "description"))
1101
+ MetadataAttributeSchema.add_member(:key, Shapes::ShapeRef.new(shape: MetadataAttributeSchemaKeyString, required: true, location_name: "key"))
1102
+ MetadataAttributeSchema.add_member(:type, Shapes::ShapeRef.new(shape: AttributeType, required: true, location_name: "type"))
1103
+ MetadataAttributeSchema.struct_class = Types::MetadataAttributeSchema
1104
+
1105
+ MetadataAttributeSchemaList.member = Shapes::ShapeRef.new(shape: MetadataAttributeSchema)
1106
+
1107
+ MetadataConfigurationForReranking.add_member(:selection_mode, Shapes::ShapeRef.new(shape: RerankingMetadataSelectionMode, required: true, location_name: "selectionMode"))
1108
+ MetadataConfigurationForReranking.add_member(:selective_mode_configuration, Shapes::ShapeRef.new(shape: RerankingMetadataSelectiveModeConfiguration, location_name: "selectiveModeConfiguration"))
1109
+ MetadataConfigurationForReranking.struct_class = Types::MetadataConfigurationForReranking
1110
+
1111
+ ModelInvocationInput.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
956
1112
  ModelInvocationInput.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
957
1113
  ModelInvocationInput.add_member(:override_lambda, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "overrideLambda"))
958
1114
  ModelInvocationInput.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
@@ -963,6 +1119,7 @@ module Aws::BedrockAgentRuntime
963
1119
  ModelInvocationInput.struct_class = Types::ModelInvocationInput
964
1120
 
965
1121
  Observation.add_member(:action_group_invocation_output, Shapes::ShapeRef.new(shape: ActionGroupInvocationOutput, location_name: "actionGroupInvocationOutput"))
1122
+ Observation.add_member(:agent_collaborator_invocation_output, Shapes::ShapeRef.new(shape: AgentCollaboratorInvocationOutput, location_name: "agentCollaboratorInvocationOutput"))
966
1123
  Observation.add_member(:code_interpreter_invocation_output, Shapes::ShapeRef.new(shape: CodeInterpreterInvocationOutput, location_name: "codeInterpreterInvocationOutput"))
967
1124
  Observation.add_member(:final_response, Shapes::ShapeRef.new(shape: FinalResponse, location_name: "finalResponse"))
968
1125
  Observation.add_member(:knowledge_base_lookup_output, Shapes::ShapeRef.new(shape: KnowledgeBaseLookupOutput, location_name: "knowledgeBaseLookupOutput"))
@@ -1129,6 +1286,55 @@ module Aws::BedrockAgentRuntime
1129
1286
  RequestBody.add_member(:content, Shapes::ShapeRef.new(shape: ContentMap, location_name: "content"))
1130
1287
  RequestBody.struct_class = Types::RequestBody
1131
1288
 
1289
+ RerankDocument.add_member(:json_document, Shapes::ShapeRef.new(shape: Document, location_name: "jsonDocument"))
1290
+ RerankDocument.add_member(:text_document, Shapes::ShapeRef.new(shape: RerankTextDocument, location_name: "textDocument"))
1291
+ RerankDocument.add_member(:type, Shapes::ShapeRef.new(shape: RerankDocumentType, required: true, location_name: "type"))
1292
+ RerankDocument.struct_class = Types::RerankDocument
1293
+
1294
+ RerankQueriesList.member = Shapes::ShapeRef.new(shape: RerankQuery)
1295
+
1296
+ RerankQuery.add_member(:text_query, Shapes::ShapeRef.new(shape: RerankTextDocument, required: true, location_name: "textQuery"))
1297
+ RerankQuery.add_member(:type, Shapes::ShapeRef.new(shape: RerankQueryContentType, required: true, location_name: "type"))
1298
+ RerankQuery.struct_class = Types::RerankQuery
1299
+
1300
+ RerankRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1301
+ RerankRequest.add_member(:queries, Shapes::ShapeRef.new(shape: RerankQueriesList, required: true, location_name: "queries"))
1302
+ RerankRequest.add_member(:reranking_configuration, Shapes::ShapeRef.new(shape: RerankingConfiguration, required: true, location_name: "rerankingConfiguration"))
1303
+ RerankRequest.add_member(:sources, Shapes::ShapeRef.new(shape: RerankSourcesList, required: true, location_name: "sources"))
1304
+ RerankRequest.struct_class = Types::RerankRequest
1305
+
1306
+ RerankResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1307
+ RerankResponse.add_member(:results, Shapes::ShapeRef.new(shape: RerankResultsList, required: true, location_name: "results"))
1308
+ RerankResponse.struct_class = Types::RerankResponse
1309
+
1310
+ RerankResult.add_member(:document, Shapes::ShapeRef.new(shape: RerankDocument, location_name: "document"))
1311
+ RerankResult.add_member(:index, Shapes::ShapeRef.new(shape: RerankResultIndexInteger, required: true, location_name: "index"))
1312
+ RerankResult.add_member(:relevance_score, Shapes::ShapeRef.new(shape: Float, required: true, location_name: "relevanceScore"))
1313
+ RerankResult.struct_class = Types::RerankResult
1314
+
1315
+ RerankResultsList.member = Shapes::ShapeRef.new(shape: RerankResult)
1316
+
1317
+ RerankSource.add_member(:inline_document_source, Shapes::ShapeRef.new(shape: RerankDocument, required: true, location_name: "inlineDocumentSource"))
1318
+ RerankSource.add_member(:type, Shapes::ShapeRef.new(shape: RerankSourceType, required: true, location_name: "type"))
1319
+ RerankSource.struct_class = Types::RerankSource
1320
+
1321
+ RerankSourcesList.member = Shapes::ShapeRef.new(shape: RerankSource)
1322
+
1323
+ RerankTextDocument.add_member(:text, Shapes::ShapeRef.new(shape: RerankTextDocumentTextString, location_name: "text"))
1324
+ RerankTextDocument.struct_class = Types::RerankTextDocument
1325
+
1326
+ RerankingConfiguration.add_member(:bedrock_reranking_configuration, Shapes::ShapeRef.new(shape: BedrockRerankingConfiguration, required: true, location_name: "bedrockRerankingConfiguration"))
1327
+ RerankingConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: RerankingConfigurationType, required: true, location_name: "type"))
1328
+ RerankingConfiguration.struct_class = Types::RerankingConfiguration
1329
+
1330
+ RerankingMetadataSelectiveModeConfiguration.add_member(:fields_to_exclude, Shapes::ShapeRef.new(shape: FieldsForReranking, location_name: "fieldsToExclude"))
1331
+ RerankingMetadataSelectiveModeConfiguration.add_member(:fields_to_include, Shapes::ShapeRef.new(shape: FieldsForReranking, location_name: "fieldsToInclude"))
1332
+ RerankingMetadataSelectiveModeConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1333
+ RerankingMetadataSelectiveModeConfiguration.add_member_subclass(:fields_to_exclude, Types::RerankingMetadataSelectiveModeConfiguration::FieldsToExclude)
1334
+ RerankingMetadataSelectiveModeConfiguration.add_member_subclass(:fields_to_include, Types::RerankingMetadataSelectiveModeConfiguration::FieldsToInclude)
1335
+ RerankingMetadataSelectiveModeConfiguration.add_member_subclass(:unknown, Types::RerankingMetadataSelectiveModeConfiguration::Unknown)
1336
+ RerankingMetadataSelectiveModeConfiguration.struct_class = Types::RerankingMetadataSelectiveModeConfiguration
1337
+
1132
1338
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1133
1339
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
1134
1340
 
@@ -1188,7 +1394,11 @@ module Aws::BedrockAgentRuntime
1188
1394
  RetrievalResultContent.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
1189
1395
  RetrievalResultContent.struct_class = Types::RetrievalResultContent
1190
1396
 
1397
+ RetrievalResultCustomDocumentLocation.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
1398
+ RetrievalResultCustomDocumentLocation.struct_class = Types::RetrievalResultCustomDocumentLocation
1399
+
1191
1400
  RetrievalResultLocation.add_member(:confluence_location, Shapes::ShapeRef.new(shape: RetrievalResultConfluenceLocation, location_name: "confluenceLocation"))
1401
+ RetrievalResultLocation.add_member(:custom_document_location, Shapes::ShapeRef.new(shape: RetrievalResultCustomDocumentLocation, location_name: "customDocumentLocation"))
1192
1402
  RetrievalResultLocation.add_member(:s3_location, Shapes::ShapeRef.new(shape: RetrievalResultS3Location, location_name: "s3Location"))
1193
1403
  RetrievalResultLocation.add_member(:salesforce_location, Shapes::ShapeRef.new(shape: RetrievalResultSalesforceLocation, location_name: "salesforceLocation"))
1194
1404
  RetrievalResultLocation.add_member(:share_point_location, Shapes::ShapeRef.new(shape: RetrievalResultSharePointLocation, location_name: "sharePointLocation"))
@@ -1222,6 +1432,9 @@ module Aws::BedrockAgentRuntime
1222
1432
  RetrieveAndGenerateOutput.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
1223
1433
  RetrieveAndGenerateOutput.struct_class = Types::RetrieveAndGenerateOutput
1224
1434
 
1435
+ RetrieveAndGenerateOutputEvent.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
1436
+ RetrieveAndGenerateOutputEvent.struct_class = Types::RetrieveAndGenerateOutputEvent
1437
+
1225
1438
  RetrieveAndGenerateRequest.add_member(:input, Shapes::ShapeRef.new(shape: RetrieveAndGenerateInput, required: true, location_name: "input"))
1226
1439
  RetrieveAndGenerateRequest.add_member(:retrieve_and_generate_configuration, Shapes::ShapeRef.new(shape: RetrieveAndGenerateConfiguration, location_name: "retrieveAndGenerateConfiguration"))
1227
1440
  RetrieveAndGenerateRequest.add_member(:session_configuration, Shapes::ShapeRef.new(shape: RetrieveAndGenerateSessionConfiguration, location_name: "sessionConfiguration"))
@@ -1237,12 +1450,40 @@ module Aws::BedrockAgentRuntime
1237
1450
  RetrieveAndGenerateSessionConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, required: true, location_name: "kmsKeyArn"))
1238
1451
  RetrieveAndGenerateSessionConfiguration.struct_class = Types::RetrieveAndGenerateSessionConfiguration
1239
1452
 
1453
+ RetrieveAndGenerateStreamRequest.add_member(:input, Shapes::ShapeRef.new(shape: RetrieveAndGenerateInput, required: true, location_name: "input"))
1454
+ RetrieveAndGenerateStreamRequest.add_member(:retrieve_and_generate_configuration, Shapes::ShapeRef.new(shape: RetrieveAndGenerateConfiguration, location_name: "retrieveAndGenerateConfiguration"))
1455
+ RetrieveAndGenerateStreamRequest.add_member(:session_configuration, Shapes::ShapeRef.new(shape: RetrieveAndGenerateSessionConfiguration, location_name: "sessionConfiguration"))
1456
+ RetrieveAndGenerateStreamRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
1457
+ RetrieveAndGenerateStreamRequest.struct_class = Types::RetrieveAndGenerateStreamRequest
1458
+
1459
+ RetrieveAndGenerateStreamResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "header", location_name: "x-amzn-bedrock-knowledge-base-session-id"))
1460
+ RetrieveAndGenerateStreamResponse.add_member(:stream, Shapes::ShapeRef.new(shape: RetrieveAndGenerateStreamResponseOutput, required: true, eventstream: true, location_name: "stream"))
1461
+ RetrieveAndGenerateStreamResponse.struct_class = Types::RetrieveAndGenerateStreamResponse
1462
+ RetrieveAndGenerateStreamResponse[:payload] = :stream
1463
+ RetrieveAndGenerateStreamResponse[:payload_member] = RetrieveAndGenerateStreamResponse.member(:stream)
1464
+
1465
+ RetrieveAndGenerateStreamResponseOutput.add_member(:access_denied_exception, Shapes::ShapeRef.new(shape: AccessDeniedException, location_name: "accessDeniedException"))
1466
+ RetrieveAndGenerateStreamResponseOutput.add_member(:bad_gateway_exception, Shapes::ShapeRef.new(shape: BadGatewayException, location_name: "badGatewayException"))
1467
+ RetrieveAndGenerateStreamResponseOutput.add_member(:citation, Shapes::ShapeRef.new(shape: CitationEvent, event: true, location_name: "citation"))
1468
+ RetrieveAndGenerateStreamResponseOutput.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, location_name: "conflictException"))
1469
+ RetrieveAndGenerateStreamResponseOutput.add_member(:dependency_failed_exception, Shapes::ShapeRef.new(shape: DependencyFailedException, location_name: "dependencyFailedException"))
1470
+ RetrieveAndGenerateStreamResponseOutput.add_member(:guardrail, Shapes::ShapeRef.new(shape: GuardrailEvent, event: true, location_name: "guardrail"))
1471
+ RetrieveAndGenerateStreamResponseOutput.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
1472
+ RetrieveAndGenerateStreamResponseOutput.add_member(:output, Shapes::ShapeRef.new(shape: RetrieveAndGenerateOutputEvent, event: true, location_name: "output"))
1473
+ RetrieveAndGenerateStreamResponseOutput.add_member(:resource_not_found_exception, Shapes::ShapeRef.new(shape: ResourceNotFoundException, location_name: "resourceNotFoundException"))
1474
+ RetrieveAndGenerateStreamResponseOutput.add_member(:service_quota_exceeded_exception, Shapes::ShapeRef.new(shape: ServiceQuotaExceededException, location_name: "serviceQuotaExceededException"))
1475
+ RetrieveAndGenerateStreamResponseOutput.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
1476
+ RetrieveAndGenerateStreamResponseOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
1477
+ RetrieveAndGenerateStreamResponseOutput.struct_class = Types::RetrieveAndGenerateStreamResponseOutput
1478
+
1479
+ RetrieveRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
1240
1480
  RetrieveRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location: "uri", location_name: "knowledgeBaseId"))
1241
1481
  RetrieveRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1242
1482
  RetrieveRequest.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
1243
1483
  RetrieveRequest.add_member(:retrieval_query, Shapes::ShapeRef.new(shape: KnowledgeBaseQuery, required: true, location_name: "retrievalQuery"))
1244
1484
  RetrieveRequest.struct_class = Types::RetrieveRequest
1245
1485
 
1486
+ RetrieveResponse.add_member(:guardrail_action, Shapes::ShapeRef.new(shape: GuadrailAction, location_name: "guardrailAction"))
1246
1487
  RetrieveResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1247
1488
  RetrieveResponse.add_member(:retrieval_results, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalResults, required: true, location_name: "retrievalResults"))
1248
1489
  RetrieveResponse.struct_class = Types::RetrieveResponse
@@ -1260,6 +1501,27 @@ module Aws::BedrockAgentRuntime
1260
1501
  ReturnControlPayload.add_member(:invocation_inputs, Shapes::ShapeRef.new(shape: InvocationInputs, location_name: "invocationInputs"))
1261
1502
  ReturnControlPayload.struct_class = Types::ReturnControlPayload
1262
1503
 
1504
+ ReturnControlResults.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
1505
+ ReturnControlResults.add_member(:return_control_invocation_results, Shapes::ShapeRef.new(shape: ReturnControlInvocationResults, location_name: "returnControlInvocationResults"))
1506
+ ReturnControlResults.struct_class = Types::ReturnControlResults
1507
+
1508
+ RoutingClassifierModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
1509
+ RoutingClassifierModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
1510
+ RoutingClassifierModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
1511
+ RoutingClassifierModelInvocationOutput.struct_class = Types::RoutingClassifierModelInvocationOutput
1512
+
1513
+ RoutingClassifierTrace.add_member(:invocation_input, Shapes::ShapeRef.new(shape: InvocationInput, location_name: "invocationInput"))
1514
+ RoutingClassifierTrace.add_member(:model_invocation_input, Shapes::ShapeRef.new(shape: ModelInvocationInput, location_name: "modelInvocationInput"))
1515
+ RoutingClassifierTrace.add_member(:model_invocation_output, Shapes::ShapeRef.new(shape: RoutingClassifierModelInvocationOutput, location_name: "modelInvocationOutput"))
1516
+ RoutingClassifierTrace.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "observation"))
1517
+ RoutingClassifierTrace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1518
+ RoutingClassifierTrace.add_member_subclass(:invocation_input, Types::RoutingClassifierTrace::InvocationInput)
1519
+ RoutingClassifierTrace.add_member_subclass(:model_invocation_input, Types::RoutingClassifierTrace::ModelInvocationInput)
1520
+ RoutingClassifierTrace.add_member_subclass(:model_invocation_output, Types::RoutingClassifierTrace::ModelInvocationOutput)
1521
+ RoutingClassifierTrace.add_member_subclass(:observation, Types::RoutingClassifierTrace::Observation)
1522
+ RoutingClassifierTrace.add_member_subclass(:unknown, Types::RoutingClassifierTrace::Unknown)
1523
+ RoutingClassifierTrace.struct_class = Types::RoutingClassifierTrace
1524
+
1263
1525
  S3Identifier.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, location_name: "s3BucketName"))
1264
1526
  S3Identifier.add_member(:s3_object_key, Shapes::ShapeRef.new(shape: S3ObjectKey, location_name: "s3ObjectKey"))
1265
1527
  S3Identifier.struct_class = Types::S3Identifier
@@ -1276,6 +1538,7 @@ module Aws::BedrockAgentRuntime
1276
1538
  SessionAttributesMap.key = Shapes::ShapeRef.new(shape: String)
1277
1539
  SessionAttributesMap.value = Shapes::ShapeRef.new(shape: String)
1278
1540
 
1541
+ SessionState.add_member(:conversation_history, Shapes::ShapeRef.new(shape: ConversationHistory, location_name: "conversationHistory"))
1279
1542
  SessionState.add_member(:files, Shapes::ShapeRef.new(shape: InputFiles, location_name: "files"))
1280
1543
  SessionState.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
1281
1544
  SessionState.add_member(:knowledge_base_configurations, Shapes::ShapeRef.new(shape: KnowledgeBaseConfigurations, location_name: "knowledgeBaseConfigurations"))
@@ -1316,6 +1579,7 @@ module Aws::BedrockAgentRuntime
1316
1579
  Trace.add_member(:orchestration_trace, Shapes::ShapeRef.new(shape: OrchestrationTrace, location_name: "orchestrationTrace"))
1317
1580
  Trace.add_member(:post_processing_trace, Shapes::ShapeRef.new(shape: PostProcessingTrace, location_name: "postProcessingTrace"))
1318
1581
  Trace.add_member(:pre_processing_trace, Shapes::ShapeRef.new(shape: PreProcessingTrace, location_name: "preProcessingTrace"))
1582
+ Trace.add_member(:routing_classifier_trace, Shapes::ShapeRef.new(shape: RoutingClassifierTrace, location_name: "routingClassifierTrace"))
1319
1583
  Trace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1320
1584
  Trace.add_member_subclass(:custom_orchestration_trace, Types::Trace::CustomOrchestrationTrace)
1321
1585
  Trace.add_member_subclass(:failure_trace, Types::Trace::FailureTrace)
@@ -1323,12 +1587,15 @@ module Aws::BedrockAgentRuntime
1323
1587
  Trace.add_member_subclass(:orchestration_trace, Types::Trace::OrchestrationTrace)
1324
1588
  Trace.add_member_subclass(:post_processing_trace, Types::Trace::PostProcessingTrace)
1325
1589
  Trace.add_member_subclass(:pre_processing_trace, Types::Trace::PreProcessingTrace)
1590
+ Trace.add_member_subclass(:routing_classifier_trace, Types::Trace::RoutingClassifierTrace)
1326
1591
  Trace.add_member_subclass(:unknown, Types::Trace::Unknown)
1327
1592
  Trace.struct_class = Types::Trace
1328
1593
 
1329
1594
  TracePart.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, location_name: "agentAliasId"))
1330
1595
  TracePart.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, location_name: "agentId"))
1331
1596
  TracePart.add_member(:agent_version, Shapes::ShapeRef.new(shape: AgentVersion, location_name: "agentVersion"))
1597
+ TracePart.add_member(:caller_chain, Shapes::ShapeRef.new(shape: CallerChain, location_name: "callerChain"))
1598
+ TracePart.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, location_name: "collaboratorName"))
1332
1599
  TracePart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
1333
1600
  TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
1334
1601
  TracePart.struct_class = Types::TracePart
@@ -1340,6 +1607,19 @@ module Aws::BedrockAgentRuntime
1340
1607
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1341
1608
  ValidationException.struct_class = Types::ValidationException
1342
1609
 
1610
+ VectorSearchBedrockRerankingConfiguration.add_member(:metadata_configuration, Shapes::ShapeRef.new(shape: MetadataConfigurationForReranking, location_name: "metadataConfiguration"))
1611
+ VectorSearchBedrockRerankingConfiguration.add_member(:model_configuration, Shapes::ShapeRef.new(shape: VectorSearchBedrockRerankingModelConfiguration, required: true, location_name: "modelConfiguration"))
1612
+ VectorSearchBedrockRerankingConfiguration.add_member(:number_of_reranked_results, Shapes::ShapeRef.new(shape: VectorSearchBedrockRerankingConfigurationNumberOfRerankedResultsInteger, location_name: "numberOfRerankedResults"))
1613
+ VectorSearchBedrockRerankingConfiguration.struct_class = Types::VectorSearchBedrockRerankingConfiguration
1614
+
1615
+ VectorSearchBedrockRerankingModelConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
1616
+ VectorSearchBedrockRerankingModelConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockRerankingModelArn, required: true, location_name: "modelArn"))
1617
+ VectorSearchBedrockRerankingModelConfiguration.struct_class = Types::VectorSearchBedrockRerankingModelConfiguration
1618
+
1619
+ VectorSearchRerankingConfiguration.add_member(:bedrock_reranking_configuration, Shapes::ShapeRef.new(shape: VectorSearchBedrockRerankingConfiguration, location_name: "bedrockRerankingConfiguration"))
1620
+ VectorSearchRerankingConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: VectorSearchRerankingConfigurationType, required: true, location_name: "type"))
1621
+ VectorSearchRerankingConfiguration.struct_class = Types::VectorSearchRerankingConfiguration
1622
+
1343
1623
 
1344
1624
  # @api private
1345
1625
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1465,6 +1745,28 @@ module Aws::BedrockAgentRuntime
1465
1745
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1466
1746
  end)
1467
1747
 
1748
+ api.add_operation(:rerank, Seahorse::Model::Operation.new.tap do |o|
1749
+ o.name = "Rerank"
1750
+ o.http_method = "POST"
1751
+ o.http_request_uri = "/rerank"
1752
+ o.input = Shapes::ShapeRef.new(shape: RerankRequest)
1753
+ o.output = Shapes::ShapeRef.new(shape: RerankResponse)
1754
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1755
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1756
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1757
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1758
+ o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
1759
+ o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
1760
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1761
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1762
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1763
+ o[:pager] = Aws::Pager.new(
1764
+ tokens: {
1765
+ "next_token" => "next_token"
1766
+ }
1767
+ )
1768
+ end)
1769
+
1468
1770
  api.add_operation(:retrieve, Seahorse::Model::Operation.new.tap do |o|
1469
1771
  o.name = "Retrieve"
1470
1772
  o.http_method = "POST"
@@ -1503,6 +1805,23 @@ module Aws::BedrockAgentRuntime
1503
1805
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1504
1806
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1505
1807
  end)
1808
+
1809
+ api.add_operation(:retrieve_and_generate_stream, Seahorse::Model::Operation.new.tap do |o|
1810
+ o.name = "RetrieveAndGenerateStream"
1811
+ o.http_method = "POST"
1812
+ o.http_request_uri = "/retrieveAndGenerateStream"
1813
+ o.input = Shapes::ShapeRef.new(shape: RetrieveAndGenerateStreamRequest)
1814
+ o.output = Shapes::ShapeRef.new(shape: RetrieveAndGenerateStreamResponse)
1815
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1816
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1817
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1818
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1819
+ o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
1820
+ o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
1821
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1822
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1823
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1824
+ end)
1506
1825
  end
1507
1826
 
1508
1827
  end