aws-sdk-bedrockagentruntime 1.17.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abaf68544e2dbfc17ee7113c041a308342648320ed87eb3159f0cb178f8e4771
4
- data.tar.gz: 0c080ff885d0d86175b51b5bcf5599497564241885e2693d68706e319c176b38
3
+ metadata.gz: '09041474ad6ee9da06c8b107e65871ce7ee5b037c3e647a478dfd015a8d23212'
4
+ data.tar.gz: e3ab4d23989fbd008be54112086b380b28ae24bfa503a341896c879164c34964
5
5
  SHA512:
6
- metadata.gz: 3b6aeefa2b03de9bc4e66b951bab384938eab5bb61ba636c18d7e0f74baf450c1dec25edf5c6019f74ab06cc9d74f101c78155368e98be0a93acb8737552436b
7
- data.tar.gz: a754f7b176330235954dd25d4cc12ae87fdbd244a5cc33a9c87557fc4953188bb85fbb08499029c6d804f86f0b5fca09fce4c5f903e2e18a9023245414b8b4f1
6
+ metadata.gz: 68b6f52e3c678ed4b415978329fa1ce401fe1d1b34263947c02052cc0e1940e9c03eb7629243a39f6e8835dcfdc30eb5d6afa3d6156a38603431750a10dced57
7
+ data.tar.gz: d79152b5c404e5ba569c7c9c9ea5de505dd25e98dc0f55c463d8340f39c2ebb2f2a584c4296c15a3e2f7ade35f5983ecf79f1ad6018adde1ca32b466c090640a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.18.0 (2024-08-06)
10
+ ------------------
11
+
12
+ * Feature - Introduce model invocation output traces for orchestration traces, which contain the model's raw response and usage.
13
+
4
14
  1.17.0 (2024-07-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.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
@@ -1123,6 +1127,10 @@ module Aws::BedrockAgentRuntime
1123
1127
  # event.trace.orchestration_trace.model_invocation_input.text #=> String
1124
1128
  # event.trace.orchestration_trace.model_invocation_input.trace_id #=> String
1125
1129
  # event.trace.orchestration_trace.model_invocation_input.type #=> String, one of "PRE_PROCESSING", "ORCHESTRATION", "KNOWLEDGE_BASE_RESPONSE_GENERATION", "POST_PROCESSING"
1130
+ # event.trace.orchestration_trace.model_invocation_output.metadata.usage.input_tokens #=> Integer
1131
+ # event.trace.orchestration_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
1132
+ # event.trace.orchestration_trace.model_invocation_output.raw_response.content #=> String
1133
+ # event.trace.orchestration_trace.model_invocation_output.trace_id #=> String
1126
1134
  # event.trace.orchestration_trace.observation.action_group_invocation_output.text #=> String
1127
1135
  # event.trace.orchestration_trace.observation.code_interpreter_invocation_output.execution_error #=> String
1128
1136
  # event.trace.orchestration_trace.observation.code_interpreter_invocation_output.execution_output #=> String
@@ -1214,6 +1222,11 @@ module Aws::BedrockAgentRuntime
1214
1222
  # error is returned. For more information, see [Test a flow in Amazon
1215
1223
  # Bedrock][1] in the Amazon Bedrock User Guide.
1216
1224
  #
1225
+ # <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
1226
+ # including `InvokeFlow`.
1227
+ #
1228
+ # </note>
1229
+ #
1217
1230
  #
1218
1231
  #
1219
1232
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html
@@ -1854,7 +1867,7 @@ module Aws::BedrockAgentRuntime
1854
1867
  params: params,
1855
1868
  config: config)
1856
1869
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
1857
- context[:gem_version] = '1.17.0'
1870
+ context[:gem_version] = '1.19.0'
1858
1871
  Seahorse::Client::Request.new(handlers, context)
1859
1872
  end
1860
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')
@@ -165,6 +167,7 @@ module Aws::BedrockAgentRuntime
165
167
  MemoryId = Shapes::StringShape.new(name: 'MemoryId')
166
168
  MemorySessionSummary = Shapes::StructureShape.new(name: 'MemorySessionSummary')
167
169
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
170
+ Metadata = Shapes::StructureShape.new(name: 'Metadata')
168
171
  MimeType = Shapes::StringShape.new(name: 'MimeType')
