aws-sdk-bedrockagentruntime 1.36.0 → 1.38.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.
data/sig/client.rbs CHANGED
@@ -85,10 +85,33 @@ module Aws
85
85
  def delete_agent_memory: (
86
86
  agent_alias_id: ::String,
87
87
  agent_id: ::String,
88
- ?memory_id: ::String
88
+ ?memory_id: ::String,
89
+ ?session_id: ::String
89
90
  ) -> _DeleteAgentMemoryResponseSuccess
90
91
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAgentMemoryResponseSuccess
91
92
 
93
+ interface _GenerateQueryResponseSuccess
94
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateQueryResponse]
95
+ def queries: () -> ::Array[Types::GeneratedQuery]
96
+ end
97
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#generate_query-instance_method
98
+ def generate_query: (
99
+ query_generation_input: {
100
+ text: ::String,
101
+ type: ("TEXT")
102
+ },
103
+ transformation_configuration: {
104
+ mode: ("TEXT_TO_SQL"),
105
+ text_to_sql_configuration: {
106
+ knowledge_base_configuration: {
107
+ knowledge_base_arn: ::String
108
+ }?,
109
+ type: ("KNOWLEDGE_BASE")
110
+ }?
111
+ }
112
+ ) -> _GenerateQueryResponseSuccess
113
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateQueryResponseSuccess
114
+
92
115
  interface _GetAgentMemoryResponseSuccess
93
116
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAgentMemoryResponse]
94
117
  def memory_contents: () -> ::Array[Types::Memory]
@@ -116,6 +139,11 @@ module Aws
116
139
  def invoke_agent: (
117
140
  agent_alias_id: ::String,
118
141
  agent_id: ::String,
142
+ ?bedrock_model_configurations: {
143
+ performance_config: {
144
+ latency: ("standard" | "optimized")?
145
+ }?
146
+ },
119
147
  ?enable_trace: bool,
120
148
  ?end_session: bool,
121
149
  ?input_text: ::String,
@@ -316,7 +344,12 @@ module Aws
316
344
  node_name: ::String,
317
345
  node_output_name: ::String
318
346
  },
319
- ]
347
+ ],
348
+ ?model_performance_configuration: {
349
+ performance_config: {
350
+ latency: ("standard" | "optimized")?
351
+ }?
352
+ }
320
353
  ) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
321
354
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeFlowResponseSuccess
322
355
 
@@ -360,6 +393,11 @@ module Aws
360
393
  parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter")?
361
394
  },
362
395
  ],
396
+ ?bedrock_model_configurations: {
397
+ performance_config: {
398
+ latency: ("standard" | "optimized")?
399
+ }?
400
+ },
363
401
  ?customer_encryption_key_arn: ::String,
364
402
  ?enable_trace: bool,
365
403
  ?end_session: bool,
@@ -764,6 +802,9 @@ module Aws
764
802
  top_p: ::Float?
765
803
  }?
766
804
  }?,
805
+ performance_config: {
806
+ latency: ("standard" | "optimized")?
807
+ }?,
767
808
  prompt_template: {
768
809
  text_prompt_template: ::String?
769
810
  }?
@@ -799,6 +840,9 @@ module Aws
799
840
  top_p: ::Float?
800
841
  }?
801
842
  }?,
843
+ performance_config: {
844
+ latency: ("standard" | "optimized")?
845
+ }?,
802
846
  prompt_template: {
803
847
  text_prompt_template: ::String?
804
848
  }?
@@ -816,6 +860,9 @@ module Aws
816
860
  top_p: ::Float?
817
861
  }?
818
862
  }?,
863
+ performance_config: {
864
+ latency: ("standard" | "optimized")?
865
+ }?,
819
866
  prompt_template: {
820
867
  text_prompt_template: ::String?
821
868
  }?,
@@ -965,6 +1012,9 @@ module Aws
965
1012
  top_p: ::Float?
966
1013
  }?
967
1014
  }?,
1015
+ performance_config: {
1016
+ latency: ("standard" | "optimized")?
1017
+ }?,
968
1018
  prompt_template: {
969
1019
  text_prompt_template: ::String?
970
1020
  }?
@@ -1000,6 +1050,9 @@ module Aws
1000
1050
  top_p: ::Float?
1001
1051
  }?
1002
1052
  }?,
