aws-sdk-bedrockagentruntime 1.17.0 → 1.18.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: abaf68544e2dbfc17ee7113c041a308342648320ed87eb3159f0cb178f8e4771
4
- data.tar.gz: 0c080ff885d0d86175b51b5bcf5599497564241885e2693d68706e319c176b38
3
+ metadata.gz: 4de9ca3c5127253c57eb94d02e58989d86b335ba558936058c0cee2d27c1632c
4
+ data.tar.gz: 00d90ec2f0c4024ce81d85442d5a093755e9f01f92ad0ab69af2d1673603d91d
5
5
  SHA512:
6
- metadata.gz: 3b6aeefa2b03de9bc4e66b951bab384938eab5bb61ba636c18d7e0f74baf450c1dec25edf5c6019f74ab06cc9d74f101c78155368e98be0a93acb8737552436b
7
- data.tar.gz: a754f7b176330235954dd25d4cc12ae87fdbd244a5cc33a9c87557fc4953188bb85fbb08499029c6d804f86f0b5fca09fce4c5f903e2e18a9023245414b8b4f1
6
+ metadata.gz: a9b085b888c48e7c57ae1d9acd0420000c847dff4557ff53a0299d930c4a2b415d124543142d231fadd6e2c17e7871b86e7462329c1c1d61228549472482a181
7
+ data.tar.gz: fa22b45e9f41bd00fff6766f4541a8745df0e9ac668fd72b8b576820df97d794f2f12ca68bd948ee2e247795664df35e8cd9f589cde8b7c1aa7aeebc187d1cd0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2024-08-06)
5
+ ------------------
6
+
7
+ * Feature - Introduce model invocation output traces for orchestration traces, which contain the model's raw response and usage.
8
+
4
9
  1.17.0 (2024-07-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.18.0
@@ -1123,6 +1123,10 @@ module Aws::BedrockAgentRuntime
1123
1123
  # event.trace.orchestration_trace.model_invocation_input.text #=> String
1124
1124
  # event.trace.orchestration_trace.model_invocation_input.trace_id #=> String
1125
1125
  # event.trace.orchestration_trace.model_invocation_input.type #=> String, one of "PRE_PROCESSING", "ORCHESTRATION", "KNOWLEDGE_BASE_RESPONSE_GENERATION", "POST_PROCESSING"
1126
+ # event.trace.orchestration_trace.model_invocation_output.metadata.usage.input_tokens #=> Integer
1127
+ # event.trace.orchestration_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
1128
+ # event.trace.orchestration_trace.model_invocation_output.raw_response.content #=> String
1129
+ # event.trace.orchestration_trace.model_invocation_output.trace_id #=> String
1126
1130
  # event.trace.orchestration_trace.observation.action_group_invocation_output.text #=> String
1127
1131
  # event.trace.orchestration_trace.observation.code_interpreter_invocation_output.execution_error #=> String
1128
1132
  # event.trace.orchestration_trace.observation.code_interpreter_invocation_output.execution_output #=> String
@@ -1214,6 +1218,11 @@ module Aws::BedrockAgentRuntime
1214
1218
  # error is returned. For more information, see [Test a flow in Amazon
1215
1219
  # Bedrock][1] in the Amazon Bedrock User Guide.
1216
1220
  #
1221
+ # <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
1222
+ # including `InvokeFlow`.
1223
+ #
1224
+ # </note>
1225
+ #
1217
1226
  #
1218
1227
  #
1219
1228
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html
@@ -1854,7 +1863,7 @@ module Aws::BedrockAgentRuntime
1854
1863
  params: params,
1855
1864
  config: config)
1856
1865
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
1857
- context[:gem_version] = '1.17.0'
1866
+ context[:gem_version] = '1.18.0'
1858
1867
  Seahorse::Client::Request.new(handlers, context)
1859
1868
  end
1860
1869
 
@@ -165,6 +165,7 @@ module Aws::BedrockAgentRuntime
165
165
  MemoryId = Shapes::StringShape.new(name: 'MemoryId')
166
166
  MemorySessionSummary = Shapes::StructureShape.new(name: 'MemorySessionSummary')
167
167
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
168
+ Metadata = Shapes::StructureShape.new(name: 'Metadata')
168
169
  MimeType = Shapes::StringShape.new(name: 'MimeType')
169
170
  ModelInvocationInput = Shapes::StructureShape.new(name: 'ModelInvocationInput')