169
172
  ModelInvocationInput = Shapes::StructureShape.new(name: 'ModelInvocationInput')
170
173
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -174,6 +177,7 @@ module Aws::BedrockAgentRuntime
174
177
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
175
178
  Observation = Shapes::StructureShape.new(name: 'Observation')
176
179
  OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
180
+ OrchestrationModelInvocationOutput = Shapes::StructureShape.new(name: 'OrchestrationModelInvocationOutput')
177
181
  OrchestrationTrace = Shapes::UnionShape.new(name: 'OrchestrationTrace')
178
182
  OutputFile = Shapes::StructureShape.new(name: 'OutputFile')
179
183
  OutputFiles = Shapes::ListShape.new(name: 'OutputFiles')
@@ -200,6 +204,7 @@ module Aws::BedrockAgentRuntime
200
204
  RAGStopSequencesMemberString = Shapes::StringShape.new(name: 'RAGStopSequencesMemberString')
201
205
  Rationale = Shapes::StructureShape.new(name: 'Rationale')
202
206
  RationaleString = Shapes::StringShape.new(name: 'RationaleString')
207
+ RawResponse = Shapes::StructureShape.new(name: 'RawResponse')
203
208
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
204
209
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
205
210
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -260,6 +265,7 @@ module Aws::BedrockAgentRuntime
260
265
  TraceKnowledgeBaseId = Shapes::StringShape.new(name: 'TraceKnowledgeBaseId')
261
266
  TracePart = Shapes::StructureShape.new(name: 'TracePart')
262
267
  Type = Shapes::StringShape.new(name: 'Type')
268
+ Usage = Shapes::StructureShape.new(name: 'Usage')
263
269
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
264
270
  Verb = Shapes::StringShape.new(name: 'Verb')
265
271
 
@@ -286,6 +292,7 @@ module Aws::BedrockAgentRuntime
286
292
  ApiContentMap.value = Shapes::ShapeRef.new(shape: PropertyParameters)
287
293
 
288
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"))
289
296
  ApiInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
290
297
  ApiInvocationInput.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
291
298
  ApiInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ApiParameters, location_name: "parameters"))
@@ -304,6 +311,7 @@ module Aws::BedrockAgentRuntime
304
311
 
305
312
  ApiResult.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
306
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"))
307
315
  ApiResult.add_member(:http_method, Shapes::ShapeRef.new(shape: String, location_name: "httpMethod"))
308
316
  ApiResult.add_member(:http_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "httpStatusCode"))
309
317
  ApiResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
@@ -442,6 +450,7 @@ module Aws::BedrockAgentRuntime
442
450
  FlowResponseStream.struct_class = Types::FlowResponseStream
443
451
 
444
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"))
445
454
  FunctionInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
446
455
  FunctionInvocationInput.add_member(:parameters, Shapes::ShapeRef.new(shape: FunctionParameters, location_name: "parameters"))
447
456
  FunctionInvocationInput.struct_class = Types::FunctionInvocationInput
@@ -454,6 +463,7 @@ module Aws::BedrockAgentRuntime
454
463
  FunctionParameters.member = Shapes::ShapeRef.new(shape: FunctionParameter)
455
464
 
456
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"))
457
467
  FunctionResult.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
458
468
  FunctionResult.add_member(:response_body, Shapes::ShapeRef.new(shape: ResponseBody, location_name: "responseBody"))
459
469
  FunctionResult.add_member(:response_state, Shapes::ShapeRef.new(shape: ResponseState, location_name: "responseState"))
@@ -681,6 +691,9 @@ module Aws::BedrockAgentRuntime
681
691
  MemorySessionSummary.add_member(:summary_text, Shapes::ShapeRef.new(shape: SummaryText, location_name: "summaryText"))
682
692
  MemorySessionSummary.struct_class = Types::MemorySessionSummary
683
693
 
694
+ Metadata.add_member(:usage, Shapes::ShapeRef.new(shape: Usage, location_name: "usage"))
695
+ Metadata.struct_class = Types::Metadata
696
+
684
697
  ModelInvocationInput.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
685
698
  ModelInvocationInput.add_member(:override_lambda, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "overrideLambda"))
686
699
  ModelInvocationInput.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