1053
+ performance_config: {
1054
+ latency: ("standard" | "optimized")?
1055
+ }?,
1003
1056
  prompt_template: {
1004
1057
  text_prompt_template: ::String?
1005
1058
  }?
@@ -1017,6 +1070,9 @@ module Aws
1017
1070
  top_p: ::Float?
1018
1071
  }?
1019
1072
  }?,
1073
+ performance_config: {
1074
+ latency: ("standard" | "optimized")?
1075
+ }?,
1020
1076
  prompt_template: {
1021
1077
  text_prompt_template: ::String?
1022
1078
  }?,
data/sig/errors.rbs CHANGED
@@ -28,6 +28,9 @@ module Aws
28
28
  class InternalServerException < ::Aws::Errors::ServiceError
29
29
  def message: () -> ::String
30
30
  end
31
+ class ModelNotReadyException < ::Aws::Errors::ServiceError
32
+ def message: () -> ::String
33
+ end
31
34
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
32
35
  def message: () -> ::String
33
36
  end
data/sig/types.rbs CHANGED
@@ -151,6 +151,11 @@ module Aws::BedrockAgentRuntime
151
151
  SENSITIVE: []
152
152
  end
153
153
 
154
+ class BedrockModelConfigurations
155
+ attr_accessor performance_config: Types::PerformanceConfiguration
156
+ SENSITIVE: []
157
+ end
158
+
154
159
  class BedrockRerankingConfiguration
155
160
  attr_accessor model_configuration: Types::BedrockRerankingModelConfiguration
156
161
  attr_accessor number_of_results: ::Integer
@@ -255,6 +260,7 @@ module Aws::BedrockAgentRuntime
255
260
  attr_accessor agent_alias_id: ::String
256
261
  attr_accessor agent_id: ::String
257
262
  attr_accessor memory_id: ::String
263
+ attr_accessor session_id: ::String
258
264
  SENSITIVE: []
259
265
  end
260
266
 
@@ -279,6 +285,7 @@ module Aws::BedrockAgentRuntime
279
285
  attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
280
286
  attr_accessor guardrail_configuration: Types::GuardrailConfiguration
281
287
  attr_accessor inference_config: Types::InferenceConfig
288
+ attr_accessor performance_config: Types::PerformanceConfiguration
282
289
  attr_accessor prompt_template: Types::PromptTemplate
283
290
  SENSITIVE: []
284
291
  end
@@ -497,6 +504,23 @@ module Aws::BedrockAgentRuntime
497
504
  end
498
505
  end
499
506
 
507
+ class GenerateQueryRequest
508
+ attr_accessor query_generation_input: Types::QueryGenerationInput
509
+ attr_accessor transformation_configuration: Types::TransformationConfiguration
510
+ SENSITIVE: [:query_generation_input]
511
+ end
512
+
513
+ class GenerateQueryResponse
514
+ attr_accessor queries: ::Array[Types::GeneratedQuery]
515
+ SENSITIVE: []
516
+ end
517
+
518
+ class GeneratedQuery
519
+ attr_accessor sql: ::String
520
+ attr_accessor type: ("REDSHIFT_SQL")
521
+ SENSITIVE: []
522
+ end
523
+
500
524
  class GeneratedResponsePart
501
525
  attr_accessor text_response_part: Types::TextResponsePart
502
526
  SENSITIVE: [:text_response_part]
@@ -506,6 +530,7 @@ module Aws::BedrockAgentRuntime
506
530
  attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
507
531
  attr_accessor guardrail_configuration: Types::GuardrailConfiguration
508
532
  attr_accessor inference_config: Types::InferenceConfig
533
+ attr_accessor performance_config: Types::PerformanceConfiguration
509
534
  attr_accessor prompt_template: Types::PromptTemplate
510
535
  SENSITIVE: []
511
536
  end
@@ -671,6 +696,11 @@ module Aws::BedrockAgentRuntime
671
696
  SENSITIVE: [:trace]
672
697
  end
673
698
 
699
+ class InlineBedrockModelConfigurations
700
+ attr_accessor performance_config: Types::PerformanceConfiguration
701
+ SENSITIVE: []
702
+ end
703
+
674
704
  class InlineSessionState
675
705
  attr_accessor files: ::Array[Types::InputFile]
676
706
  attr_accessor invocation_id: ::String
@@ -745,6 +775,7 @@ module Aws::BedrockAgentRuntime
745
775
  class InvokeAgentRequest