170
171
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -174,6 +175,7 @@ module Aws::BedrockAgentRuntime
174
175
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
175
176
  Observation = Shapes::StructureShape.new(name: 'Observation')
176
177
  OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
178
+ OrchestrationModelInvocationOutput = Shapes::StructureShape.new(name: 'OrchestrationModelInvocationOutput')
177
179
  OrchestrationTrace = Shapes::UnionShape.new(name: 'OrchestrationTrace')
178
180
  OutputFile = Shapes::StructureShape.new(name: 'OutputFile')
179
181
  OutputFiles = Shapes::ListShape.new(name: 'OutputFiles')
@@ -200,6 +202,7 @@ module Aws::BedrockAgentRuntime
200
202
  RAGStopSequencesMemberString = Shapes::StringShape.new(name: 'RAGStopSequencesMemberString')
201
203
  Rationale = Shapes::StructureShape.new(name: 'Rationale')
202
204
  RationaleString = Shapes::StringShape.new(name: 'RationaleString')
205
+ RawResponse = Shapes::StructureShape.new(name: 'RawResponse')
203
206
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
204
207
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
205
208
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -260,6 +263,7 @@ module Aws::BedrockAgentRuntime
260
263
  TraceKnowledgeBaseId = Shapes::StringShape.new(name: 'TraceKnowledgeBaseId')
261
264
  TracePart = Shapes::StructureShape.new(name: 'TracePart')
262
265
  Type = Shapes::StringShape.new(name: 'Type')
266
+ Usage = Shapes::StructureShape.new(name: 'Usage')
263
267
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
264
268
  Verb = Shapes::StringShape.new(name: 'Verb')
265
269
 
@@ -681,6 +685,9 @@ module Aws::BedrockAgentRuntime
681
685
  MemorySessionSummary.add_member(:summary_text, Shapes::ShapeRef.new(shape: SummaryText, location_name: "summaryText"))
682
686
  MemorySessionSummary.struct_class = Types::MemorySessionSummary
683
687
 
688
+ Metadata.add_member(:usage, Shapes::ShapeRef.new(shape: Usage, location_name: "usage"))
689
+ Metadata.struct_class = Types::Metadata
690
+
684
691
  ModelInvocationInput.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
685
692
  ModelInvocationInput.add_member(:override_lambda, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "overrideLambda"))
686
693
  ModelInvocationInput.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
@@ -702,13 +709,20 @@ module Aws::BedrockAgentRuntime
702
709
  OrchestrationConfiguration.add_member(:query_transformation_configuration, Shapes::ShapeRef.new(shape: QueryTransformationConfiguration, required: true, location_name: "queryTransformationConfiguration"))
703
710
  OrchestrationConfiguration.struct_class = Types::OrchestrationConfiguration
704
711
 
712
+ OrchestrationModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
713
+ OrchestrationModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
714
+ OrchestrationModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
715
+ OrchestrationModelInvocationOutput.struct_class = Types::OrchestrationModelInvocationOutput
716
+
705
717
  OrchestrationTrace.add_member(:invocation_input, Shapes::ShapeRef.new(shape: InvocationInput, location_name: "invocationInput"))
706
718
  OrchestrationTrace.add_member(:model_invocation_input, Shapes::ShapeRef.new(shape: ModelInvocationInput, location_name: "modelInvocationInput"))
719
+ OrchestrationTrace.add_member(:model_invocation_output, Shapes::ShapeRef.new(shape: OrchestrationModelInvocationOutput, location_name: "modelInvocationOutput"))
707
720
  OrchestrationTrace.add_member(:observation, Shapes::ShapeRef.new(shape: Observation, location_name: "observation"))
708
721
  OrchestrationTrace.add_member(:rationale, Shapes::ShapeRef.new(shape: Rationale, location_name: "rationale"))
709
722
  OrchestrationTrace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
710
723
  OrchestrationTrace.add_member_subclass(:invocation_input, Types::OrchestrationTrace::InvocationInput)
711
724
  OrchestrationTrace.add_member_subclass(:model_invocation_input, Types::OrchestrationTrace::ModelInvocationInput)
725
+ OrchestrationTrace.add_member_subclass(:model_invocation_output, Types::OrchestrationTrace::ModelInvocationOutput)
712
726
  OrchestrationTrace.add_member_subclass(:observation, Types::OrchestrationTrace::Observation)
713
727
  OrchestrationTrace.add_member_subclass(:rationale, Types::OrchestrationTrace::Rationale)
