aws-sdk-bedrockagentruntime 1.38.0 → 1.39.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: a3323daf396d959bf599aedd3f4dee67814f29364cbab9070823ee323a873c00
4
- data.tar.gz: 7f819442dab59ad29bb9d48b7b86935d455f8be7370a5145813c6dc076b20750
3
+ metadata.gz: a0937c50cd571aabc4903c40c30472eda5ab8b4bf2ad1915c7f2704f26d07955
4
+ data.tar.gz: cdf2181f560b55b48eb9a58316e557b14140a64194babaa9ce86a20cd14f9cd7
5
5
  SHA512:
6
- metadata.gz: e9ea1dd1dd7bdf57b36c787d0c654734db53e4c5ecfe1e4fd783125a24ce94c9fe0e58b5b724de27fc617cb7958e09c052b0302d65fdc6a8aba00a171a0c85c5
7
- data.tar.gz: eee5a49504ad9003a0ac5a1986efba79ceac207778fed32b406dbee0b2624d745d3f4509f1f2133b54d09fd2239da211a04f3bc96bb7844bd7b400d0f19d221e
6
+ metadata.gz: a6b7a30992848738210df2f7eb908f211a871f8bfc2be240949d5aad710c92caece3943aa12b19dd4e099ee4f2ed60eb32d0d565f28d962b9bbfa9fe2a1c2c98
7
+ data.tar.gz: 3ed9c82f6329c19c154d6a4f0f7c9676ca7020bd753aafdaf320edbea466890fe672ab3168edcc752647c6d9665719aaeeada3eb9a8267c0c5154e5a71e51eff
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.0 (2025-01-15)
5
+ ------------------
6
+
7
+ * Feature - Now supports streaming for inline agents.
8
+
4
9
  1.38.0 (2024-12-20)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.39.0
@@ -268,11 +268,34 @@ module Aws::BedrockAgentRuntime
268
268
  # Used when loading credentials from the shared credentials file
269
269
  # at HOME/.aws/credentials. When not specified, 'default' is used.
270
270
  #
271
+ # @option options [String] :request_checksum_calculation ("when_supported")
272
+ # Determines when a checksum will be calculated for request payloads. Values are:
273
+ #
274
+ # * `when_supported` - (default) When set, a checksum will be
275
+ # calculated for all request payloads of operations modeled with the
276
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
277
+ # `requestAlgorithmMember` is modeled.
278
+ # * `when_required` - When set, a checksum will only be calculated for
279
+ # request payloads of operations modeled with the `httpChecksum` trait where
280
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
281
+ # is modeled and supplied.
282
+ #
271
283
  # @option options [Integer] :request_min_compression_size_bytes (10240)
272
284
  # The minimum size in bytes that triggers compression for request
273
285
  # bodies. The value must be non-negative integer value between 0
274
286
  # and 10485780 bytes inclusive.
275
287
  #
288
+ # @option options [String] :response_checksum_validation ("when_supported")
289
+ # Determines when checksum validation will be performed on response payloads. Values are:
290
+ #
291
+ # * `when_supported` - (default) When set, checksum validation is performed on all
292
+ # response payloads of operations modeled with the `httpChecksum` trait where
293
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
294
+ # are supported.
295
+ # * `when_required` - When set, checksum validation is not performed on
296
+ # response payloads of operations unless the checksum algorithm is supported and
297
+ # the `requestValidationModeMember` member is set to `ENABLED`.
298
+ #
276
299
  # @option options [Proc] :retry_backoff
277
300
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
278
301
  # This option is only used in the `legacy` retry mode.
@@ -608,10 +631,7 @@ module Aws::BedrockAgentRuntime
608
631
  req.send_request(options)
609
632
  end
610
633
 
611
- # <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
612
- # including `InvokeAgent`.
613
- #
614
- # </note>
634
+ # <note> </note>
615
635
  #
616
636
  # Sends a prompt for the agent to process and respond to. Note the
617
637
  # following fields for the request:
@@ -640,7 +660,11 @@ module Aws::BedrockAgentRuntime
640
660
  # session or prompt or, if you configured an action group to return
641
661
  # control, results from invocation of the action group.
642
662
  #
643
- # The response is returned in the `bytes` field of the `chunk` object.
663
+ # The response contains both **chunk** and **trace** attributes.
664
+ #
665
+ # The final response is returned in the `bytes` field of the `chunk`
666
+ # object. The `InvokeAgent` returns one chunk for the entire
667
+ # interaction.
644
668
  #
645
669
  # * The `attribution` object contains citations for parts of the
646
670
  # response.
@@ -1951,10 +1975,7 @@ module Aws::BedrockAgentRuntime
1951
1975
  # one knowledge base, uses default prompts, has no action group, and
1952
1976
  # user input is disabled.
1953
1977
  #
1954
- # <note markdown="1"> The CLI doesn't support streaming operations in Amazon Bedrock,
1955
- # including `InvokeInlineAgent`.
1956
- #
1957
- # </note>
1978
+ # <note> </note>
1958
1979
  #
1959
1980
  #
1960
1981
  #
@@ -2045,6 +2066,14 @@ module Aws::BedrockAgentRuntime
2045
2066
  # The unique identifier of the session. Use the same value across
2046
2067
  # requests to continue the same conversation.
2047
2068
  #