746
776
  attr_accessor agent_alias_id: ::String
747
777
  attr_accessor agent_id: ::String
778
+ attr_accessor bedrock_model_configurations: Types::BedrockModelConfigurations
748
779
  attr_accessor enable_trace: bool
749
780
  attr_accessor end_session: bool
750
781
  attr_accessor input_text: ::String
@@ -769,6 +800,7 @@ module Aws::BedrockAgentRuntime
769
800
  attr_accessor flow_alias_identifier: ::String
770
801
  attr_accessor flow_identifier: ::String
771
802
  attr_accessor inputs: ::Array[Types::FlowInput]
803
+ attr_accessor model_performance_configuration: Types::ModelPerformanceConfiguration
772
804
  SENSITIVE: []
773
805
  end
774
806
 
@@ -779,6 +811,7 @@ module Aws::BedrockAgentRuntime
779
811
 
780
812
  class InvokeInlineAgentRequest
781
813
  attr_accessor action_groups: ::Array[Types::AgentActionGroup]
814
+ attr_accessor bedrock_model_configurations: Types::InlineBedrockModelConfigurations
782
815
  attr_accessor customer_encryption_key_arn: ::String
783
816
  attr_accessor enable_trace: bool
784
817
  attr_accessor end_session: bool
@@ -917,6 +950,17 @@ module Aws::BedrockAgentRuntime
917
950
  SENSITIVE: [:text]
918
951
  end
919
952
 
953
+ class ModelNotReadyException
954
+ attr_accessor message: ::String
955
+ attr_accessor event_type: untyped
956
+ SENSITIVE: []
957
+ end
958
+
959
+ class ModelPerformanceConfiguration
960
+ attr_accessor performance_config: Types::PerformanceConfiguration
961
+ SENSITIVE: []
962
+ end
963
+
920
964
  class Observation
921
965
  attr_accessor action_group_invocation_output: Types::ActionGroupInvocationOutput
922
966
  attr_accessor agent_collaborator_invocation_output: Types::AgentCollaboratorInvocationOutput
@@ -960,6 +1004,7 @@ module Aws::BedrockAgentRuntime
960
1004
  class OrchestrationConfiguration
961
1005
  attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
962
1006
  attr_accessor inference_config: Types::InferenceConfig
1007
+ attr_accessor performance_config: Types::PerformanceConfiguration
963
1008
  attr_accessor prompt_template: Types::PromptTemplate
964
1009
  attr_accessor query_transformation_configuration: Types::QueryTransformationConfiguration
965
1010
  SENSITIVE: []
@@ -1023,6 +1068,11 @@ module Aws::BedrockAgentRuntime
1023
1068
  SENSITIVE: [:bytes]
1024
1069
  end
1025
1070
 
1071
+ class PerformanceConfiguration
1072
+ attr_accessor latency: ("standard" | "optimized")
1073
+ SENSITIVE: []
1074
+ end
1075
+
1026
1076
  class PostProcessingModelInvocationOutput
1027
1077
  attr_accessor metadata: Types::Metadata
1028
1078
  attr_accessor parsed_response: Types::PostProcessingParsedResponse
@@ -1104,6 +1154,12 @@ module Aws::BedrockAgentRuntime
1104
1154
  SENSITIVE: []
1105
1155
  end
1106
1156
 
1157
+ class QueryGenerationInput
1158
+ attr_accessor text: ::String
1159
+ attr_accessor type: ("TEXT")
1160
+ SENSITIVE: []
1161
+ end
1162
+
1107
1163
  class QueryTransformationConfiguration
1108
1164
  attr_accessor type: ("QUERY_DECOMPOSITION")
1109
1165
  SENSITIVE: []
@@ -1255,7 +1311,17 @@ module Aws::BedrockAgentRuntime
1255
1311
  end
1256
1312
 
1257
1313
  class RetrievalResultContent
1314
+ attr_accessor byte_content: ::String
1315
+ attr_accessor row: ::Array[Types::RetrievalResultContentColumn]
1258
1316
  attr_accessor text: ::String
1317
+ attr_accessor type: ("TEXT" | "IMAGE" | "ROW")
1318
+ SENSITIVE: [:row]
1319
+ end
1320
+
1321
+ class RetrievalResultContentColumn
1322
+ attr_accessor column_name: ::String
1323
+ attr_accessor column_value: ::String
1324
+ attr_accessor type: ("BLOB" | "BOOLEAN" | "DOUBLE" | "NULL" | "LONG" | "STRING")
1259
1325
  SENSITIVE: []