@@ -702,13 +715,20 @@ module Aws::BedrockAgentRuntime
702
715
  OrchestrationConfiguration.add_member(:query_transformation_configuration, Shapes::ShapeRef.new(shape: QueryTransformationConfiguration, required: true, location_name: "queryTransformationConfiguration"))
703
716
  OrchestrationConfiguration.struct_class = Types::OrchestrationConfiguration
704
717
 
718
+ OrchestrationModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
719
+ OrchestrationModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
720
+ OrchestrationModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
721
+ OrchestrationModelInvocationOutput.struct_class = Types::OrchestrationModelInvocationOutput
722
+
705
723
  OrchestrationTrace.add_member(:invocation_input, Shapes::ShapeRef.new(shape: InvocationInput, location_name: "invocationInput"))
706
724
  OrchestrationTrace.add_member(:model_invocation_input, Shapes::ShapeRef.new(shape: ModelInvocationInput, location_name: "modelInvocationInput"))
725
+ OrchestrationTrace.add_member(:model_invocation_output, Shapes::ShapeRef.new(shape: OrchestrationModelInvocationOutput, location_name: "modelInvocationOutput"))
707
726
  OrchestrationTrace.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "observation"))
708
727
  OrchestrationTrace.add_member(:rationale, Shapes::ShapeRef.new(shape: Rationale, location_name: "rationale"))
709
728
  OrchestrationTrace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
710
729
  OrchestrationTrace.add_member_subclass(:invocation_input, Types::OrchestrationTrace::InvocationInput)
711
730
  OrchestrationTrace.add_member_subclass(:model_invocation_input, Types::OrchestrationTrace::ModelInvocationInput)
731
+ OrchestrationTrace.add_member_subclass(:model_invocation_output, Types::OrchestrationTrace::ModelInvocationOutput)
712
732
  OrchestrationTrace.add_member_subclass(:observation, Types::OrchestrationTrace::Observation)
713
733
  OrchestrationTrace.add_member_subclass(:rationale, Types::OrchestrationTrace::Rationale)
714
734
  OrchestrationTrace.add_member_subclass(:unknown, Types::OrchestrationTrace::Unknown)
@@ -783,6 +803,9 @@ module Aws::BedrockAgentRuntime
783
803
  Rationale.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
784
804
  Rationale.struct_class = Types::Rationale
785
805
 
806
+ RawResponse.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
807
+ RawResponse.struct_class = Types::RawResponse
808
+
786
809
  RepromptResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
787
810
  RepromptResponse.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
788
811
  RepromptResponse.struct_class = Types::RepromptResponse
@@ -981,6 +1004,10 @@ module Aws::BedrockAgentRuntime
981
1004
  TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
982
1005
  TracePart.struct_class = Types::TracePart
983
1006
 
1007
+ Usage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "inputTokens"))
1008
+ Usage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "outputTokens"))
1009
+ Usage.struct_class = Types::Usage
1010
+
984
1011
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
985
1012
  ValidationException.struct_class = Types::ValidationException
986
1013
 
@@ -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,
@@ -738,8 +749,8 @@ module Aws::BedrockAgentRuntime
738
749
  include Aws::Structure
739
750
  end
740
751
 
741
- # Contains information about an input into the flow and what to do with
742
- # it.
752
+ # Contains information about an input into the prompt flow and where to
753
+ # send it.
743
754
  #
744
755
  # This data type is used in the following API operations:
745
756
  #
@@ -752,15 +763,16 @@ module Aws::BedrockAgentRuntime
752
763
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax
753
764
  #
754
765
  # @!attribute [rw] content
755
- # Contains information about an input into the flow.
766
+ # Contains information about an input into the prompt flow.
756
767
  # @return [Types::FlowInputContent]
757
768
  #
758
769
  # @!attribute [rw] node_name
759
- # A name for the input of the flow input node.
770
+ # The name of the flow input node that begins the prompt flow.
760
771
  # @return [String]
761
772
  #
762
773
  # @!attribute [rw] node_output_name
763
- # A name for the output of the flow input node.
774
+ # The name of the output from the flow input node that begins the
775
+ # prompt flow.
764
776
  # @return [String]
765
777
  #
