aws-sdk-bedrockagentruntime 1.44.0 → 1.46.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: 16c36396758dc6f6ea3283366236852eded24e4f3cd9306c996a2841a48f06e2
4
- data.tar.gz: f2a25128523d2222c20399a9d204c3bf044191e71a2342df4a09b4adf2706384
3
+ metadata.gz: 7309a6cb65f51189c463b546894a4b4aba74ca67472c0f1d23ac1e48c612a293
4
+ data.tar.gz: 4a15ab47dab77c4f78e7274b05ad4b632a28593c680b9b7ed3f8e4774fc93595
5
5
  SHA512:
6
- metadata.gz: 8bac7eaae021af8b26e99b3dae62f2a58dd23a65cfb908602d371cfa3bfe9777e8ee2360ec0074332102306a8019297e61f9087af8fbd0e4f404982206983f4a
7
- data.tar.gz: f937d922f34f764c8e06d251ee13c1a1993a487551d7ecedc22800020519651d5a48daeb649bcf7a75b528a9e536e0ba5e3e139e4da8ecaa6e55b217446b398e
6
+ metadata.gz: 2a1141ad5c617503f327676cf849b7865ec08b6073fe50ad4472cb1abfec9cdc291cf41c6d51459fcd930887f3b65b858bb8f76e4bd7eb7f0d3586eca045d485
7
+ data.tar.gz: cf9439b5860771c2584b213763337909be45955e8669aee4b76a0a3d0b28db4cdeb054e3226c32d734896aae26d5e84843aa57ee7b6b0e9a44ad36c989eddc09
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2025-02-24)
5
+ ------------------
6
+
7
+ * Feature - Adding support for ReasoningContent fields in Pre-Processing, Post-Processing and Orchestration Trace outputs.
8
+
9
+ 1.45.0 (2025-02-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.44.0 (2025-02-12)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.46.0
@@ -7,35 +7,35 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
- require 'seahorse/client/plugins/content_length.rb'
11
- require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
- require 'aws-sdk-core/plugins/logging.rb'
13
- require 'aws-sdk-core/plugins/param_converter.rb'
14
- require 'aws-sdk-core/plugins/param_validator.rb'
15
- require 'aws-sdk-core/plugins/user_agent.rb'
16
- require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
- require 'aws-sdk-core/plugins/retry_errors.rb'
18
- require 'aws-sdk-core/plugins/global_configuration.rb'
19
- require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
- require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
- require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
- require 'aws-sdk-core/plugins/response_paging.rb'
23
- require 'aws-sdk-core/plugins/stub_responses.rb'
24
- require 'aws-sdk-core/plugins/idempotency_token.rb'
25
- require 'aws-sdk-core/plugins/invocation_id.rb'
26
- require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
27
- require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
28
- require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
29
- require 'aws-sdk-core/plugins/transfer_encoding.rb'
30
- require 'aws-sdk-core/plugins/http_checksum.rb'
31
- require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
- require 'aws-sdk-core/plugins/request_compression.rb'
33
- require 'aws-sdk-core/plugins/defaults_mode.rb'
34
- require 'aws-sdk-core/plugins/recursion_detection.rb'
35
- require 'aws-sdk-core/plugins/telemetry.rb'
36
- require 'aws-sdk-core/plugins/sign.rb'
37
- require 'aws-sdk-core/plugins/protocols/rest_json.rb'
38
- require 'aws-sdk-core/plugins/event_stream_configuration.rb'
10
+ require 'seahorse/client/plugins/content_length'
11
+ require 'aws-sdk-core/plugins/credentials_configuration'
12
+ require 'aws-sdk-core/plugins/logging'
13
+ require 'aws-sdk-core/plugins/param_converter'
14
+ require 'aws-sdk-core/plugins/param_validator'
15
+ require 'aws-sdk-core/plugins/user_agent'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors'
17
+ require 'aws-sdk-core/plugins/retry_errors'
18
+ require 'aws-sdk-core/plugins/global_configuration'
19
+ require 'aws-sdk-core/plugins/regional_endpoint'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern'
22
+ require 'aws-sdk-core/plugins/response_paging'
23
+ require 'aws-sdk-core/plugins/stub_responses'
24
+ require 'aws-sdk-core/plugins/idempotency_token'
25
+ require 'aws-sdk-core/plugins/invocation_id'
26
+ require 'aws-sdk-core/plugins/jsonvalue_converter'
27
+ require 'aws-sdk-core/plugins/client_metrics_plugin'
28
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin'
29
+ require 'aws-sdk-core/plugins/transfer_encoding'
30
+ require 'aws-sdk-core/plugins/http_checksum'
31
+ require 'aws-sdk-core/plugins/checksum_algorithm'
32
+ require 'aws-sdk-core/plugins/request_compression'
33
+ require 'aws-sdk-core/plugins/defaults_mode'
34
+ require 'aws-sdk-core/plugins/recursion_detection'
35
+ require 'aws-sdk-core/plugins/telemetry'
36
+ require 'aws-sdk-core/plugins/sign'
37
+ require 'aws-sdk-core/plugins/protocols/rest_json'
38
+ require 'aws-sdk-core/plugins/event_stream_configuration'
39
39
 
40
40
  module Aws::BedrockAgentRuntime
41
41
  # An API client for BedrockAgentRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
@@ -1372,6 +1372,9 @@ module Aws::BedrockAgentRuntime
1372
1372
  # event.trace.orchestration_trace.model_invocation_output.metadata.usage.input_tokens #=> Integer
1373
1373
  # event.trace.orchestration_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
1374
1374
  # event.trace.orchestration_trace.model_invocation_output.raw_response.content #=> String
1375
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
1376
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
1377
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.redacted_content #=> String
1375
1378
  # event.trace.orchestration_trace.model_invocation_output.trace_id #=> String
1376
1379
  # event.trace.orchestration_trace.observation.action_group_invocation_output.text #=> String
1377
1380
  # event.trace.orchestration_trace.observation.agent_collaborator_invocation_output.agent_collaborator_alias_arn #=> String
@@ -1451,6 +1454,9 @@ module Aws::BedrockAgentRuntime
1451
1454
  # event.trace.post_processing_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
1452
1455
  # event.trace.post_processing_trace.model_invocation_output.parsed_response.text #=> String
1453
1456
  # event.trace.post_processing_trace.model_invocation_output.raw_response.content #=> String
1457
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
1458
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
1459
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.redacted_content #=> String
1454
1460
  # event.trace.post_processing_trace.model_invocation_output.trace_id #=> String
1455
1461
  # event.trace.pre_processing_trace.model_invocation_input.foundation_model #=> String
1456
1462
  # event.trace.pre_processing_trace.model_invocation_input.inference_configuration.maximum_length #=> Integer
@@ -1470,6 +1476,9 @@ module Aws::BedrockAgentRuntime
1470
1476
  # event.trace.pre_processing_trace.model_invocation_output.parsed_response.is_valid #=> Boolean
1471
1477
  # event.trace.pre_processing_trace.model_invocation_output.parsed_response.rationale #=> String
1472
1478
  # event.trace.pre_processing_trace.model_invocation_output.raw_response.content #=> String
1479
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
1480
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
1481
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.redacted_content #=> String
1473
1482
  # event.trace.pre_processing_trace.model_invocation_output.trace_id #=> String
1474
1483
  # event.trace.routing_classifier_trace.invocation_input.action_group_invocation_input.action_group_name #=> String
1475
1484
  # event.trace.routing_classifier_trace.invocation_input.action_group_invocation_input.api_path #=> String
@@ -2757,6 +2766,9 @@ module Aws::BedrockAgentRuntime
2757
2766
  # event.trace.orchestration_trace.model_invocation_output.metadata.usage.input_tokens #=> Integer
2758
2767
  # event.trace.orchestration_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
2759
2768
  # event.trace.orchestration_trace.model_invocation_output.raw_response.content #=> String
2769
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
2770
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
2771
+ # event.trace.orchestration_trace.model_invocation_output.reasoning_content.redacted_content #=> String
2760
2772
  # event.trace.orchestration_trace.model_invocation_output.trace_id #=> String
2761
2773
  # event.trace.orchestration_trace.observation.action_group_invocation_output.text #=> String
2762
2774
  # event.trace.orchestration_trace.observation.agent_collaborator_invocation_output.agent_collaborator_alias_arn #=> String
@@ -2836,6 +2848,9 @@ module Aws::BedrockAgentRuntime
2836
2848
  # event.trace.post_processing_trace.model_invocation_output.metadata.usage.output_tokens #=> Integer
2837
2849
  # event.trace.post_processing_trace.model_invocation_output.parsed_response.text #=> String
2838
2850
  # event.trace.post_processing_trace.model_invocation_output.raw_response.content #=> String
2851
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
2852
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
2853
+ # event.trace.post_processing_trace.model_invocation_output.reasoning_content.redacted_content #=> String
2839
2854
  # event.trace.post_processing_trace.model_invocation_output.trace_id #=> String
2840
2855
  # event.trace.pre_processing_trace.model_invocation_input.foundation_model #=> String
2841
2856
  # event.trace.pre_processing_trace.model_invocation_input.inference_configuration.maximum_length #=> Integer
@@ -2855,6 +2870,9 @@ module Aws::BedrockAgentRuntime
2855
2870
  # event.trace.pre_processing_trace.model_invocation_output.parsed_response.is_valid #=> Boolean
2856
2871
  # event.trace.pre_processing_trace.model_invocation_output.parsed_response.rationale #=> String
2857
2872
  # event.trace.pre_processing_trace.model_invocation_output.raw_response.content #=> String
2873
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.reasoning_text.signature #=> String
2874
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.reasoning_text.text #=> String
2875
+ # event.trace.pre_processing_trace.model_invocation_output.reasoning_content.redacted_content #=> String
2858
2876
  # event.trace.pre_processing_trace.model_invocation_output.trace_id #=> String
2859
2877
  # event.trace.routing_classifier_trace.invocation_input.action_group_invocation_input.action_group_name #=> String
2860
2878
  # event.trace.routing_classifier_trace.invocation_input.action_group_invocation_input.api_path #=> String
@@ -4387,7 +4405,7 @@ module Aws::BedrockAgentRuntime
4387
4405
  tracer: tracer
4388
4406
  )