714
728
  OrchestrationTrace.add_member_subclass(:unknown, Types::OrchestrationTrace::Unknown)
@@ -783,6 +797,9 @@ module Aws::BedrockAgentRuntime
783
797
  Rationale.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
784
798
  Rationale.struct_class = Types::Rationale
785
799
 
800
+ RawResponse.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
801
+ RawResponse.struct_class = Types::RawResponse
802
+
786
803
  RepromptResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
787
804
  RepromptResponse.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
788
805
  RepromptResponse.struct_class = Types::RepromptResponse
@@ -981,6 +998,10 @@ module Aws::BedrockAgentRuntime
981
998
  TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
982
999
  TracePart.struct_class = Types::TracePart
983
1000
 
1001
+ Usage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "inputTokens"))
1002
+ Usage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "outputTokens"))
1003
+ Usage.struct_class = Types::Usage
1004
+
984
1005
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
985
1006
  ValidationException.struct_class = Types::ValidationException
986
1007
 
@@ -738,8 +738,8 @@ module Aws::BedrockAgentRuntime
738
738
  include Aws::Structure
739
739
  end
740
740
 
741
- # Contains information about an input into the flow and what to do with
742
- # it.
741
+ # Contains information about an input into the prompt flow and where to
742
+ # send it.
743
743
  #
744
744
  # This data type is used in the following API operations:
745
745
  #
@@ -752,15 +752,16 @@ module Aws::BedrockAgentRuntime
752
752
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax
753
753
  #
754
754
  # @!attribute [rw] content
755
- # Contains information about an input into the flow.
755
+ # Contains information about an input into the prompt flow.
756
756
  # @return [Types::FlowInputContent]
757
757
  #
758
758
  # @!attribute [rw] node_name
759
- # A name for the input of the flow input node.
759
+ # The name of the flow input node that begins the prompt flow.
760
760
  # @return [String]
761
761
  #
762
762
  # @!attribute [rw] node_output_name
763
- # A name for the output of the flow input node.
763
+ # The name of the output from the flow input node that begins the
764
+ # prompt flow.
764
765
  # @return [String]
765
766
  #
766
767
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowInput AWS API Documentation
@@ -788,7 +789,7 @@ module Aws::BedrockAgentRuntime
788
789
  # @note FlowInputContent is a union - when making an API calls you must set exactly one of the members.
789
790
  #
790
791
  # @!attribute [rw] document
791
- # The input for the flow input node.
792
+ # The input to send to the prompt flow input node.
792
793
  # @return [Hash,Array,String,Numeric,Boolean]
793
794
  #
794
795
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowInputContent AWS API Documentation
@@ -804,7 +805,8 @@ module Aws::BedrockAgentRuntime
804
805
  class Unknown < FlowInputContent; end
805
806
  end
806
807
 
807
- # Contains information about the output node.
808
+ # Contains information about the content in an output from prompt flow
809
+ # invocation.
808
810
  #
809
811
  # This data type is used in the following API operations:
810
812
  #
@@ -819,7 +821,7 @@ module Aws::BedrockAgentRuntime
819
821
  # @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
822
  #
821
823
  # @!attribute [rw] document
822
- # A name for the output of the flow.
824
+ # The content in the output.
823
825
  # @return [Hash,Array,String,Numeric,Boolean]
824
826
  #
825
827
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputContent AWS API Documentation
@@ -835,7 +837,7 @@ module Aws::BedrockAgentRuntime
835
837
  class Unknown < FlowOutputContent; end
836
838
  end
837
839
 
838
- # Contains information about an output from flow invoction.
840
+ # Contains information about an output from prompt flow invoction.
839
841
  #
840
842
  # This data type is used in the following API operations:
841
843
  #
@@ -848,15 +850,15 @@ module Aws::BedrockAgentRuntime
848
850
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax
849
851
  #
850
852
  # @!attribute [rw] content
851
- # The output of the node.
853
+ # The content in the output.
852
854
  # @return [Types::FlowOutputContent]
853
855
  #
854
856
  # @!attribute [rw] node_name
855
- # The name of the node to which input was provided.
857
+ # The name of the flow output node that the output is from.
856
858
  # @return [String]
857
859
  #
858
860
  # @!attribute [rw] node_type
859
- # The type of node to which input was provided.
861
+ # The type of the node that the output is from.
860
862
  # @return [String]
861
863
  #