1260
1326
  end
1261
1327
 
@@ -1264,13 +1330,20 @@ module Aws::BedrockAgentRuntime
1264
1330
  SENSITIVE: []
1265
1331
  end
1266
1332
 
1333
+ class RetrievalResultKendraDocumentLocation
1334
+ attr_accessor uri: ::String
1335
+ SENSITIVE: []
1336
+ end
1337
+
1267
1338
  class RetrievalResultLocation
1268
1339
  attr_accessor confluence_location: Types::RetrievalResultConfluenceLocation
1269
1340
  attr_accessor custom_document_location: Types::RetrievalResultCustomDocumentLocation
1341
+ attr_accessor kendra_document_location: Types::RetrievalResultKendraDocumentLocation
1270
1342
  attr_accessor s3_location: Types::RetrievalResultS3Location
1271
1343
  attr_accessor salesforce_location: Types::RetrievalResultSalesforceLocation
1272
1344
  attr_accessor share_point_location: Types::RetrievalResultSharePointLocation
1273
- attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM")
1345
+ attr_accessor sql_location: Types::RetrievalResultSqlLocation
1346
+ attr_accessor type: ("S3" | "WEB" | "CONFLUENCE" | "SALESFORCE" | "SHAREPOINT" | "CUSTOM" | "KENDRA" | "SQL")
1274
1347
  attr_accessor web_location: Types::RetrievalResultWebLocation
1275
1348
  SENSITIVE: []
1276
1349
  end
@@ -1290,6 +1363,11 @@ module Aws::BedrockAgentRuntime
1290
1363
  SENSITIVE: []
1291
1364
  end
1292
1365
 
1366
+ class RetrievalResultSqlLocation
1367
+ attr_accessor query: ::String
1368
+ SENSITIVE: []
1369
+ end
1370
+
1293
1371
  class RetrievalResultWebLocation
1294
1372
  attr_accessor url: ::String
1295
1373
  SENSITIVE: []
@@ -1480,6 +1558,17 @@ module Aws::BedrockAgentRuntime
1480
1558
  SENSITIVE: []
1481
1559
  end
1482
1560
 
1561
+ class TextToSqlConfiguration
1562
+ attr_accessor knowledge_base_configuration: Types::TextToSqlKnowledgeBaseConfiguration
1563
+ attr_accessor type: ("KNOWLEDGE_BASE")
1564
+ SENSITIVE: []
1565
+ end
1566
+
1567
+ class TextToSqlKnowledgeBaseConfiguration
1568
+ attr_accessor knowledge_base_arn: ::String
1569
+ SENSITIVE: []
1570
+ end
1571
+
1483
1572
  class ThrottlingException
1484
1573
  attr_accessor message: ::String
1485
1574
  attr_accessor event_type: untyped
@@ -1527,6 +1616,12 @@ module Aws::BedrockAgentRuntime
1527
1616
  SENSITIVE: [:collaborator_name, :trace]
1528
1617
  end
1529
1618
 
1619
+ class TransformationConfiguration
1620
+ attr_accessor mode: ("TEXT_TO_SQL")
1621
+ attr_accessor text_to_sql_configuration: Types::TextToSqlConfiguration
1622
+ SENSITIVE: []
1623
+ end
1624
+
1530
1625
  class Usage
1531
1626
  attr_accessor input_tokens: ::Integer
1532
1627
  attr_accessor output_tokens: ::Integer
@@ -1571,7 +1666,7 @@ module Aws::BedrockAgentRuntime
1571
1666
  end
1572
1667
 
1573
1668
  class ResponseStream < Enumerator[untyped, untyped]
1574
- def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :chunk, :conflict_exception, :dependency_failed_exception, :files, :internal_server_exception, :resource_not_found_exception, :return_control, :service_quota_exceeded_exception, :throttling_exception, :trace, :validation_exception]
1669
+ def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :chunk, :conflict_exception, :dependency_failed_exception, :files, :internal_server_exception, :model_not_ready_exception, :resource_not_found_exception, :return_control, :service_quota_exceeded_exception, :throttling_exception, :trace, :validation_exception]
1575
1670
  end
1576
1671
 
1577
1672
  class RetrieveAndGenerateStreamResponseOutput < Enumerator[untyped, untyped]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-03 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core