aws-sdk-bedrockagentruntime 1.18.0 → 1.19.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: '09041474ad6ee9da06c8b107e65871ce7ee5b037c3e647a478dfd015a8d23212'
4
+ data.tar.gz: e3ab4d23989fbd008be54112086b380b28ae24bfa503a341896c879164c34964
5
5
  SHA512:
6
- metadata.gz: a9b085b888c48e7c57ae1d9acd0420000c847dff4557ff53a0299d930c4a2b415d124543142d231fadd6e2c17e7871b86e7462329c1c1d61228549472482a181
7
- data.tar.gz: fa22b45e9f41bd00fff6766f4541a8745df0e9ac668fd72b8b576820df97d794f2f12ca68bd948ee2e247795664df35e8cd9f589cde8b7c1aa7aeebc187d1cd0
6
+ metadata.gz: 68b6f52e3c678ed4b415978329fa1ce401fe1d1b34263947c02052cc0e1940e9c03eb7629243a39f6e8835dcfdc30eb5d6afa3d6156a38603431750a10dced57
7
+ data.tar.gz: d79152b5c404e5ba569c7c9c9ea5de505dd25e98dc0f55c463d8340f39c2ebb2f2a584c4296c15a3e2f7ade35f5983ecf79f1ad6018adde1ca32b466c090640a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2024-08-23)
5
+ ------------------
6
+
7
+ * Feature - Releasing the support for Action User Confirmation.
8
+
4
9
  1.18.0 (2024-08-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.19.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.19.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"))
@@ -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,
@@ -889,6 +900,10 @@ module Aws::BedrockAgentRuntime
889
900
  # The action group that the function belongs to.
890
901
  # @return [String]
891
902
  #
903
+ # @!attribute [rw] action_invocation_type
904
+ # Contains information about the function to invoke,
905
+ # @return [String]
906
+ #
892
907
  # @!attribute [rw] function
893
908
  # The name of the function.
894
909
  # @return [String]
@@ -901,6 +916,7 @@ module Aws::BedrockAgentRuntime
901
916
  #
902
917
  class FunctionInvocationInput < Struct.new(
903
918
  :action_group,
919
+ :action_invocation_type,
904
920
  :function,
905
921
  :parameters)
906
922
  SENSITIVE = []
@@ -959,6 +975,11 @@ module Aws::BedrockAgentRuntime
959
975
  # The action group that the function belongs to.
960
976
  # @return [String]
961
977
  #
978
+ # @!attribute [rw] confirmation_state
979
+ # Contains the user confirmation information about the function that
980
+ # was called.
981
+ # @return [String]
982
+ #
962
983
  # @!attribute [rw] function
963
984
  # The name of the function that was called.
964
985
  # @return [String]
@@ -982,6 +1003,7 @@ module Aws::BedrockAgentRuntime
982
1003
  #
983
1004
  class FunctionResult < Struct.new(
984
1005
  :action_group,
1006
+ :confirmation_state,
985
1007
  :function,
986
1008
  :response_body,
987
1009
  :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.19.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.19.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-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core