862
864
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputEvent AWS API Documentation
@@ -1472,7 +1474,7 @@ module Aws::BedrockAgentRuntime
1472
1474
  # the following token at each point of generation. The value that you
1473
1475
  # set for `Top P` determines the number of most-likely candidates from
1474
1476
  # 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
1477
+ # if you set `topP` to 0.8, the model only selects the next token from
1476
1478
  # the top 80% of the probability distribution of next tokens.
1477
1479
  # @return [Float]
1478
1480
  #
@@ -2103,6 +2105,20 @@ module Aws::BedrockAgentRuntime
2103
2105
  include Aws::Structure
2104
2106
  end
2105
2107
 
2108
+ # Provides details of the foundation model.
2109
+ #
2110
+ # @!attribute [rw] usage
2111
+ # Contains details of the foundation model usage.
2112
+ # @return [Types::Usage]
2113
+ #
2114
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Metadata AWS API Documentation
2115
+ #
2116
+ class Metadata < Struct.new(
2117
+ :usage)
2118
+ SENSITIVE = [:usage]
2119
+ include Aws::Structure
2120
+ end
2121
+
2106
2122
  # The input for the pre-processing step.
2107
2123
  #
2108
2124
  # * The `type` matches the agent step.
@@ -2256,6 +2272,31 @@ module Aws::BedrockAgentRuntime
2256
2272
  include Aws::Structure
2257
2273
  end
2258
2274
 
2275
+ # The foundation model output from the orchestration step.
2276
+ #
2277
+ # @!attribute [rw] metadata
2278
+ # Contains information about the foundation model output.
2279
+ # @return [Types::Metadata]
2280
+ #
2281
+ # @!attribute [rw] raw_response
2282
+ # Contains details of the raw response from the foundation model
2283
+ # output.
2284
+ # @return [Types::RawResponse]
2285
+ #
2286
+ # @!attribute [rw] trace_id
2287
+ # The unique identifier of the trace.
2288
+ # @return [String]
2289
+ #
2290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/OrchestrationModelInvocationOutput AWS API Documentation
2291
+ #
2292
+ class OrchestrationModelInvocationOutput < Struct.new(
2293
+ :metadata,
2294
+ :raw_response,
2295
+ :trace_id)
2296
+ SENSITIVE = [:metadata, :raw_response]
2297
+ include Aws::Structure
2298
+ end
2299
+
2259
2300
  # Details about the orchestration step, in which the agent determines
2260
2301
  # the order in which actions are executed and which knowledge bases are
2261
2302
  # retrieved.
@@ -2283,6 +2324,11 @@ module Aws::BedrockAgentRuntime
2283
2324
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html
2284
2325
  # @return [Types::ModelInvocationInput]
2285
2326
  #
2327
+ # @!attribute [rw] model_invocation_output
2328
+ # Contains information pertaining to the output from the foundation
2329
+ # model that is being invoked.
2330
+ # @return [Types::OrchestrationModelInvocationOutput]
2331
+ #
2286
2332
  # @!attribute [rw] observation
2287
2333
  # Details about the observation (the output of the action group Lambda
2288
2334
  # or knowledge base) made by the agent.
@@ -2299,15 +2345,17 @@ module Aws::BedrockAgentRuntime
2299
2345
  class OrchestrationTrace < Struct.new(
2300
2346
  :invocation_input,
2301
2347
  :model_invocation_input,
2348
+ :model_invocation_output,
2302
2349
  :observation,
2303
2350
  :rationale,
2304
2351
  :unknown)
2305
- SENSITIVE = [:invocation_input, :model_invocation_input, :observation, :rationale]
2352
+ SENSITIVE = [:invocation_input, :model_invocation_input, :model_invocation_output, :observation, :rationale]
2306
2353
  include Aws::Structure
2307
2354
  include Aws::Structure::Union
2308
2355
 
2309
2356
  class InvocationInput < OrchestrationTrace; end
2310
2357
  class ModelInvocationInput < OrchestrationTrace; end
2358
+ class ModelInvocationOutput < OrchestrationTrace; end
2311
2359
  class Observation < OrchestrationTrace; end
2312
2360
  class Rationale < OrchestrationTrace; end
2313
2361
  class Unknown < OrchestrationTrace; end
@@ -2632,6 +2680,20 @@ module Aws::BedrockAgentRuntime
2632
2680
  include Aws::Structure
2633
2681
  end
2634
2682
 
