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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +43 -10
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +1 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +11 -1
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +7 -1
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0937c50cd571aabc4903c40c30472eda5ab8b4bf2ad1915c7f2704f26d07955
|
4
|
+
data.tar.gz: cdf2181f560b55b48eb9a58316e557b14140a64194babaa9ce86a20cd14f9cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b7a30992848738210df2f7eb908f211a871f8bfc2be240949d5aad710c92caece3943aa12b19dd4e099ee4f2ed60eb32d0d565f28d962b9bbfa9fe2a1c2c98
|
7
|
+
data.tar.gz: 3ed9c82f6329c19c154d6a4f0f7c9676ca7020bd753aafdaf320edbea466890fe672ab3168edcc752647c6d9665719aaeeada3eb9a8267c0c5154e5a71e51eff
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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
|
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
|
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
|
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.
|
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
|
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.
|
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:
|
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.
|
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.
|
32
|
+
version: 3.216.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|