766
778
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowInput AWS API Documentation
@@ -788,7 +800,7 @@ module Aws::BedrockAgentRuntime
788
800
  # @note FlowInputContent is a union - when making an API calls you must set exactly one of the members.
789
801
  #
790
802
  # @!attribute [rw] document
791
- # The input for the flow input node.
803
+ # The input to send to the prompt flow input node.
792
804
  # @return [Hash,Array,String,Numeric,Boolean]
793
805
  #
794
806
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowInputContent AWS API Documentation
@@ -804,7 +816,8 @@ module Aws::BedrockAgentRuntime
804
816
  class Unknown < FlowInputContent; end
805
817
  end
806
818
 
807
- # Contains information about the output node.
819
+ # Contains information about the content in an output from prompt flow
820
+ # invocation.
808
821
  #
809
822
  # This data type is used in the following API operations:
810
823
  #
@@ -819,7 +832,7 @@ module Aws::BedrockAgentRuntime
819
832
  # @note FlowOutputContent is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of FlowOutputContent corresponding to the set member.
820
833
  #
821
834
  # @!attribute [rw] document
822
- # A name for the output of the flow.
835
+ # The content in the output.
823
836
  # @return [Hash,Array,String,Numeric,Boolean]
824
837
  #
825
838
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputContent AWS API Documentation
@@ -835,7 +848,7 @@ module Aws::BedrockAgentRuntime
835
848
  class Unknown < FlowOutputContent; end
836
849
  end
837
850
 
838
- # Contains information about an output from flow invoction.
851
+ # Contains information about an output from prompt flow invoction.
839
852
  #
840
853
  # This data type is used in the following API operations:
841
854
  #
@@ -848,15 +861,15 @@ module Aws::BedrockAgentRuntime
848
861
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax
849
862
  #
850
863
  # @!attribute [rw] content
851
- # The output of the node.
864
+ # The content in the output.
852
865
  # @return [Types::FlowOutputContent]
853
866
  #
854
867
  # @!attribute [rw] node_name
855
- # The name of the node to which input was provided.
868
+ # The name of the flow output node that the output is from.
856
869
  # @return [String]
857
870
  #
858
871
  # @!attribute [rw] node_type
859
- # The type of node to which input was provided.
872
+ # The type of the node that the output is from.
860
873
  # @return [String]
861
874
  #
862
875
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputEvent AWS API Documentation
@@ -887,6 +900,10 @@ module Aws::BedrockAgentRuntime
887
900
  # The action group that the function belongs to.
888
901
  # @return [String]
889
902
  #
903
+ # @!attribute [rw] action_invocation_type
904
+ # Contains information about the function to invoke,
905
+ # @return [String]
906
+ #
890
907
  # @!attribute [rw] function
891
908
  # The name of the function.
892
909
  # @return [String]
@@ -899,6 +916,7 @@ module Aws::BedrockAgentRuntime
899
916
  #
900
917
  class FunctionInvocationInput < Struct.new(
901
918
  :action_group,
919
+ :action_invocation_type,
902
920
  :function,
903
921
  :parameters)
904
922
  SENSITIVE = []
@@ -957,6 +975,11 @@ module Aws::BedrockAgentRuntime
957
975
  # The action group that the function belongs to.
958
976
  # @return [String]
959
977
  #
978
+ # @!attribute [rw] confirmation_state
979
+ # Contains the user confirmation information about the function that
980
+ # was called.
981
+ # @return [String]
982
+ #
960
983
  # @!attribute [rw] function
961
984
  # The name of the function that was called.
962
985
  # @return [String]
@@ -980,6 +1003,7 @@ module Aws::BedrockAgentRuntime
980
1003
  #
981
1004
  class FunctionResult < Struct.new(
982
1005
  :action_group,
1006
+ :confirmation_state,
983
1007
  :function,
984
1008
  :response_body,
985
1009
  :response_state)
@@ -1472,7 +1496,7 @@ module Aws::BedrockAgentRuntime
1472
1496
  # the following token at each point of generation. The value that you
1473
1497
  # set for `Top P` determines the number of most-likely candidates from
1474
1498
  # which the model chooses the next token in the sequence. For example,
1475
- # if you set `topP` to 80, the model only selects the next token from
1499
+ # if you set `topP` to 0.8, the model only selects the next token from
1476
1500
  # the top 80% of the probability distribution of next tokens.