4389
4407
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4390
- context[:gem_version] = '1.44.0'
4408
+ context[:gem_version] = '1.46.0'
4391
4409
  Seahorse::Client::Request.new(handlers, context)
4392
4410
  end
4393
4411
 
@@ -56,6 +56,7 @@ module Aws::BedrockAgentRuntime
56
56
  BedrockRerankingConfigurationNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'BedrockRerankingConfigurationNumberOfResultsInteger')
57
57
  BedrockRerankingModelArn = Shapes::StringShape.new(name: 'BedrockRerankingModelArn')
58
58
  BedrockRerankingModelConfiguration = Shapes::StructureShape.new(name: 'BedrockRerankingModelConfiguration')
59
+ Blob = Shapes::BlobShape.new(name: 'Blob')
59
60
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
60
61
  ByteContentBlob = Shapes::BlobShape.new(name: 'ByteContentBlob')
61
62
  ByteContentDoc = Shapes::StructureShape.new(name: 'ByteContentDoc')
@@ -320,6 +321,8 @@ module Aws::BedrockAgentRuntime
320
321
  Rationale = Shapes::StructureShape.new(name: 'Rationale')
321
322
  RationaleString = Shapes::StringShape.new(name: 'RationaleString')
322
323
  RawResponse = Shapes::StructureShape.new(name: 'RawResponse')
