aws-sdk-bedrockagentruntime 1.36.0 → 1.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +208 -11
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +114 -1
- data/lib/aws-sdk-bedrockagentruntime/errors.rb +16 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +5 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +335 -7
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +58 -2
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +97 -2
- metadata +2 -2
@@ -51,6 +51,7 @@ module Aws::BedrockAgentRuntime
|
|
51
51
|
BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
|
52
52
|
BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
|
53
53
|
BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
|
54
|
+
BedrockModelConfigurations = Shapes::StructureShape.new(name: 'BedrockModelConfigurations')
|
54
55
|
BedrockRerankingConfiguration = Shapes::StructureShape.new(name: 'BedrockRerankingConfiguration')
|
55
56
|
BedrockRerankingConfigurationNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'BedrockRerankingConfigurationNumberOfResultsInteger')
|
56
57
|
BedrockRerankingModelArn = Shapes::StringShape.new(name: 'BedrockRerankingModelArn')
|
@@ -140,6 +141,11 @@ module Aws::BedrockAgentRuntime
|
|
140
141
|
FunctionResult = Shapes::StructureShape.new(name: 'FunctionResult')
|
141
142
|
FunctionSchema = Shapes::UnionShape.new(name: 'FunctionSchema')
|
142
143
|
Functions = Shapes::ListShape.new(name: 'Functions')
|
144
|
+
GenerateQueryRequest = Shapes::StructureShape.new(name: 'GenerateQueryRequest')
|
145
|
+
GenerateQueryResponse = Shapes::StructureShape.new(name: 'GenerateQueryResponse')
|
146
|
+
GeneratedQueries = Shapes::ListShape.new(name: 'GeneratedQueries')
|
147
|
+
GeneratedQuery = Shapes::StructureShape.new(name: 'GeneratedQuery')
|
148
|
+
GeneratedQueryType = Shapes::StringShape.new(name: 'GeneratedQueryType')
|
143
149
|
GeneratedResponsePart = Shapes::StructureShape.new(name: 'GeneratedResponsePart')
|
144
150
|
GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
|
145
151
|
GetAgentMemoryRequest = Shapes::StructureShape.new(name: 'GetAgentMemoryRequest')
|
@@ -190,10 +196,12 @@ module Aws::BedrockAgentRuntime
|
|
190
196
|
InlineAgentResponseStream = Shapes::StructureShape.new(name: 'InlineAgentResponseStream')
|
191
197
|
InlineAgentReturnControlPayload = Shapes::StructureShape.new(name: 'InlineAgentReturnControlPayload')
|
192
198
|
InlineAgentTracePart = Shapes::StructureShape.new(name: 'InlineAgentTracePart')
|
199
|
+
InlineBedrockModelConfigurations = Shapes::StructureShape.new(name: 'InlineBedrockModelConfigurations')
|
193
200
|
InlineSessionState = Shapes::StructureShape.new(name: 'InlineSessionState')
|
194
201
|
InputFile = Shapes::StructureShape.new(name: 'InputFile')
|
195
202
|
InputFiles = Shapes::ListShape.new(name: 'InputFiles')
|
196
203
|
InputPrompt = Shapes::UnionShape.new(name: 'InputPrompt')
|
204
|
+
InputQueryType = Shapes::StringShape.new(name: 'InputQueryType')
|
197
205
|
InputText = Shapes::StringShape.new(name: 'InputText')
|
198
206
|
Instruction = Shapes::StringShape.new(name: 'Instruction')
|
199
207
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
@@ -211,6 +219,7 @@ module Aws::BedrockAgentRuntime
|
|
211
219
|
InvokeInlineAgentResponse = Shapes::StructureShape.new(name: 'InvokeInlineAgentResponse')
|
212
220
|
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
213
221
|
KnowledgeBase = Shapes::StructureShape.new(name: 'KnowledgeBase')
|
222
|
+
KnowledgeBaseArn = Shapes::StringShape.new(name: 'KnowledgeBaseArn')
|
214
223
|
KnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseConfiguration')
|
215
224
|
KnowledgeBaseConfigurations = Shapes::ListShape.new(name: 'KnowledgeBaseConfigurations')
|
216
225
|
KnowledgeBaseId = Shapes::StringShape.new(name: 'KnowledgeBaseId')
|
@@ -247,6 +256,8 @@ module Aws::BedrockAgentRuntime
|
|
247
256
|
MimeType = Shapes::StringShape.new(name: 'MimeType')
|
248
257
|
ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
|
249
258
|
ModelInvocationInput = Shapes::StructureShape.new(name: 'ModelInvocationInput')
|
259
|
+
ModelNotReadyException = Shapes::StructureShape.new(name: 'ModelNotReadyException')
|
260
|
+
ModelPerformanceConfiguration = Shapes::StructureShape.new(name: 'ModelPerformanceConfiguration')
|
250
261
|
Name = Shapes::StringShape.new(name: 'Name')
|
251
262
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
252
263
|
NodeInputName = Shapes::StringShape.new(name: 'NodeInputName')
|
@@ -279,6 +290,8 @@ module Aws::BedrockAgentRuntime
|
|
279
290
|
Payload = Shapes::StringShape.new(name: 'Payload')
|
280
291
|
PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
|
281
292
|
PayloadType = Shapes::StringShape.new(name: 'PayloadType')
|
293
|
+
PerformanceConfigLatency = Shapes::StringShape.new(name: 'PerformanceConfigLatency')
|
294
|
+
PerformanceConfiguration = Shapes::StructureShape.new(name: 'PerformanceConfiguration')
|
282
295
|
PostProcessingModelInvocationOutput = Shapes::StructureShape.new(name: 'PostProcessingModelInvocationOutput')
|
283
296
|
PostProcessingParsedResponse = Shapes::StructureShape.new(name: 'PostProcessingParsedResponse')
|
284
297
|
PostProcessingTrace = Shapes::UnionShape.new(name: 'PostProcessingTrace')
|
@@ -294,7 +307,10 @@ module Aws::BedrockAgentRuntime
|
|
294
307
|
PromptText = Shapes::StringShape.new(name: 'PromptText')
|
295
308
|
PromptType = Shapes::StringShape.new(name: 'PromptType')
|
296
309
|
PropertyParameters = Shapes::StructureShape.new(name: 'PropertyParameters')
|
310
|
+
QueryGenerationInput = Shapes::StructureShape.new(name: 'QueryGenerationInput')
|
311
|
+
QueryGenerationInputTextString = Shapes::StringShape.new(name: 'QueryGenerationInputTextString')
|
297
312
|
QueryTransformationConfiguration = Shapes::StructureShape.new(name: 'QueryTransformationConfiguration')
|
313
|
+
QueryTransformationMode = Shapes::StringShape.new(name: 'QueryTransformationMode')
|
298
314
|
QueryTransformationType = Shapes::StringShape.new(name: 'QueryTransformationType')
|
299
315
|
RAGStopSequences = Shapes::ListShape.new(name: 'RAGStopSequences')
|
300
316
|
RAGStopSequencesMemberString = Shapes::StringShape.new(name: 'RAGStopSequencesMemberString')
|
@@ -333,7 +349,12 @@ module Aws::BedrockAgentRuntime
|
|
333
349
|
RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
|
334
350
|
RetrievalResultConfluenceLocation = Shapes::StructureShape.new(name: 'RetrievalResultConfluenceLocation')
|
335
351
|
RetrievalResultContent = Shapes::StructureShape.new(name: 'RetrievalResultContent')
|
352
|
+
RetrievalResultContentColumn = Shapes::StructureShape.new(name: 'RetrievalResultContentColumn')
|
353
|
+
RetrievalResultContentColumnType = Shapes::StringShape.new(name: 'RetrievalResultContentColumnType')
|
354
|
+
RetrievalResultContentRow = Shapes::ListShape.new(name: 'RetrievalResultContentRow')
|
355
|
+
RetrievalResultContentType = Shapes::StringShape.new(name: 'RetrievalResultContentType')
|
336
356
|
RetrievalResultCustomDocumentLocation = Shapes::StructureShape.new(name: 'RetrievalResultCustomDocumentLocation')
|
357
|
+
RetrievalResultKendraDocumentLocation = Shapes::StructureShape.new(name: 'RetrievalResultKendraDocumentLocation')
|
337
358
|
RetrievalResultLocation = Shapes::StructureShape.new(name: 'RetrievalResultLocation')
|
338
359
|
RetrievalResultLocationType = Shapes::StringShape.new(name: 'RetrievalResultLocationType')
|
339
360
|
RetrievalResultMetadata = Shapes::MapShape.new(name: 'RetrievalResultMetadata')
|
@@ -342,6 +363,7 @@ module Aws::BedrockAgentRuntime
|
|
342
363
|
RetrievalResultS3Location = Shapes::StructureShape.new(name: 'RetrievalResultS3Location')
|
343
364
|
RetrievalResultSalesforceLocation = Shapes::StructureShape.new(name: 'RetrievalResultSalesforceLocation')
|
344
365
|
RetrievalResultSharePointLocation = Shapes::StructureShape.new(name: 'RetrievalResultSharePointLocation')
|
366
|
+
RetrievalResultSqlLocation = Shapes::StructureShape.new(name: 'RetrievalResultSqlLocation')
|
345
367
|
RetrievalResultWebLocation = Shapes::StructureShape.new(name: 'RetrievalResultWebLocation')
|
346
368
|
RetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'RetrieveAndGenerateConfiguration')
|
347
369
|
RetrieveAndGenerateInput = Shapes::StructureShape.new(name: 'RetrieveAndGenerateInput')
|
@@ -391,6 +413,9 @@ module Aws::BedrockAgentRuntime
|
|
391
413
|
TextPromptTemplate = Shapes::StringShape.new(name: 'TextPromptTemplate')
|
392
414
|
TextPromptTextString = Shapes::StringShape.new(name: 'TextPromptTextString')
|
393
415
|
TextResponsePart = Shapes::StructureShape.new(name: 'TextResponsePart')
|
416
|
+
TextToSqlConfiguration = Shapes::StructureShape.new(name: 'TextToSqlConfiguration')
|
417
|
+
TextToSqlConfigurationType = Shapes::StringShape.new(name: 'TextToSqlConfigurationType')
|
418
|
+
TextToSqlKnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'TextToSqlKnowledgeBaseConfiguration')
|
394
419
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
395
420
|
TopK = Shapes::IntegerShape.new(name: 'TopK')
|
396
421
|
TopP = Shapes::FloatShape.new(name: 'TopP')
|
@@ -398,6 +423,7 @@ module Aws::BedrockAgentRuntime
|
|
398
423
|
TraceId = Shapes::StringShape.new(name: 'TraceId')
|
399
424
|
TraceKnowledgeBaseId = Shapes::StringShape.new(name: 'TraceKnowledgeBaseId')
|
400
425
|
TracePart = Shapes::StructureShape.new(name: 'TracePart')
|
426
|
+
TransformationConfiguration = Shapes::StructureShape.new(name: 'TransformationConfiguration')
|
401
427
|
Type = Shapes::StringShape.new(name: 'Type')
|
402
428
|
Usage = Shapes::StructureShape.new(name: 'Usage')
|
403
429
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
@@ -516,6 +542,9 @@ module Aws::BedrockAgentRuntime
|
|
516
542
|
BadGatewayException.add_member(:resource_name, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "resourceName"))
|
517
543
|
BadGatewayException.struct_class = Types::BadGatewayException
|
518
544
|
|
545
|
+
BedrockModelConfigurations.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
546
|
+
BedrockModelConfigurations.struct_class = Types::BedrockModelConfigurations
|
547
|
+
|
519
548
|
BedrockRerankingConfiguration.add_member(:model_configuration, Shapes::ShapeRef.new(shape: BedrockRerankingModelConfiguration, required: true, location_name: "modelConfiguration"))
|
520
549
|
BedrockRerankingConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: BedrockRerankingConfigurationNumberOfResultsInteger, location_name: "numberOfResults"))
|
521
550
|
BedrockRerankingConfiguration.struct_class = Types::BedrockRerankingConfiguration
|
@@ -590,6 +619,7 @@ module Aws::BedrockAgentRuntime
|
|
590
619
|
DeleteAgentMemoryRequest.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, required: true, location: "uri", location_name: "agentAliasId"))
|
591
620
|
DeleteAgentMemoryRequest.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, required: true, location: "uri", location_name: "agentId"))
|
592
621
|
DeleteAgentMemoryRequest.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, location: "querystring", location_name: "memoryId"))
|
622
|
+
DeleteAgentMemoryRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "querystring", location_name: "sessionId"))
|
593
623
|
DeleteAgentMemoryRequest.struct_class = Types::DeleteAgentMemoryRequest
|
594
624
|
|
595
625
|
DeleteAgentMemoryResponse.struct_class = Types::DeleteAgentMemoryResponse
|
@@ -608,6 +638,7 @@ module Aws::BedrockAgentRuntime
|
|
608
638
|
ExternalSourcesGenerationConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
|
609
639
|
ExternalSourcesGenerationConfiguration.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
|
610
640
|
ExternalSourcesGenerationConfiguration.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfig, location_name: "inferenceConfig"))
|
641
|
+
ExternalSourcesGenerationConfiguration.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
611
642
|
ExternalSourcesGenerationConfiguration.add_member(:prompt_template, Shapes::ShapeRef.new(shape: PromptTemplate, location_name: "promptTemplate"))
|
612
643
|
ExternalSourcesGenerationConfiguration.struct_class = Types::ExternalSourcesGenerationConfiguration
|
613
644
|
|
@@ -777,12 +808,26 @@ module Aws::BedrockAgentRuntime
|
|
777
808
|
|
778
809
|
Functions.member = Shapes::ShapeRef.new(shape: FunctionDefinition)
|
779
810
|
|
811
|
+
GenerateQueryRequest.add_member(:query_generation_input, Shapes::ShapeRef.new(shape: QueryGenerationInput, required: true, location_name: "queryGenerationInput"))
|
812
|
+
GenerateQueryRequest.add_member(:transformation_configuration, Shapes::ShapeRef.new(shape: TransformationConfiguration, required: true, location_name: "transformationConfiguration"))
|
813
|
+
GenerateQueryRequest.struct_class = Types::GenerateQueryRequest
|
814
|
+
|
815
|
+
GenerateQueryResponse.add_member(:queries, Shapes::ShapeRef.new(shape: GeneratedQueries, location_name: "queries"))
|
816
|
+
GenerateQueryResponse.struct_class = Types::GenerateQueryResponse
|
817
|
+
|
818
|
+
GeneratedQueries.member = Shapes::ShapeRef.new(shape: GeneratedQuery)
|
819
|
+
|
820
|
+
GeneratedQuery.add_member(:sql, Shapes::ShapeRef.new(shape: String, location_name: "sql"))
|
821
|
+
GeneratedQuery.add_member(:type, Shapes::ShapeRef.new(shape: GeneratedQueryType, location_name: "type"))
|
822
|
+
GeneratedQuery.struct_class = Types::GeneratedQuery
|
823
|
+
|
780
824
|
GeneratedResponsePart.add_member(:text_response_part, Shapes::ShapeRef.new(shape: TextResponsePart, location_name: "textResponsePart"))
|
781
825
|
GeneratedResponsePart.struct_class = Types::GeneratedResponsePart
|
782
826
|
|
783
827
|
GenerationConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
|
784
828
|
GenerationConfiguration.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
|
785
829
|
GenerationConfiguration.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfig, location_name: "inferenceConfig"))
|
830
|
+
GenerationConfiguration.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
786
831
|
GenerationConfiguration.add_member(:prompt_template, Shapes::ShapeRef.new(shape: PromptTemplate, location_name: "promptTemplate"))
|
787
832
|
GenerationConfiguration.struct_class = Types::GenerationConfiguration
|
788
833
|
|
@@ -923,6 +968,9 @@ module Aws::BedrockAgentRuntime
|
|
923
968
|
InlineAgentTracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
|
924
969
|
InlineAgentTracePart.struct_class = Types::InlineAgentTracePart
|
925
970
|
|
971
|
+
InlineBedrockModelConfigurations.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
972
|
+
InlineBedrockModelConfigurations.struct_class = Types::InlineBedrockModelConfigurations
|
973
|
+
|
926
974
|
InlineSessionState.add_member(:files, Shapes::ShapeRef.new(shape: InputFiles, location_name: "files"))
|
927
975
|
InlineSessionState.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
|
928
976
|
InlineSessionState.add_member(:prompt_session_attributes, Shapes::ShapeRef.new(shape: PromptSessionAttributesMap, location_name: "promptSessionAttributes"))
|
@@ -974,6 +1022,7 @@ module Aws::BedrockAgentRuntime
|
|
974
1022
|
|
975
1023
|
InvokeAgentRequest.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, required: true, location: "uri", location_name: "agentAliasId"))
|
976
1024
|
InvokeAgentRequest.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, required: true, location: "uri", location_name: "agentId"))
|
1025
|
+
InvokeAgentRequest.add_member(:bedrock_model_configurations, Shapes::ShapeRef.new(shape: BedrockModelConfigurations, location_name: "bedrockModelConfigurations"))
|
977
1026
|
InvokeAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
|
978
1027
|
InvokeAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
|
979
1028
|
InvokeAgentRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: InputText, location_name: "inputText"))
|
@@ -996,6 +1045,7 @@ module Aws::BedrockAgentRuntime
|
|
996
1045
|
InvokeFlowRequest.add_member(:flow_alias_identifier, Shapes::ShapeRef.new(shape: FlowAliasIdentifier, required: true, location: "uri", location_name: "flowAliasIdentifier"))
|
997
1046
|
InvokeFlowRequest.add_member(:flow_identifier, Shapes::ShapeRef.new(shape: FlowIdentifier, required: true, location: "uri", location_name: "flowIdentifier"))
|
998
1047
|
InvokeFlowRequest.add_member(:inputs, Shapes::ShapeRef.new(shape: FlowInputs, required: true, location_name: "inputs"))
|
1048
|
+
InvokeFlowRequest.add_member(:model_performance_configuration, Shapes::ShapeRef.new(shape: ModelPerformanceConfiguration, location_name: "modelPerformanceConfiguration"))
|
999
1049
|
InvokeFlowRequest.struct_class = Types::InvokeFlowRequest
|
1000
1050
|
|
1001
1051
|
InvokeFlowResponse.add_member(:response_stream, Shapes::ShapeRef.new(shape: FlowResponseStream, required: true, eventstream: true, location_name: "responseStream"))
|
@@ -1004,6 +1054,7 @@ module Aws::BedrockAgentRuntime
|
|
1004
1054
|
InvokeFlowResponse[:payload_member] = InvokeFlowResponse.member(:response_stream)
|
1005
1055
|
|
1006
1056
|
InvokeInlineAgentRequest.add_member(:action_groups, Shapes::ShapeRef.new(shape: AgentActionGroups, location_name: "actionGroups"))
|
1057
|
+
InvokeInlineAgentRequest.add_member(:bedrock_model_configurations, Shapes::ShapeRef.new(shape: InlineBedrockModelConfigurations, location_name: "bedrockModelConfigurations"))
|
1007
1058
|
InvokeInlineAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
|
1008
1059
|
InvokeInlineAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
|
1009
1060
|
InvokeInlineAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
|
@@ -1118,6 +1169,12 @@ module Aws::BedrockAgentRuntime
|
|
1118
1169
|
ModelInvocationInput.add_member(:type, Shapes::ShapeRef.new(shape: PromptType, location_name: "type"))
|
1119
1170
|
ModelInvocationInput.struct_class = Types::ModelInvocationInput
|
1120
1171
|
|
1172
|
+
ModelNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
1173
|
+
ModelNotReadyException.struct_class = Types::ModelNotReadyException
|
1174
|
+
|
1175
|
+
ModelPerformanceConfiguration.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
1176
|
+
ModelPerformanceConfiguration.struct_class = Types::ModelPerformanceConfiguration
|
1177
|
+
|
1121
1178
|
Observation.add_member(:action_group_invocation_output, Shapes::ShapeRef.new(shape: ActionGroupInvocationOutput, location_name: "actionGroupInvocationOutput"))
|
1122
1179
|
Observation.add_member(:agent_collaborator_invocation_output, Shapes::ShapeRef.new(shape: AgentCollaboratorInvocationOutput, location_name: "agentCollaboratorInvocationOutput"))
|
1123
1180
|
Observation.add_member(:code_interpreter_invocation_output, Shapes::ShapeRef.new(shape: CodeInterpreterInvocationOutput, location_name: "codeInterpreterInvocationOutput"))
|
@@ -1158,6 +1215,7 @@ module Aws::BedrockAgentRuntime
|
|
1158
1215
|
|
1159
1216
|
OrchestrationConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
|
1160
1217
|
OrchestrationConfiguration.add_member(:inference_config, Shapes::ShapeRef.new(shape: InferenceConfig, location_name: "inferenceConfig"))
|
1218
|
+
OrchestrationConfiguration.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
1161
1219
|
OrchestrationConfiguration.add_member(:prompt_template, Shapes::ShapeRef.new(shape: PromptTemplate, location_name: "promptTemplate"))
|
1162
1220
|
OrchestrationConfiguration.add_member(:query_transformation_configuration, Shapes::ShapeRef.new(shape: QueryTransformationConfiguration, location_name: "queryTransformationConfiguration"))
|
1163
1221
|
OrchestrationConfiguration.struct_class = Types::OrchestrationConfiguration
|
@@ -1209,6 +1267,9 @@ module Aws::BedrockAgentRuntime
|
|
1209
1267
|
PayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
|
1210
1268
|
PayloadPart.struct_class = Types::PayloadPart
|
1211
1269
|
|
1270
|
+
PerformanceConfiguration.add_member(:latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location_name: "latency"))
|
1271
|
+
PerformanceConfiguration.struct_class = Types::PerformanceConfiguration
|
1272
|
+
|
1212
1273
|
PostProcessingModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
|
1213
1274
|
PostProcessingModelInvocationOutput.add_member(:parsed_response, Shapes::ShapeRef.new(shape: PostProcessingParsedResponse, location_name: "parsedResponse"))
|
1214
1275
|
PostProcessingModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
|
@@ -1267,6 +1328,10 @@ module Aws::BedrockAgentRuntime
|
|
1267
1328
|
PropertyParameters.add_member(:properties, Shapes::ShapeRef.new(shape: ParameterList, location_name: "properties"))
|
1268
1329
|
PropertyParameters.struct_class = Types::PropertyParameters
|
1269
1330
|
|
1331
|
+
QueryGenerationInput.add_member(:text, Shapes::ShapeRef.new(shape: QueryGenerationInputTextString, required: true, location_name: "text"))
|
1332
|
+
QueryGenerationInput.add_member(:type, Shapes::ShapeRef.new(shape: InputQueryType, required: true, location_name: "type"))
|
1333
|
+
QueryGenerationInput.struct_class = Types::QueryGenerationInput
|
1334
|
+
|
1270
1335
|
QueryTransformationConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: QueryTransformationType, required: true, location_name: "type"))
|
1271
1336
|
QueryTransformationConfiguration.struct_class = Types::QueryTransformationConfiguration
|
1272
1337
|
|
@@ -1348,6 +1413,7 @@ module Aws::BedrockAgentRuntime
|
|
1348
1413
|
ResponseStream.add_member(:dependency_failed_exception, Shapes::ShapeRef.new(shape: DependencyFailedException, location_name: "dependencyFailedException"))
|
1349
1414
|
ResponseStream.add_member(:files, Shapes::ShapeRef.new(shape: FilePart, event: true, location_name: "files"))
|
1350
1415
|
ResponseStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
|
1416
|
+
ResponseStream.add_member(:model_not_ready_exception, Shapes::ShapeRef.new(shape: ModelNotReadyException, location_name: "modelNotReadyException"))
|
1351
1417
|
ResponseStream.add_member(:resource_not_found_exception, Shapes::ShapeRef.new(shape: ResourceNotFoundException, location_name: "resourceNotFoundException"))
|
1352
1418
|
ResponseStream.add_member(:return_control, Shapes::ShapeRef.new(shape: ReturnControlPayload, event: true, location_name: "returnControl"))
|
1353
1419
|
ResponseStream.add_member(:service_quota_exceeded_exception, Shapes::ShapeRef.new(shape: ServiceQuotaExceededException, location_name: "serviceQuotaExceededException"))
|
@@ -1391,17 +1457,32 @@ module Aws::BedrockAgentRuntime
|
|
1391
1457
|
RetrievalResultConfluenceLocation.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
1392
1458
|
RetrievalResultConfluenceLocation.struct_class = Types::RetrievalResultConfluenceLocation
|
1393
1459
|
|
1394
|
-
RetrievalResultContent.add_member(:
|
1460
|
+
RetrievalResultContent.add_member(:byte_content, Shapes::ShapeRef.new(shape: String, location_name: "byteContent"))
|
1461
|
+
RetrievalResultContent.add_member(:row, Shapes::ShapeRef.new(shape: RetrievalResultContentRow, location_name: "row"))
|
1462
|
+
RetrievalResultContent.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
1463
|
+
RetrievalResultContent.add_member(:type, Shapes::ShapeRef.new(shape: RetrievalResultContentType, location_name: "type"))
|
1395
1464
|
RetrievalResultContent.struct_class = Types::RetrievalResultContent
|
1396
1465
|
|
1466
|
+
RetrievalResultContentColumn.add_member(:column_name, Shapes::ShapeRef.new(shape: String, location_name: "columnName"))
|
1467
|
+
RetrievalResultContentColumn.add_member(:column_value, Shapes::ShapeRef.new(shape: String, location_name: "columnValue"))
|
1468
|
+
RetrievalResultContentColumn.add_member(:type, Shapes::ShapeRef.new(shape: RetrievalResultContentColumnType, location_name: "type"))
|
1469
|
+
RetrievalResultContentColumn.struct_class = Types::RetrievalResultContentColumn
|
1470
|
+
|
1471
|
+
RetrievalResultContentRow.member = Shapes::ShapeRef.new(shape: RetrievalResultContentColumn)
|
1472
|
+
|
1397
1473
|
RetrievalResultCustomDocumentLocation.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
1398
1474
|
RetrievalResultCustomDocumentLocation.struct_class = Types::RetrievalResultCustomDocumentLocation
|
1399
1475
|
|
1476
|
+
RetrievalResultKendraDocumentLocation.add_member(:uri, Shapes::ShapeRef.new(shape: String, location_name: "uri"))
|
1477
|
+
RetrievalResultKendraDocumentLocation.struct_class = Types::RetrievalResultKendraDocumentLocation
|
1478
|
+
|
1400
1479
|
RetrievalResultLocation.add_member(:confluence_location, Shapes::ShapeRef.new(shape: RetrievalResultConfluenceLocation, location_name: "confluenceLocation"))
|
1401
1480
|
RetrievalResultLocation.add_member(:custom_document_location, Shapes::ShapeRef.new(shape: RetrievalResultCustomDocumentLocation, location_name: "customDocumentLocation"))
|
1481
|
+
RetrievalResultLocation.add_member(:kendra_document_location, Shapes::ShapeRef.new(shape: RetrievalResultKendraDocumentLocation, location_name: "kendraDocumentLocation"))
|
1402
1482
|
RetrievalResultLocation.add_member(:s3_location, Shapes::ShapeRef.new(shape: RetrievalResultS3Location, location_name: "s3Location"))
|
1403
1483
|
RetrievalResultLocation.add_member(:salesforce_location, Shapes::ShapeRef.new(shape: RetrievalResultSalesforceLocation, location_name: "salesforceLocation"))
|
1404
1484
|
RetrievalResultLocation.add_member(:share_point_location, Shapes::ShapeRef.new(shape: RetrievalResultSharePointLocation, location_name: "sharePointLocation"))
|
1485
|
+
RetrievalResultLocation.add_member(:sql_location, Shapes::ShapeRef.new(shape: RetrievalResultSqlLocation, location_name: "sqlLocation"))
|
1405
1486
|
RetrievalResultLocation.add_member(:type, Shapes::ShapeRef.new(shape: RetrievalResultLocationType, required: true, location_name: "type"))
|
1406
1487
|
RetrievalResultLocation.add_member(:web_location, Shapes::ShapeRef.new(shape: RetrievalResultWebLocation, location_name: "webLocation"))
|
1407
1488
|
RetrievalResultLocation.struct_class = Types::RetrievalResultLocation
|
@@ -1418,6 +1499,9 @@ module Aws::BedrockAgentRuntime
|
|
1418
1499
|
RetrievalResultSharePointLocation.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
1419
1500
|
RetrievalResultSharePointLocation.struct_class = Types::RetrievalResultSharePointLocation
|
1420
1501
|
|
1502
|
+
RetrievalResultSqlLocation.add_member(:query, Shapes::ShapeRef.new(shape: String, location_name: "query"))
|
1503
|
+
RetrievalResultSqlLocation.struct_class = Types::RetrievalResultSqlLocation
|
1504
|
+
|
1421
1505
|
RetrievalResultWebLocation.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
1422
1506
|
RetrievalResultWebLocation.struct_class = Types::RetrievalResultWebLocation
|
1423
1507
|
|
@@ -1570,6 +1654,13 @@ module Aws::BedrockAgentRuntime
|
|
1570
1654
|
TextResponsePart.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
1571
1655
|
TextResponsePart.struct_class = Types::TextResponsePart
|
1572
1656
|
|
1657
|
+
TextToSqlConfiguration.add_member(:knowledge_base_configuration, Shapes::ShapeRef.new(shape: TextToSqlKnowledgeBaseConfiguration, location_name: "knowledgeBaseConfiguration"))
|
1658
|
+
TextToSqlConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: TextToSqlConfigurationType, required: true, location_name: "type"))
|
1659
|
+
TextToSqlConfiguration.struct_class = Types::TextToSqlConfiguration
|
1660
|
+
|
1661
|
+
TextToSqlKnowledgeBaseConfiguration.add_member(:knowledge_base_arn, Shapes::ShapeRef.new(shape: KnowledgeBaseArn, required: true, location_name: "knowledgeBaseArn"))
|
1662
|
+
TextToSqlKnowledgeBaseConfiguration.struct_class = Types::TextToSqlKnowledgeBaseConfiguration
|
1663
|
+
|
1573
1664
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
1574
1665
|
ThrottlingException.struct_class = Types::ThrottlingException
|
1575
1666
|
|
@@ -1600,6 +1691,10 @@ module Aws::BedrockAgentRuntime
|
|
1600
1691
|
TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
|
1601
1692
|
TracePart.struct_class = Types::TracePart
|
1602
1693
|
|
1694
|
+
TransformationConfiguration.add_member(:mode, Shapes::ShapeRef.new(shape: QueryTransformationMode, required: true, location_name: "mode"))
|
1695
|
+
TransformationConfiguration.add_member(:text_to_sql_configuration, Shapes::ShapeRef.new(shape: TextToSqlConfiguration, location_name: "textToSqlConfiguration"))
|
1696
|
+
TransformationConfiguration.struct_class = Types::TransformationConfiguration
|
1697
|
+
|
1603
1698
|
Usage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "inputTokens"))
|
1604
1699
|
Usage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "outputTokens"))
|
1605
1700
|
Usage.struct_class = Types::Usage
|
@@ -1657,6 +1752,23 @@ module Aws::BedrockAgentRuntime
|
|
1657
1752
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1658
1753
|
end)
|
1659
1754
|
|
1755
|
+
api.add_operation(:generate_query, Seahorse::Model::Operation.new.tap do |o|
|
1756
|
+
o.name = "GenerateQuery"
|
1757
|
+
o.http_method = "POST"
|
1758
|
+
o.http_request_uri = "/generateQuery"
|
1759
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateQueryRequest)
|
1760
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateQueryResponse)
|
1761
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1762
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1763
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1764
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1765
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
|
1766
|
+
o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
|
1767
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1768
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1769
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1770
|
+
end)
|
1771
|
+
|
1660
1772
|
api.add_operation(:get_agent_memory, Seahorse::Model::Operation.new.tap do |o|
|
1661
1773
|
o.name = "GetAgentMemory"
|
1662
1774
|
o.http_method = "GET"
|
@@ -1686,6 +1798,7 @@ module Aws::BedrockAgentRuntime
|
|
1686
1798
|
o.http_request_uri = "/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text"
|
1687
1799
|
o.input = Shapes::ShapeRef.new(shape: InvokeAgentRequest)
|
1688
1800
|
o.output = Shapes::ShapeRef.new(shape: InvokeAgentResponse)
|
1801
|
+
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
1689
1802
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1690
1803
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1691
1804
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
@@ -32,6 +32,7 @@ module Aws::BedrockAgentRuntime
|
|
32
32
|
# * {ConflictException}
|
33
33
|
# * {DependencyFailedException}
|
34
34
|
# * {InternalServerException}
|
35
|
+
# * {ModelNotReadyException}
|
35
36
|
# * {ResourceNotFoundException}
|
36
37
|
# * {ServiceQuotaExceededException}
|
37
38
|
# * {ThrottlingException}
|
@@ -128,6 +129,21 @@ module Aws::BedrockAgentRuntime
|
|
128
129
|
end
|
129
130
|
end
|
130
131
|
|
132
|
+
class ModelNotReadyException < ServiceError
|
133
|
+
|
134
|
+
# @param [Seahorse::Client::RequestContext] context
|
135
|
+
# @param [String] message
|
136
|
+
# @param [Aws::BedrockAgentRuntime::Types::ModelNotReadyException] data
|
137
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
138
|
+
super(context, message, data)
|
139
|
+
end
|
140
|
+
|
141
|
+
# @return [String]
|
142
|
+
def message
|
143
|
+
@message || @data[:message]
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
131
147
|
class ResourceNotFoundException < ServiceError
|
132
148
|
|
133
149
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -43,6 +43,10 @@ module Aws::BedrockAgentRuntime
|
|
43
43
|
@event_emitter.on(:internal_server_exception, block) if block_given?
|
44
44
|
end
|
45
45
|
|
46
|
+
def on_model_not_ready_exception_event(&block)
|
47
|
+
@event_emitter.on(:model_not_ready_exception, block) if block_given?
|
48
|
+
end
|
49
|
+
|
46
50
|
def on_resource_not_found_exception_event(&block)
|
47
51
|
@event_emitter.on(:resource_not_found_exception, block) if block_given?
|
48
52
|
end
|
@@ -87,6 +91,7 @@ module Aws::BedrockAgentRuntime
|
|
87
91
|
on_dependency_failed_exception_event(&block)
|
88
92
|
on_files_event(&block)
|
89
93
|
on_internal_server_exception_event(&block)
|
94
|
+
on_model_not_ready_exception_event(&block)
|
90
95
|
on_resource_not_found_exception_event(&block)
|
91
96
|
on_return_control_event(&block)
|
92
97
|
on_service_quota_exceeded_exception_event(&block)
|