aws-sdk-bedrockagentruntime 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4de9ca3c5127253c57eb94d02e58989d86b335ba558936058c0cee2d27c1632c
4
- data.tar.gz: 00d90ec2f0c4024ce81d85442d5a093755e9f01f92ad0ab69af2d1673603d91d
3
+ metadata.gz: 673715a8c69a0960b4a3d0fdf44ac35c7b94ed5b1545d845bb1ff943998df537
4
+ data.tar.gz: '08c19e648d9f6aa052d281087336b6f7dc60b837682a36547ad577baba75cea7'
5
5
  SHA512:
6
- metadata.gz: a9b085b888c48e7c57ae1d9acd0420000c847dff4557ff53a0299d930c4a2b415d124543142d231fadd6e2c17e7871b86e7462329c1c1d61228549472482a181
7
- data.tar.gz: fa22b45e9f41bd00fff6766f4541a8745df0e9ac668fd72b8b576820df97d794f2f12ca68bd948ee2e247795664df35e8cd9f589cde8b7c1aa7aeebc187d1cd0
6
+ metadata.gz: e5fbf2147b1be99512f291b27a75a6a27647d710525a12e095d3c080c3fbde72b5d12330da2e8e1421ea985ecb188f5a966bd4b6b452e9a7728f3da7d894a707
7
+ data.tar.gz: 238dc99ec55f41e1ca543990d355d368880de198dfb061fcb7d82228a053f4451b99a6727ba1e0b3f11edadb9c7491abecb721692ebad9566f2c42bec2f336b9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2024-08-29)
5
+ ------------------
6
+
7
+ * Feature - Lifting the maximum length on Bedrock KnowledgeBase RetrievalFilter array
8
+
9
+ 1.19.0 (2024-08-23)
10
+ ------------------
11
+
12
+ * Feature - Releasing the support for Action User Confirmation.
13
+
4
14
  1.18.0 (2024-08-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.20.0
@@ -927,6 +927,7 @@ module Aws::BedrockAgentRuntime
927
927
  # api_result: {
928
928
  # action_group: "String", # required
929
929
  # api_path: "ApiPath",
930
+ # confirmation_state: "CONFIRM", # accepts CONFIRM, DENY
930
931
  # http_method: "String",
931
932
  # http_status_code: 1,
932
933
  # response_body: {
@@ -938,6 +939,7 @@ module Aws::BedrockAgentRuntime
938
939
  # },
939
940
  # function_result: {
940
941
  # action_group: "String", # required
942
+ # confirmation_state: "CONFIRM", # accepts CONFIRM, DENY
941
943
  # function: "String",
942
944
  # response_body: {
943
945
  # "String" => {
@@ -1006,6 +1008,7 @@ module Aws::BedrockAgentRuntime
1006
1008
  # event.invocation_id #=> String
1007
1009
  # event.invocation_inputs #=> Array
1008
1010
  # event.invocation_inputs[0].api_invocation_input.action_group #=> String
1011
+ # event.invocation_inputs[0].api_invocation_input.action_invocation_type #=> String, one of "RESULT", "USER_CONFIRMATION", "USER_CONFIRMATION_AND_RESULT"
1009
1012
  # event.invocation_inputs[0].api_invocation_input.api_path #=> String
1010
1013
  # event.invocation_inputs[0].api_invocation_input.http_method #=> String
1011
1014
  # event.invocation_inputs[0].api_invocation_input.parameters #=> Array
@@ -1018,6 +1021,7 @@ module Aws::BedrockAgentRuntime
1018
1021
  # event.invocation_inputs[0].api_invocation_input.request_body.content["String"].properties[0].type #=> String
1019
1022
  # event.invocation_inputs[0].api_invocation_input.request_body.content["String"].properties[0].value #=> String
1020
1023
  # event.invocation_inputs[0].function_invocation_input.action_group #=> String
1024
+ # event.invocation_inputs[0].function_invocation_input.action_invocation_type #=> String, one of "RESULT", "USER_CONFIRMATION", "USER_CONFIRMATION_AND_RESULT"
1021
1025
  # event.invocation_inputs[0].function_invocation_input.function #=> String
1022
1026
  # event.invocation_inputs[0].function_invocation_input.parameters #=> Array
1023
1027
  # event.invocation_inputs[0].function_invocation_input.parameters[0].name #=> String
@@ -1863,7 +1867,7 @@ module Aws::BedrockAgentRuntime
1863
1867
  params: params,
1864
1868
  config: config)