1477
1501
  # @return [Float]
1478
1502
  #
@@ -2103,6 +2127,20 @@ module Aws::BedrockAgentRuntime
2103
2127
  include Aws::Structure
2104
2128
  end
2105
2129
 
2130
+ # Provides details of the foundation model.
2131
+ #
2132
+ # @!attribute [rw] usage
2133
+ # Contains details of the foundation model usage.
2134
+ # @return [Types::Usage]
2135
+ #
2136
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Metadata AWS API Documentation
2137
+ #
2138
+ class Metadata < Struct.new(
2139
+ :usage)
2140
+ SENSITIVE = [:usage]
2141
+ include Aws::Structure
2142
+ end
2143
+
2106
2144
  # The input for the pre-processing step.
2107
2145
  #
2108
2146
  # * The `type` matches the agent step.
@@ -2256,6 +2294,31 @@ module Aws::BedrockAgentRuntime
2256
2294
  include Aws::Structure
2257
2295
  end
2258
2296
 
2297
+ # The foundation model output from the orchestration step.
2298
+ #
2299
+ # @!attribute [rw] metadata
2300
+ # Contains information about the foundation model output.
2301
+ # @return [Types::Metadata]
2302
+ #
2303
+ # @!attribute [rw] raw_response
2304
+ # Contains details of the raw response from the foundation model
2305
+ # output.
2306
+ # @return [Types::RawResponse]
2307
+ #
2308
+ # @!attribute [rw] trace_id
2309
+ # The unique identifier of the trace.
2310
+ # @return [String]
2311
+ #
2312
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/OrchestrationModelInvocationOutput AWS API Documentation
2313
+ #
2314
+ class OrchestrationModelInvocationOutput < Struct.new(
2315
+ :metadata,
2316
+ :raw_response,
2317
+ :trace_id)
2318
+ SENSITIVE = [:metadata, :raw_response]
2319
+ include Aws::Structure
2320
+ end
2321
+
2259
2322
  # Details about the orchestration step, in which the agent determines
2260
2323
  # the order in which actions are executed and which knowledge bases are
2261
2324
  # retrieved.
@@ -2283,6 +2346,11 @@ module Aws::BedrockAgentRuntime
2283
2346
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html
2284
2347
  # @return [Types::ModelInvocationInput]
2285
2348
  #
2349
+ # @!attribute [rw] model_invocation_output
2350
+ # Contains information pertaining to the output from the foundation
2351
+ # model that is being invoked.
2352
+ # @return [Types::OrchestrationModelInvocationOutput]
2353
+ #
2286
2354
  # @!attribute [rw] observation
2287
2355
  # Details about the observation (the output of the action group Lambda
2288
2356
  # or knowledge base) made by the agent.
@@ -2299,15 +2367,17 @@ module Aws::BedrockAgentRuntime
2299
2367
  class OrchestrationTrace < Struct.new(
2300
2368
  :invocation_input,
2301
2369
  :model_invocation_input,
2370
+ :model_invocation_output,
2302
2371
  :observation,
2303
2372
  :rationale,
2304
2373
  :unknown)
2305
- SENSITIVE = [:invocation_input, :model_invocation_input, :observation, :rationale]
2374
+ SENSITIVE = [:invocation_input, :model_invocation_input, :model_invocation_output, :observation, :rationale]
2306
2375
  include Aws::Structure
2307
2376
  include Aws::Structure::Union
2308
2377
 
2309
2378
  class InvocationInput < OrchestrationTrace; end
2310
2379
  class ModelInvocationInput < OrchestrationTrace; end
2380
+ class ModelInvocationOutput < OrchestrationTrace; end
2311
2381
  class Observation < OrchestrationTrace; end
2312
2382
  class Rationale < OrchestrationTrace; end
2313
2383
  class Unknown < OrchestrationTrace; end
@@ -2632,6 +2702,20 @@ module Aws::BedrockAgentRuntime
2632
2702
  include Aws::Structure
2633
2703
  end
2634
2704
 