324
+ ReasoningContentBlock = Shapes::UnionShape.new(name: 'ReasoningContentBlock')
325
+ ReasoningTextBlock = Shapes::StructureShape.new(name: 'ReasoningTextBlock')
323
326
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
324
327
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
325
328
  RequireConfirmation = Shapes::StringShape.new(name: 'RequireConfirmation')
@@ -1244,6 +1247,7 @@ module Aws::BedrockAgentRuntime
1244
1247
 
1245
1248
  OrchestrationModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
1246
1249
  OrchestrationModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
1250
+ OrchestrationModelInvocationOutput.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
1247
1251
  OrchestrationModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
1248
1252
  OrchestrationModelInvocationOutput.struct_class = Types::OrchestrationModelInvocationOutput
1249
1253
 
@@ -1295,6 +1299,7 @@ module Aws::BedrockAgentRuntime
1295
1299
  PostProcessingModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
1296
1300
  PostProcessingModelInvocationOutput.add_member(:parsed_response, Shapes::ShapeRef.new(shape: PostProcessingParsedResponse, location_name: "parsedResponse"))
1297
1301
  PostProcessingModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
1302
+ PostProcessingModelInvocationOutput.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
1298
1303
  PostProcessingModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
1299
1304
  PostProcessingModelInvocationOutput.struct_class = Types::PostProcessingModelInvocationOutput