2683
+ # Contains the raw output from the foundation model.
2684
+ #
2685
+ # @!attribute [rw] content
2686
+ # The foundation model's raw output content.
2687
+ # @return [String]
2688
+ #
2689
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RawResponse AWS API Documentation
2690
+ #
2691
+ class RawResponse < Struct.new(
2692
+ :content)
2693
+ SENSITIVE = []
2694
+ include Aws::Structure
2695
+ end
2696
+
2635
2697
  # Contains details about the agent's response to reprompt the input.
2636
2698
  #
2637
2699
  # @!attribute [rw] source
@@ -3715,6 +3777,27 @@ module Aws::BedrockAgentRuntime
3715
3777
  include Aws::Structure
3716
3778
  end
3717
3779
 
3780
+ # Contains information of the usage of the foundation model.
3781
+ #
3782
+ # @!attribute [rw] input_tokens
3783
+ # Contains information about the input tokens from the foundation
3784
+ # model usage.
3785
+ # @return [Integer]
3786
+ #
3787
+ # @!attribute [rw] output_tokens
3788
+ # Contains information about the output tokens from the foundation
3789
+ # model usage.
3790
+ # @return [Integer]
3791
+ #
3792
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Usage AWS API Documentation
3793
+ #
3794
+ class Usage < Struct.new(
3795
+ :input_tokens,
3796
+ :output_tokens)
3797
+ SENSITIVE = []
3798
+ include Aws::Structure
3799
+ end
3800
+
3718
3801
  # Input validation failed. Check your request parameters and retry the
3719
3802
  # request.
3720
3803
  #
@@ -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.18.0'
57
57
 
58
58
  end
data/sig/types.rbs CHANGED
@@ -534,6 +534,11 @@ module Aws::BedrockAgentRuntime
534
534
  SENSITIVE: []
535
535
  end
536
536
 
537
+ class Metadata
538
+ attr_accessor usage: Types::Usage
539
+ SENSITIVE: [:usage]
540
+ end
541
+
537
542
  class ModelInvocationInput
538
543
  attr_accessor inference_configuration: Types::InferenceConfiguration
539
544
  attr_accessor override_lambda: ::String
@@ -561,18 +566,28 @@ module Aws::BedrockAgentRuntime
561
566
  SENSITIVE: []
562
567
  end
563
568
 
569
+ class OrchestrationModelInvocationOutput
570
+ attr_accessor metadata: Types::Metadata
571
+ attr_accessor raw_response: Types::RawResponse
572
+ attr_accessor trace_id: ::String
573
+ SENSITIVE: [:metadata, :raw_response]
574
+ end
575
+
564
576
  class OrchestrationTrace
565
577
  attr_accessor invocation_input: Types::InvocationInput
566
578
  attr_accessor model_invocation_input: Types::ModelInvocationInput
579
+ attr_accessor model_invocation_output: Types::OrchestrationModelInvocationOutput
567
580
  attr_accessor observation: Types::Observation
568
581
  attr_accessor rationale: Types::Rationale
569
582
  attr_accessor unknown: untyped
570
- SENSITIVE: [:invocation_input, :model_invocation_input, :observation, :rationale]
583
+ SENSITIVE: [:invocation_input, :model_invocation_input, :model_invocation_output, :observation, :rationale]
571
584
 
572
585
  class InvocationInput < OrchestrationTrace
573
586
  end
574
587
  class ModelInvocationInput < OrchestrationTrace
575
588
  end
589
+ class ModelInvocationOutput < OrchestrationTrace
590
+ end
576
591
  class Observation < OrchestrationTrace
577
592
  end
578
593
  class Rationale < OrchestrationTrace
@@ -674,6 +689,11 @@ module Aws::BedrockAgentRuntime
674
689
  SENSITIVE: [:text]
675
690
  end
676
691
 
692
+ class RawResponse
693
+ attr_accessor content: ::String
694
+ SENSITIVE: []
695
+ end
696
+
677
697
  class RepromptResponse
678
698
  attr_accessor source: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "PARSER")
679
699
  attr_accessor text: ::String
@@ -929,6 +949,12 @@ module Aws::BedrockAgentRuntime
929
949
  SENSITIVE: [:trace]
930
950
  end
931
951
 
952
+ class Usage
953
+ attr_accessor input_tokens: ::Integer
954
+ attr_accessor output_tokens: ::Integer
955
+ SENSITIVE: []
956
+ end
957
+
932
958
  class ValidationException
933
959
  attr_accessor message: ::String
934
960
  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.18.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-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core