2705
+ # Contains the raw output from the foundation model.
2706
+ #
2707
+ # @!attribute [rw] content
2708
+ # The foundation model's raw output content.
2709
+ # @return [String]
2710
+ #
2711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RawResponse AWS API Documentation
2712
+ #
2713
+ class RawResponse < Struct.new(
2714
+ :content)
2715
+ SENSITIVE = []
2716
+ include Aws::Structure
2717
+ end
2718
+
2635
2719
  # Contains details about the agent's response to reprompt the input.
2636
2720
  #
2637
2721
  # @!attribute [rw] source
@@ -3715,6 +3799,27 @@ module Aws::BedrockAgentRuntime
3715
3799
  include Aws::Structure
3716
3800
  end
3717
3801
 
3802
+ # Contains information of the usage of the foundation model.
3803
+ #
3804
+ # @!attribute [rw] input_tokens
3805
+ # Contains information about the input tokens from the foundation
3806
+ # model usage.
3807
+ # @return [Integer]
3808
+ #
3809
+ # @!attribute [rw] output_tokens
3810
+ # Contains information about the output tokens from the foundation
3811
+ # model usage.
3812
+ # @return [Integer]
3813
+ #
3814
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Usage AWS API Documentation
3815
+ #
3816
+ class Usage < Struct.new(
3817
+ :input_tokens,
3818
+ :output_tokens)
3819
+ SENSITIVE = []
3820
+ include Aws::Structure
3821
+ end
3822
+
3718
3823
  # Input validation failed. Check your request parameters and retry the
3719
3824
  # request.
3720
3825
  #
@@ -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.17.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")
@@ -534,6 +538,11 @@ module Aws::BedrockAgentRuntime
534
538
  SENSITIVE: []
535
539
  end
536
540
 
541
+ class Metadata
542
+ attr_accessor usage: Types::Usage
543
+ SENSITIVE: [:usage]
544
+ end
545
+
537
546
  class ModelInvocationInput
538
547
  attr_accessor inference_configuration: Types::InferenceConfiguration
539
548
  attr_accessor override_lambda: ::String
@@ -561,18 +570,28 @@ module Aws::BedrockAgentRuntime
561
570
  SENSITIVE: []
562
571
  end
563
572
 
573
+ class OrchestrationModelInvocationOutput
574
+ attr_accessor metadata: Types::Metadata
575
+ attr_accessor raw_response: Types::RawResponse
576
+ attr_accessor trace_id: ::String
577
+ SENSITIVE: [:metadata, :raw_response]
578
+ end
579
+
564
580
  class OrchestrationTrace
565
581
  attr_accessor invocation_input: Types::InvocationInput
566
582
  attr_accessor model_invocation_input: Types::ModelInvocationInput
583
+ attr_accessor model_invocation_output: Types::OrchestrationModelInvocationOutput
567
584
  attr_accessor observation: Types::Observation
568
585
  attr_accessor rationale: Types::Rationale
569
586
  attr_accessor unknown: untyped
570
- SENSITIVE: [:invocation_input, :model_invocation_input, :observation, :rationale]
587
+ SENSITIVE: [:invocation_input, :model_invocation_input, :model_invocation_output, :observation, :rationale]
571
588
 
572
589
  class InvocationInput < OrchestrationTrace
573
590
  end
574
591
  class ModelInvocationInput < OrchestrationTrace
575
592
  end
593
+ class ModelInvocationOutput < OrchestrationTrace
594
+ end
576
595
  class Observation < OrchestrationTrace
577
596
  end
578
597
  class Rationale < OrchestrationTrace
@@ -674,6 +693,11 @@ module Aws::BedrockAgentRuntime
674
693
  SENSITIVE: [:text]
675
694
  end
676
695
 
696
+ class RawResponse
697
+ attr_accessor content: ::String
698
+ SENSITIVE: []
699
+ end
700
+
677
701
  class RepromptResponse
678
702
  attr_accessor source: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "PARSER")
679
703
  attr_accessor text: ::String
@@ -929,6 +953,12 @@ module Aws::BedrockAgentRuntime
929
953
  SENSITIVE: [:trace]
930
954
  end
931
955
 
956
+ class Usage
957
+ attr_accessor input_tokens: ::Integer
958
+ attr_accessor output_tokens: ::Integer
959
+ SENSITIVE: []
960
+ end
961
+
932
962
  class ValidationException
933
963
  attr_accessor message: ::String
934
964
  attr_accessor event_type: 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.17.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-07-18 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