1300
1305
 
@@ -1312,6 +1317,7 @@ module Aws::BedrockAgentRuntime
1312
1317
  PreProcessingModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
1313
1318
  PreProcessingModelInvocationOutput.add_member(:parsed_response, Shapes::ShapeRef.new(shape: PreProcessingParsedResponse, location_name: "parsedResponse"))
1314
1319
  PreProcessingModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
1320
+ PreProcessingModelInvocationOutput.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
1315
1321
  PreProcessingModelInvocationOutput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
1316
1322
  PreProcessingModelInvocationOutput.struct_class = Types::PreProcessingModelInvocationOutput
1317
1323
 
@@ -1367,6 +1373,18 @@ module Aws::BedrockAgentRuntime
1367
1373
  RawResponse.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "content"))
1368
1374
  RawResponse.struct_class = Types::RawResponse
1369
1375
 
1376
+ ReasoningContentBlock.add_member(:reasoning_text, Shapes::ShapeRef.new(shape: ReasoningTextBlock, location_name: "reasoningText"))
1377
+ ReasoningContentBlock.add_member(:redacted_content, Shapes::ShapeRef.new(shape: Blob, location_name: "redactedContent"))
1378
+ ReasoningContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1379
+ ReasoningContentBlock.add_member_subclass(:reasoning_text, Types::ReasoningContentBlock::ReasoningText)
1380
+ ReasoningContentBlock.add_member_subclass(:redacted_content, Types::ReasoningContentBlock::RedactedContent)
1381
+ ReasoningContentBlock.add_member_subclass(:unknown, Types::ReasoningContentBlock::Unknown)
1382
+ ReasoningContentBlock.struct_class = Types::ReasoningContentBlock
1383
+
1384
+ ReasoningTextBlock.add_member(:signature, Shapes::ShapeRef.new(shape: String, location_name: "signature"))
1385
+ ReasoningTextBlock.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
1386
+ ReasoningTextBlock.struct_class = Types::ReasoningTextBlock
1387
+
1370
1388
  RepromptResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
1371
1389
  RepromptResponse.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
1372
1390
  RepromptResponse.struct_class = Types::RepromptResponse
@@ -3913,6 +3913,11 @@ module Aws::BedrockAgentRuntime
3913
3913
  # output.
3914
3914
  # @return [Types::RawResponse]
3915
3915
  #
3916
+ # @!attribute [rw] reasoning_content
3917
+ # Contains content about the reasoning that the model made during the
3918
+ # orchestration step.
3919
+ # @return [Types::ReasoningContentBlock]
3920
+ #
3916
3921
  # @!attribute [rw] trace_id
3917
3922
  # The unique identifier of the trace.
3918
3923
  # @return [String]
@@ -3922,8 +3927,9 @@ module Aws::BedrockAgentRuntime
3922
3927
  class OrchestrationModelInvocationOutput < Struct.new(
3923
3928
  :metadata,
3924
3929
  :raw_response,
3930
+ :reasoning_content,
3925
3931
  :trace_id)
3926
- SENSITIVE = [:metadata, :raw_response]
3932
+ SENSITIVE = [:metadata, :raw_response, :reasoning_content]
3927
3933
  include Aws::Structure
3928
3934
  end
3929
3935
 
@@ -4116,6 +4122,11 @@ module Aws::BedrockAgentRuntime
4116
4122
  # Details of the raw response from the foundation model output.
4117
4123
  # @return [Types::RawResponse]
4118
4124
  #
4125
+ # @!attribute [rw] reasoning_content
4126
+ # Contains content about the reasoning that the model made during the
4127
+ # post-processing step.
4128
+ # @return [Types::ReasoningContentBlock]
4129
+ #
4119
4130
  # @!attribute [rw] trace_id
4120
4131
  # The unique identifier of the trace.
4121
4132
  # @return [String]