2069
+ # @option params [Types::StreamingConfigurations] :streaming_configurations
2070
+ # Specifies the configurations for streaming.
2071
+ #
2072
+ # <note markdown="1"> To use agent streaming, you need permissions to perform the
2073
+ # `bedrock:InvokeModelWithResponseStream` action.
2074
+ #
2075
+ # </note>
2076
+ #
2048
2077
  # @return [Types::InvokeInlineAgentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2049
2078
  #
2050
2079
  # * {Types::InvokeInlineAgentResponse#completion #completion} => Types::InlineAgentResponseStream
@@ -2487,6 +2516,10 @@ module Aws::BedrockAgentRuntime
2487
2516
  # ],
2488
2517
  # },
2489
2518
  # session_id: "SessionId", # required
2519
+ # streaming_configurations: {
2520
+ # apply_guardrail_interval: 1,
2521
+ # stream_final_response: false,
2522
+ # },
2490
2523
  # })
2491
2524
  #
2492
2525
  # @example Response structure
@@ -4302,7 +4335,7 @@ module Aws::BedrockAgentRuntime
4302
4335
  tracer: tracer
4303
4336
  )
4304
4337
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4305
- context[:gem_version] = '1.38.0'
4338
+ context[:gem_version] = '1.39.0'
4306
4339
  Seahorse::Client::Request.new(handlers, context)
4307
4340
  end
4308
4341
 
@@ -1067,6 +1067,7 @@ module Aws::BedrockAgentRuntime
1067
1067
  InvokeInlineAgentRequest.add_member(:knowledge_bases, Shapes::ShapeRef.new(shape: KnowledgeBases, location_name: "knowledgeBases"))
1068
1068
  InvokeInlineAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
1069
1069
  InvokeInlineAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
1070
+ InvokeInlineAgentRequest.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurations, location_name: "streamingConfigurations"))
1070
1071
  InvokeInlineAgentRequest.struct_class = Types::InvokeInlineAgentRequest
1071
1072
 
1072
1073
  InvokeInlineAgentResponse.add_member(:completion, Shapes::ShapeRef.new(shape: InlineAgentResponseStream, required: true, eventstream: true, location_name: "completion"))
@@ -3011,6 +3011,15 @@ module Aws::BedrockAgentRuntime
3011
3011
  # requests to continue the same conversation.
3012
3012
  # @return [String]
3013
3013
  #
3014
+ # @!attribute [rw] streaming_configurations
3015
+ # Specifies the configurations for streaming.
3016
+ #
3017
+ # <note markdown="1"> To use agent streaming, you need permissions to perform the
3018
+ # `bedrock:InvokeModelWithResponseStream` action.
3019
+ #
3020
+ # </note>
3021
+ # @return [Types::StreamingConfigurations]
3022
+ #
3014
3023
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeInlineAgentRequest AWS API Documentation
3015
3024
  #
3016
3025
  class InvokeInlineAgentRequest < Struct.new(
@@ -3027,7 +3036,8 @@ module Aws::BedrockAgentRuntime
3027
3036
  :instruction,
3028
3037
  :knowledge_bases,
3029
3038
  :prompt_override_configuration,
3030
- :session_id)
3039
+ :session_id,
3040
+ :streaming_configurations)
3031
3041
  SENSITIVE = [:input_text, :instruction, :prompt_override_configuration]
3032
3042
  include Aws::Structure
3033
3043
  end
@@ -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.38.0'
58
+ GEM_VERSION = '1.39.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -42,7 +42,9 @@ module Aws
42
42
  ?max_attempts: Integer,
43
43
  ?output_event_stream_handler: Proc,
44
44
  ?profile: String,
45
+ ?request_checksum_calculation: String,
45
46
  ?request_min_compression_size_bytes: Integer,
47
+ ?response_checksum_validation: String,
46
48
  ?retry_backoff: Proc,
47
49
  ?retry_base_delay: Float,
48
50
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -586,7 +588,11 @@ module Aws
586
588
  },
587
589
  ]
588
590
  },
589
- session_id: ::String
591
+ session_id: ::String,
592
+ ?streaming_configurations: {
593
+ apply_guardrail_interval: ::Integer?,
594
+ stream_final_response: bool?
595
+ }
590
596
  ) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
591
597
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeInlineAgentResponseSuccess
592
598
 
data/sig/resource.rbs CHANGED
@@ -42,7 +42,9 @@ module Aws
42
42
  ?max_attempts: Integer,
43
43
  ?output_event_stream_handler: Proc,
44
44
  ?profile: String,
45
+ ?request_checksum_calculation: String,
45
46
  ?request_min_compression_size_bytes: Integer,
47
+ ?response_checksum_validation: String,
46
48
  ?retry_backoff: Proc,
47
49
  ?retry_base_delay: Float,
48
50
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
data/sig/types.rbs CHANGED
@@ -824,6 +824,7 @@ module Aws::BedrockAgentRuntime
824
824
  attr_accessor knowledge_bases: ::Array[Types::KnowledgeBase]
825
825
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
826
826
  attr_accessor session_id: ::String
827
+ attr_accessor streaming_configurations: Types::StreamingConfigurations
827
828
  SENSITIVE: [:input_text, :instruction, :prompt_override_configuration]
828
829
  end
829
830
 
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.38.0
4
+ version: 1.39.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-12-20 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.210.0
22
+ version: 3.216.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement