aws-sdk-bedrockagent 1.24.0 → 1.26.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +15 -9
- data/lib/aws-sdk-bedrockagent/client_api.rb +3 -1
- data/lib/aws-sdk-bedrockagent/plugins/endpoints.rb +8 -5
- data/lib/aws-sdk-bedrockagent/types.rb +24 -10
- data/lib/aws-sdk-bedrockagent.rb +14 -12
- data/sig/client.rbs +1 -0
- data/sig/resource.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: 27c87e7c8498a571482500a5b7fd5a0e93660a71591e0fb1c453a11878603551
|
4
|
+
data.tar.gz: 8fcf226071415796554e2c17edfdb0b88e8b136a170d00ceeb0dfcad568e86ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f38d43ab3452a9801ac2cb5ab6a459acdd1539e37d40197f5ed9ea4324051af7454b3582108ce861d411b2591b23524278c8e33e265e455daffebabc36e578
|
7
|
+
data.tar.gz: b1433eae81c3985a0bebc37c170fe2de4f699c26a8dcb4c4bf350443b38539e3457061827c194e5a1563108c17fc0c0f31e5555b18aaa6de9b5e972791dbb7e3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.26.0 (2024-09-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Bedrock Prompt Flows and Prompt Management now supports using inference profiles to increase throughput and improve resilience.
|
8
|
+
|
9
|
+
1.25.0 (2024-09-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.24.0 (2024-09-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.26.0
|
@@ -130,13 +130,15 @@ module Aws::BedrockAgent
|
|
130
130
|
# locations will be searched for credentials:
|
131
131
|
#
|
132
132
|
# * `Aws.config[:credentials]`
|
133
|
-
# * The `:access_key_id`, `:secret_access_key`,
|
134
|
-
#
|
133
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
|
+
# `:account_id` options.
|
135
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
|
136
|
+
# ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
|
135
137
|
# * `~/.aws/credentials`
|
136
138
|
# * `~/.aws/config`
|
137
139
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
138
140
|
# are very aggressive. Construct and pass an instance of
|
139
|
-
# `Aws::
|
141
|
+
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
140
142
|
# enable retries and extended timeouts. Instance profile credential
|
141
143
|
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
142
144
|
# to true.
|
@@ -155,6 +157,8 @@ module Aws::BedrockAgent
|
|
155
157
|
#
|
156
158
|
# @option options [String] :access_key_id
|
157
159
|
#
|
160
|
+
# @option options [String] :account_id
|
161
|
+
#
|
158
162
|
# @option options [Boolean] :active_endpoint_cache (false)
|
159
163
|
# When set to `true`, a thread polling for endpoints will be running in
|
160
164
|
# the background every 60 secs (default). Defaults to `false`.
|
@@ -369,7 +373,9 @@ module Aws::BedrockAgent
|
|
369
373
|
# sending the request.
|
370
374
|
#
|
371
375
|
# @option options [Aws::BedrockAgent::EndpointProvider] :endpoint_provider
|
372
|
-
# The endpoint provider used to resolve endpoints. Any object that responds to
|
376
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
377
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
378
|
+
# `Aws::BedrockAgent::EndpointParameters`.
|
373
379
|
#
|
374
380
|
# @option options [Float] :http_continue_timeout (1)
|
375
381
|
# The number of seconds to wait for a 100-continue response before sending the
|
@@ -570,8 +576,8 @@ module Aws::BedrockAgent
|
|
570
576
|
# A description of the agent.
|
571
577
|
#
|
572
578
|
# @option params [String] :foundation_model
|
573
|
-
# The foundation model to be used for
|
574
|
-
# create.
|
579
|
+
# The Amazon Resource Name (ARN) of the foundation model to be used for
|
580
|
+
# orchestration by the agent you create.
|
575
581
|
#
|
576
582
|
# @option params [Types::GuardrailConfiguration] :guardrail_configuration
|
577
583
|
# The unique Guardrail configuration assigned to the agent when it is
|
@@ -1370,7 +1376,7 @@ module Aws::BedrockAgent
|
|
1370
1376
|
# },
|
1371
1377
|
# knowledge_base: {
|
1372
1378
|
# knowledge_base_id: "KnowledgeBaseId", # required
|
1373
|
-
# model_id: "
|
1379
|
+
# model_id: "KnowledgeBaseModelIdentifier",
|
1374
1380
|
# },
|
1375
1381
|
# lambda_function: {
|
1376
1382
|
# lambda_arn: "LambdaArn", # required
|
@@ -5130,7 +5136,7 @@ module Aws::BedrockAgent
|
|
5130
5136
|
# },
|
5131
5137
|
# knowledge_base: {
|
5132
5138
|
# knowledge_base_id: "KnowledgeBaseId", # required
|
5133
|
-
# model_id: "
|
5139
|
+
# model_id: "KnowledgeBaseModelIdentifier",
|
5134
5140
|
# },
|
5135
5141
|
# lambda_function: {
|
5136
5142
|
# lambda_arn: "LambdaArn", # required
|
@@ -5669,7 +5675,7 @@ module Aws::BedrockAgent
|
|
5669
5675
|
tracer: tracer
|
5670
5676
|
)
|
5671
5677
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
5672
|
-
context[:gem_version] = '1.
|
5678
|
+
context[:gem_version] = '1.26.0'
|
5673
5679
|
Seahorse::Client::Request.new(handlers, context)
|
5674
5680
|
end
|
5675
5681
|
|
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
module Aws::BedrockAgent
|
11
12
|
# @api private
|
12
13
|
module ClientApi
|
@@ -243,6 +244,7 @@ module Aws::BedrockAgent
|
|
243
244
|
KnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseConfiguration')
|
244
245
|
KnowledgeBaseFlowNodeConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseFlowNodeConfiguration')
|
245
246
|
KnowledgeBaseId = Shapes::StringShape.new(name: 'KnowledgeBaseId')
|
247
|
+
KnowledgeBaseModelIdentifier = Shapes::StringShape.new(name: 'KnowledgeBaseModelIdentifier')
|
246
248
|
KnowledgeBaseRoleArn = Shapes::StringShape.new(name: 'KnowledgeBaseRoleArn')
|
247
249
|
KnowledgeBaseState = Shapes::StringShape.new(name: 'KnowledgeBaseState')
|
248
250
|
KnowledgeBaseStatus = Shapes::StringShape.new(name: 'KnowledgeBaseStatus')
|
@@ -1336,7 +1338,7 @@ module Aws::BedrockAgent
|
|
1336
1338
|
KnowledgeBaseConfiguration.struct_class = Types::KnowledgeBaseConfiguration
|
1337
1339
|
|
1338
1340
|
KnowledgeBaseFlowNodeConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
|
1339
|
-
KnowledgeBaseFlowNodeConfiguration.add_member(:model_id, Shapes::ShapeRef.new(shape:
|
1341
|
+
KnowledgeBaseFlowNodeConfiguration.add_member(:model_id, Shapes::ShapeRef.new(shape: KnowledgeBaseModelIdentifier, location_name: "modelId"))
|
1340
1342
|
KnowledgeBaseFlowNodeConfiguration.struct_class = Types::KnowledgeBaseFlowNodeConfiguration
|
1341
1343
|
|
1342
1344
|
KnowledgeBaseSummaries.member = Shapes::ShapeRef.new(shape: KnowledgeBaseSummary)
|
@@ -15,11 +15,11 @@ module Aws::BedrockAgent
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::BedrockAgent::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::BedrockAgent::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::BedrockAgent::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
@@ -51,6 +51,9 @@ module Aws::BedrockAgent
|
|
51
51
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
52
|
metrics << 'SIGV4A_SIGNING'
|
53
53
|
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
54
57
|
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
58
|
end
|
56
59
|
|
@@ -1409,8 +1409,8 @@ module Aws::BedrockAgent
|
|
1409
1409
|
# @return [String]
|
1410
1410
|
#
|
1411
1411
|
# @!attribute [rw] foundation_model
|
1412
|
-
# The
|
1413
|
-
# create.
|
1412
|
+
# The Amazon Resource Name (ARN) of the foundation model to be used
|
1413
|
+
# for orchestration by the agent you create.
|
1414
1414
|
# @return [String]
|
1415
1415
|
#
|
1416
1416
|
# @!attribute [rw] guardrail_configuration
|
@@ -4592,9 +4592,13 @@ module Aws::BedrockAgent
|
|
4592
4592
|
# @return [String]
|
4593
4593
|
#
|
4594
4594
|
# @!attribute [rw] model_id
|
4595
|
-
# The unique identifier of the model
|
4596
|
-
# from the query results. Omit this field if
|
4597
|
-
# retrieved results as an array.
|
4595
|
+
# The unique identifier of the model or [inference profile][1] to use
|
4596
|
+
# to generate a response from the query results. Omit this field if
|
4597
|
+
# you want to return the retrieved results as an array.
|
4598
|
+
#
|
4599
|
+
#
|
4600
|
+
#
|
4601
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
|
4598
4602
|
# @return [String]
|
4599
4603
|
#
|
4600
4604
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/KnowledgeBaseFlowNodeConfiguration AWS API Documentation
|
@@ -5891,7 +5895,12 @@ module Aws::BedrockAgent
|
|
5891
5895
|
# @return [Types::PromptInferenceConfiguration]
|
5892
5896
|
#
|
5893
5897
|
# @!attribute [rw] model_id
|
5894
|
-
# The unique identifier of the model to run
|
5898
|
+
# The unique identifier of the model or [inference profile][1] to run
|
5899
|
+
# inference with.
|
5900
|
+
#
|
5901
|
+
#
|
5902
|
+
#
|
5903
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
|
5895
5904
|
# @return [String]
|
5896
5905
|
#
|
5897
5906
|
# @!attribute [rw] template_configuration
|
@@ -6077,8 +6086,8 @@ module Aws::BedrockAgent
|
|
6077
6086
|
# foundation model output in parts of the agent sequence. If you
|
6078
6087
|
# specify this field, at least one of the `promptConfigurations` must
|
6079
6088
|
# contain a `parserMode` value that is set to `OVERRIDDEN`. For more
|
6080
|
-
# information, see [Parser Lambda function in
|
6081
|
-
#
|
6089
|
+
# information, see [Parser Lambda function in Amazon Bedrock
|
6090
|
+
# Agents][1].
|
6082
6091
|
#
|
6083
6092
|
#
|
6084
6093
|
#
|
@@ -6203,8 +6212,12 @@ module Aws::BedrockAgent
|
|
6203
6212
|
# @return [Array<Types::PromptMetadataEntry>]
|
6204
6213
|
#
|
6205
6214
|
# @!attribute [rw] model_id
|
6206
|
-
# The unique identifier of the model
|
6207
|
-
# the prompt.
|
6215
|
+
# The unique identifier of the model or [inference profile][1] with
|
6216
|
+
# which to run inference on the prompt.
|
6217
|
+
#
|
6218
|
+
#
|
6219
|
+
#
|
6220
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
|
6208
6221
|
# @return [String]
|
6209
6222
|
#
|
6210
6223
|
# @!attribute [rw] name
|
@@ -7942,3 +7955,4 @@ module Aws::BedrockAgent
|
|
7942
7955
|
|
7943
7956
|
end
|
7944
7957
|
end
|
7958
|
+
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
@@ -11,17 +11,6 @@
|
|
11
11
|
require 'aws-sdk-core'
|
12
12
|
require 'aws-sigv4'
|
13
13
|
|
14
|
-
require_relative 'aws-sdk-bedrockagent/types'
|
15
|
-
require_relative 'aws-sdk-bedrockagent/client_api'
|
16
|
-
require_relative 'aws-sdk-bedrockagent/plugins/endpoints.rb'
|
17
|
-
require_relative 'aws-sdk-bedrockagent/client'
|
18
|
-
require_relative 'aws-sdk-bedrockagent/errors'
|
19
|
-
require_relative 'aws-sdk-bedrockagent/resource'
|
20
|
-
require_relative 'aws-sdk-bedrockagent/endpoint_parameters'
|
21
|
-
require_relative 'aws-sdk-bedrockagent/endpoint_provider'
|
22
|
-
require_relative 'aws-sdk-bedrockagent/endpoints'
|
23
|
-
require_relative 'aws-sdk-bedrockagent/customizations'
|
24
|
-
|
25
14
|
# This module provides support for Agents for Amazon Bedrock. This module is available in the
|
26
15
|
# `aws-sdk-bedrockagent` gem.
|
27
16
|
#
|
@@ -51,7 +40,20 @@ require_relative 'aws-sdk-bedrockagent/customizations'
|
|
51
40
|
#
|
52
41
|
# @!group service
|
53
42
|
module Aws::BedrockAgent
|
43
|
+
autoload :Types, 'aws-sdk-bedrockagent/types'
|
44
|
+
autoload :ClientApi, 'aws-sdk-bedrockagent/client_api'
|
45
|
+
module Plugins
|
46
|
+
autoload :Endpoints, 'aws-sdk-bedrockagent/plugins/endpoints.rb'
|
47
|
+
end
|
48
|
+
autoload :Client, 'aws-sdk-bedrockagent/client'
|
49
|
+
autoload :Errors, 'aws-sdk-bedrockagent/errors'
|
50
|
+
autoload :Resource, 'aws-sdk-bedrockagent/resource'
|
51
|
+
autoload :EndpointParameters, 'aws-sdk-bedrockagent/endpoint_parameters'
|
52
|
+
autoload :EndpointProvider, 'aws-sdk-bedrockagent/endpoint_provider'
|
53
|
+
autoload :Endpoints, 'aws-sdk-bedrockagent/endpoints'
|
54
54
|
|
55
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.26.0'
|
56
56
|
|
57
57
|
end
|
58
|
+
|
59
|
+
require_relative 'aws-sdk-bedrockagent/customizations'
|
data/sig/client.rbs
CHANGED
data/sig/resource.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.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-09-
|
11
|
+
date: 2024-09-23 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.207.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.207.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|