@@ -4126,8 +4137,9 @@ module Aws::BedrockAgentRuntime
4126
4137
  :metadata,
4127
4138
  :parsed_response,
4128
4139
  :raw_response,
4140
+ :reasoning_content,
4129
4141
  :trace_id)
4130
- SENSITIVE = [:metadata, :parsed_response, :raw_response]
4142
+ SENSITIVE = [:metadata, :parsed_response, :raw_response, :reasoning_content]
4131
4143
  include Aws::Structure
4132
4144
  end
4133
4145
 
@@ -4202,6 +4214,11 @@ module Aws::BedrockAgentRuntime
4202
4214
  # Details of the raw response from the foundation model output.
4203
4215
  # @return [Types::RawResponse]
4204
4216
  #
4217
+ # @!attribute [rw] reasoning_content
4218
+ # Contains content about the reasoning that the model made during the
4219
+ # pre-processing step.
4220
+ # @return [Types::ReasoningContentBlock]
4221
+ #
4205
4222
  # @!attribute [rw] trace_id
4206
4223
  # The unique identifier of the trace.
4207
4224
  # @return [String]
@@ -4212,8 +4229,9 @@ module Aws::BedrockAgentRuntime
4212
4229
  :metadata,
4213
4230
  :parsed_response,
4214
4231
  :raw_response,
4232
+ :reasoning_content,
4215
4233
  :trace_id)
4216
- SENSITIVE = [:metadata, :parsed_response, :raw_response]
4234
+ SENSITIVE = [:metadata, :parsed_response, :raw_response, :reasoning_content]
4217
4235
  include Aws::Structure
4218
4236
  end
4219
4237
 
@@ -4325,7 +4343,7 @@ module Aws::BedrockAgentRuntime
4325
4343
  # Specifies whether to override the default parser Lambda function
4326
4344
  # when parsing the raw foundation model output in the part of the
4327
4345
  # agent sequence defined by the `promptType`. If you set the field as
4328
- # `OVERRIDEN`, the `overrideLambda` field in the
4346
+ # `OVERRIDDEN`, the `overrideLambda` field in the
4329
4347
  # [PromptOverrideConfiguration][1] must be specified with the ARN of a
4330
4348
  # Lambda function.
4331
4349
  #
@@ -4539,6 +4557,63 @@ module Aws::BedrockAgentRuntime
4539
4557
  include Aws::Structure
4540
4558
  end
4541
4559
 
4560
+ # Contains content regarding the reasoning that the foundation model
4561
+ # made with respect to the content in the content block. Reasoning
4562
+ # refers to a Chain of Thought (CoT) that the model generates to enhance
4563
+ # the accuracy of its final response.
4564
+ #
4565
+ # @note ReasoningContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ReasoningContentBlock corresponding to the set member.
4566
+ #
4567
+ # @!attribute [rw] reasoning_text
4568
+ # Contains information about the reasoning that the model used to
4569
+ # return the content in the content block.
4570
+ # @return [Types::ReasoningTextBlock]
4571
+ #
4572
+ # @!attribute [rw] redacted_content
4573
+ # The content in the reasoning that was encrypted by the model
4574
+ # provider for trust and safety reasons.
4575
+ # @return [String]
4576
+ #
4577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ReasoningContentBlock AWS API Documentation
4578
+ #
4579
+ class ReasoningContentBlock < Struct.new(
4580
+ :reasoning_text,
4581
+ :redacted_content,
4582
+ :unknown)
4583
+ SENSITIVE = [:reasoning_text]
4584
+ include Aws::Structure
4585
+ include Aws::Structure::Union
4586
+
4587
+ class ReasoningText < ReasoningContentBlock; end
4588
+ class RedactedContent < ReasoningContentBlock; end
4589
+ class Unknown < ReasoningContentBlock; end
4590
+ end
4591
+
4592
+ # Contains information about the reasoning that the model used to return
4593
+ # the content in the content block.
4594
+ #
4595
+ # @!attribute [rw] signature
4596
+ # A hash of all the messages in the conversation to ensure that the
4597
+ # content in the reasoning text block isn't tampered with. You must
4598
+ # submit the signature in subsequent `Converse` requests, in addition
4599
+ # to the previous messages. If the previous messages are tampered
4600
+ # with, the response throws an error.
4601
+ # @return [String]
4602
+ #
4603
+ # @!attribute [rw] text
4604
+ # Text describing the reasoning that the model used to return the
4605
+ # content in the content block.
4606
+ # @return [String]
4607
+ #
4608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ReasoningTextBlock AWS API Documentation
4609
+ #
4610
+ class ReasoningTextBlock < Struct.new(
4611
+ :signature,
4612
+ :text)
4613
+ SENSITIVE = []
4614
+ include Aws::Structure
4615
+ end
4616
+
4542
4617
  # Contains details about the agent's response to reprompt the input.
4543
4618
  #
4544
4619
  # @!attribute [rw] source
@@ -55,7 +55,7 @@ module Aws::BedrockAgentRuntime
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
57
57
 
58
- GEM_VERSION = '1.44.0'
58
+ GEM_VERSION = '1.46.0'
59
59
 
60
60
  end
61
61
 
data/sig/types.rbs CHANGED
@@ -1039,8 +1039,9 @@ module Aws::BedrockAgentRuntime
1039
1039
  class OrchestrationModelInvocationOutput
1040
1040
  attr_accessor metadata: Types::Metadata
1041
1041
  attr_accessor raw_response: Types::RawResponse
1042
+ attr_accessor reasoning_content: Types::ReasoningContentBlock
1042
1043
  attr_accessor trace_id: ::String
1043
- SENSITIVE: [:metadata, :raw_response]
1044
+ SENSITIVE: [:metadata, :raw_response, :reasoning_content]
1044
1045
  end
1045
1046
 
1046
1047
  class OrchestrationTrace
@@ -1103,8 +1104,9 @@ module Aws::BedrockAgentRuntime
1103
1104
  attr_accessor metadata: Types::Metadata
1104
1105
  attr_accessor parsed_response: Types::PostProcessingParsedResponse
1105
1106
  attr_accessor raw_response: Types::RawResponse
1107
+ attr_accessor reasoning_content: Types::ReasoningContentBlock
1106
1108
  attr_accessor trace_id: ::String
1107
- SENSITIVE: [:metadata, :parsed_response, :raw_response]
1109
+ SENSITIVE: [:metadata, :parsed_response, :raw_response, :reasoning_content]
1108
1110
  end
1109
1111
 
1110
1112
  class PostProcessingParsedResponse
@@ -1130,8 +1132,9 @@ module Aws::BedrockAgentRuntime
1130
1132
  attr_accessor metadata: Types::Metadata
1131
1133
  attr_accessor parsed_response: Types::PreProcessingParsedResponse
1132
1134
  attr_accessor raw_response: Types::RawResponse
1135
+ attr_accessor reasoning_content: Types::ReasoningContentBlock
1133
1136
  attr_accessor trace_id: ::String
1134
- SENSITIVE: [:metadata, :parsed_response, :raw_response]
1137
+ SENSITIVE: [:metadata, :parsed_response, :raw_response, :reasoning_content]
1135
1138
  end
1136
1139
 
1137
1140
  class PreProcessingParsedResponse
@@ -1203,6 +1206,26 @@ module Aws::BedrockAgentRuntime
1203
1206
  SENSITIVE: []
1204
1207
  end
1205
1208
 
1209
+ class ReasoningContentBlock
1210
+ attr_accessor reasoning_text: Types::ReasoningTextBlock
1211
+ attr_accessor redacted_content: ::String
1212
+ attr_accessor unknown: untyped
1213
+ SENSITIVE: [:reasoning_text]
1214
+
1215
+ class ReasoningText < ReasoningContentBlock
1216
+ end
1217
+ class RedactedContent < ReasoningContentBlock
1218
+ end
1219
+ class Unknown < ReasoningContentBlock
1220
+ end
1221
+ end
1222
+
1223
+ class ReasoningTextBlock
1224
+ attr_accessor signature: ::String
1225
+ attr_accessor text: ::String
1226
+ SENSITIVE: []
1227
+ end
1228
+
1206
1229
  class RepromptResponse
1207
1230
  attr_accessor source: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "PARSER")
1208
1231
  attr_accessor text: ::String
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.44.0
4
+ version: 1.46.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: 2025-02-12 00:00:00.000000000 Z
11
+ date: 2025-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core