1865
1869
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
1866
- context[:gem_version] = '1.18.0'
1870
+ context[:gem_version] = '1.20.0'
1867
1871
  Seahorse::Client::Request.new(handlers, context)
1868
1872
  end
1869
1873
 
@@ -18,6 +18,7 @@ module Aws::BedrockAgentRuntime
18
18
  ActionGroupInvocationOutput = Shapes::StructureShape.new(name: 'ActionGroupInvocationOutput')
19
19
  ActionGroupName = Shapes::StringShape.new(name: 'ActionGroupName')
20
20
  ActionGroupOutputString = Shapes::StringShape.new(name: 'ActionGroupOutputString')
21
+ ActionInvocationType = Shapes::StringShape.new(name: 'ActionInvocationType')
21
22
  AdditionalModelRequestFields = Shapes::MapShape.new(name: 'AdditionalModelRequestFields')
22
23
  AdditionalModelRequestFieldsKey = Shapes::StringShape.new(name: 'AdditionalModelRequestFieldsKey')
23
24
  AdditionalModelRequestFieldsValue = Shapes::DocumentShape.new(name: 'AdditionalModelRequestFieldsValue', document: true)
@@ -42,6 +43,7 @@ module Aws::BedrockAgentRuntime
42
43
  Citations = Shapes::ListShape.new(name: 'Citations')
43
44
  CodeInterpreterInvocationInput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationInput')
44
45
  CodeInterpreterInvocationOutput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationOutput')
46
+ ConfirmationState = Shapes::StringShape.new(name: 'ConfirmationState')
45
47
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
46
48
  ContentBody = Shapes::StructureShape.new(name: 'ContentBody')
47
49
  ContentMap = Shapes::MapShape.new(name: 'ContentMap')
@@ -290,6 +292,7 @@ module Aws::BedrockAgentRuntime
290
292
  ApiContentMap.value = Shapes::ShapeRef.new(shape: PropertyParameters)
291
293
 
292
294
  ApiInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
295
+ ApiInvocationInput.add_member(:action_invocation_type, Shapes::ShapeRef.new(shape: ActionInvocationType, location_name: "actionInvocationType"))
293
296
  ApiInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
294
297
  ApiInvocationInput.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
295
298
  ApiInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ApiParameters, location_name: "parameters"))
@@ -308,6 +311,7 @@ module Aws::BedrockAgentRuntime
308
311
 
309
312
  ApiResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
310
313
  ApiResult.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
314
+ ApiResult.add_member(:confirmation_state, Shapes::ShapeRef.new(shape: ConfirmationState, location_name: "confirmationState"))
311
315
  ApiResult.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
312
316
  ApiResult.add_member(:http_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "httpStatusCode"))
313
317
  ApiResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
@@ -446,6 +450,7 @@ module Aws::BedrockAgentRuntime
446
450
  FlowResponseStream.struct_class = Types::FlowResponseStream
447
451
 
448
452
  FunctionInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
453
+ FunctionInvocationInput.add_member(:action_invocation_type, Shapes::ShapeRef.new(shape: ActionInvocationType, location_name: "actionInvocationType"))
449
454
  FunctionInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
450
455
  FunctionInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: FunctionParameters, location_name: "parameters"))
451
456
  FunctionInvocationInput.struct_class = Types::FunctionInvocationInput
@@ -458,6 +463,7 @@ module Aws::BedrockAgentRuntime
458
463
  FunctionParameters.member = Shapes::ShapeRef.new(shape: FunctionParameter)
459
464
 
460
465
  FunctionResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
466
+ FunctionResult.add_member(:confirmation_state, Shapes::ShapeRef.new(shape: ConfirmationState, location_name: "confirmationState"))
461
467
  FunctionResult.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
462
468
  FunctionResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
463
469
  FunctionResult.add_member(:response_state, Shapes::ShapeRef.new(shape: ResponseState, location_name: "responseState"))
@@ -1013,9 +1019,11 @@ module Aws::BedrockAgentRuntime
1013
1019
 
1014
1020
  api.metadata = {
1015
1021
  "apiVersion" => "2023-07-26",
1022
+ "auth" => ["aws.auth#sigv4"],
1016
1023
  "endpointPrefix" => "bedrock-agent-runtime",
1017
1024
  "jsonVersion" => "1.1",
1018
1025
  "protocol" => "rest-json",
1026
+ "protocols" => ["rest-json"],
1019
1027
  "serviceFullName" => "Agents for Amazon Bedrock Runtime",
1020
1028
  "serviceId" => "Bedrock Agent Runtime",
1021
1029
  "signatureVersion" => "v4",
@@ -119,6 +119,10 @@ module Aws::BedrockAgentRuntime
119
119
  # The action group that the API operation belongs to.
120
120
  # @return [String]
121
121
  #
122
+ # @!attribute [rw] action_invocation_type
123
+ # Contains information about the API operation to invoke.
124
+ # @return [String]
125
+ #
122
126
  # @!attribute [rw] api_path
123
127
  # The path to the API operation.
124
128
  # @return [String]
@@ -141,6 +145,7 @@ module Aws::BedrockAgentRuntime
141
145
  #
142
146
  class ApiInvocationInput < Struct.new(
143
147
  :action_group,
148
+ :action_invocation_type,
144
149
  :api_path,
145
150
  :http_method,
146
151
  :parameters,
@@ -231,6 +236,11 @@ module Aws::BedrockAgentRuntime
231
236
  # The path to the API operation.
232
237
  # @return [String]
233
238
  #
239
+ # @!attribute [rw] confirmation_state
240
+ # Controls the API operations or functions to invoke based on the user
241
+ # confirmation.
242
+ # @return [String]
243
+ #
234
244
  # @!attribute [rw] http_method
235
245
  # The HTTP method for the API operation.
236
246
  # @return [String]
@@ -259,6 +269,7 @@ module Aws::BedrockAgentRuntime
259
269
  class ApiResult < Struct.new(
260
270
  :action_group,
261
271
  :api_path,
272
+ :confirmation_state,
262
273
  :http_method,
263
274
  :http_status_code,
264
275
  :response_body,
@@ -332,9 +343,8 @@ module Aws::BedrockAgentRuntime
332
343
  # attributes.
333
344
  #
334
345
  # @!attribute [rw] data
335
- # The byte value of the file to attach, encoded as Base-64 string. The
336
- # maximum size of all files that is attached is 10MB. You can attach a
337
- # maximum of 5 files.
346
+ # The raw bytes of the file to attach. The maximum size of all files
347
+ # that is attached is 10MB. You can attach a maximum of 5 files.
338
348
  # @return [String]
339
349
  #
340
350
  # @!attribute [rw] media_type
@@ -889,6 +899,10 @@ module Aws::BedrockAgentRuntime
889
899
  # The action group that the function belongs to.
890
900
  # @return [String]
891
901
  #
902
+ # @!attribute [rw] action_invocation_type
903
+ # Contains information about the function to invoke,
904
+ # @return [String]
905
+ #
892
906
  # @!attribute [rw] function
893
907
  # The name of the function.
894
908
  # @return [String]
@@ -901,6 +915,7 @@ module Aws::BedrockAgentRuntime
901
915
  #
902
916
  class FunctionInvocationInput < Struct.new(
903
917
  :action_group,
918
+ :action_invocation_type,
904
919
  :function,
905
920
  :parameters)
906
921
  SENSITIVE = []
@@ -959,6 +974,11 @@ module Aws::BedrockAgentRuntime
959
974
  # The action group that the function belongs to.
960
975
  # @return [String]
961
976
  #
977
+ # @!attribute [rw] confirmation_state
978
+ # Contains the user confirmation information about the function that
979
+ # was called.
980
+ # @return [String]
981
+ #
962
982
  # @!attribute [rw] function
963
983
  # The name of the function that was called.
964
984
  # @return [String]
@@ -982,6 +1002,7 @@ module Aws::BedrockAgentRuntime
982
1002
  #
983
1003
  class FunctionResult < Struct.new(
984
1004
  :action_group,
1005
+ :confirmation_state,
985
1006
  :function,
986
1007
  :response_body,
987
1008
  :response_state)
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-bedrockagentruntime/event_streams'
53
53
  # @!group service
54
54
  module Aws::BedrockAgentRuntime
55
55
 
56
- GEM_VERSION = '1.18.0'
56
+ GEM_VERSION = '1.20.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -217,6 +217,7 @@ module Aws
217
217
  api_result: {
218
218
  action_group: ::String,
219
219
  api_path: ::String?,
220
+ confirmation_state: ("CONFIRM" | "DENY")?,
220
221
  http_method: ::String?,
221
222
  http_status_code: ::Integer?,
222
223
  response_body: Hash[::String, {
@@ -226,6 +227,7 @@ module Aws
226
227
  }?,
227
228
  function_result: {
228
229
  action_group: ::String,
230
+ confirmation_state: ("CONFIRM" | "DENY")?,
229
231
  function: ::String?,
230
232
  response_body: Hash[::String, {
231
233
  body: ::String?
data/sig/types.rbs CHANGED
@@ -33,6 +33,7 @@ module Aws::BedrockAgentRuntime
33
33
 
34
34
  class ApiInvocationInput
35
35
  attr_accessor action_group: ::String
36
+ attr_accessor action_invocation_type: ("RESULT" | "USER_CONFIRMATION" | "USER_CONFIRMATION_AND_RESULT")
36
37
  attr_accessor api_path: ::String
37
38
  attr_accessor http_method: ::String
38
39
  attr_accessor parameters: ::Array[Types::ApiParameter]
@@ -55,6 +56,7 @@ module Aws::BedrockAgentRuntime
55
56
  class ApiResult
56
57
  attr_accessor action_group: ::String
57
58
  attr_accessor api_path: ::String
59
+ attr_accessor confirmation_state: ("CONFIRM" | "DENY")
58
60
  attr_accessor http_method: ::String
59
61
  attr_accessor http_status_code: ::Integer
60
62
  attr_accessor response_body: ::Hash[::String, Types::ContentBody]
@@ -232,6 +234,7 @@ module Aws::BedrockAgentRuntime
232
234
 
233
235
  class FunctionInvocationInput
234
236
  attr_accessor action_group: ::String
237
+ attr_accessor action_invocation_type: ("RESULT" | "USER_CONFIRMATION" | "USER_CONFIRMATION_AND_RESULT")
235
238
  attr_accessor function: ::String
236
239
  attr_accessor parameters: ::Array[Types::FunctionParameter]
237
240
  SENSITIVE: []
@@ -246,6 +249,7 @@ module Aws::BedrockAgentRuntime
246
249
 
247
250
  class FunctionResult
248
251
  attr_accessor action_group: ::String
252
+ attr_accessor confirmation_state: ("CONFIRM" | "DENY")
249
253
  attr_accessor function: ::String
250
254
  attr_accessor response_body: ::Hash[::String, Types::ContentBody]
251
255
  attr_accessor response_state: ("FAILURE" | "REPROMPT")
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.18.0
4
+ version: 1.20.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-08-06 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: '1.5'
47
47
  description: Official AWS Ruby gem for Agents for Amazon Bedrock Runtime. This gem
48
48
  is part of the AWS SDK for Ruby.
49
49
  email: