aws-sdk-bedrockagent 1.21.0 → 1.23.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagent/client.rb +36 -2
- data/lib/aws-sdk-bedrockagent/client_api.rb +11 -0
- data/lib/aws-sdk-bedrockagent/types.rb +44 -3
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +12 -0
- data/sig/types.rbs +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e6b243ef3e2ddafcd40af6c19ddd7b2169aa3a380c353bf43516aab8b67fd1
|
4
|
+
data.tar.gz: 0efa417802131d18f4648c2ac58de9207f84c9c6027543abc05a50ab2050f1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d241f8799671a2b326d9df194015631bb2104270b56b8596aaa42b79e771f12671316f354534e0989a41d19603be62254a38ce28f2ca3d1e27ec7a9a2499692
|
7
|
+
data.tar.gz: c5c12664b316fd11f907682f25d96def8b6d17294d8bf86ee1cffb90dd416a610372218bf3275820e6353795632a46f75a9922c8804ec2238afc57611e3cd513
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.23.0 (2024-09-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.22.0 (2024-09-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support for user metadata inside PromptVariant.
|
13
|
+
|
4
14
|
1.21.0 (2024-09-03)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.23.0
|
@@ -425,6 +425,12 @@ module Aws::BedrockAgent
|
|
425
425
|
# @option options [String] :ssl_ca_store
|
426
426
|
# Sets the X509::Store to verify peer certificate.
|
427
427
|
#
|
428
|
+
# @option options [OpenSSL::X509::Certificate] :ssl_cert
|
429
|
+
# Sets a client certificate when creating http connections.
|
430
|
+
#
|
431
|
+
# @option options [OpenSSL::PKey] :ssl_key
|
432
|
+
# Sets a client key when creating http connections.
|
433
|
+
#
|
428
434
|
# @option options [Float] :ssl_timeout
|
429
435
|
# Sets the SSL timeout in seconds
|
430
436
|
#
|
@@ -523,10 +529,14 @@ module Aws::BedrockAgent
|
|
523
529
|
# to use advanced prompts, include a `promptOverrideConfiguration`
|
524
530
|
# object. For more information, see [Advanced prompts][2].
|
525
531
|
#
|
526
|
-
# * If
|
532
|
+
# * If your agent fails to be created, the response returns a list of
|
527
533
|
# `failureReasons` alongside a list of `recommendedActions` for you to
|
528
534
|
# troubleshoot.
|
529
535
|
#
|
536
|
+
# * The agent instructions will not be honored if your agent has only
|
537
|
+
# one knowledge base, uses default prompts, has no action group, and
|
538
|
+
# user input is disabled.
|
539
|
+
#
|
530
540
|
#
|
531
541
|
#
|
532
542
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-configure-memory.html
|
@@ -2017,6 +2027,12 @@ module Aws::BedrockAgent
|
|
2017
2027
|
# top_p: 1.0,
|
2018
2028
|
# },
|
2019
2029
|
# },
|
2030
|
+
# metadata: [
|
2031
|
+
# {
|
2032
|
+
# key: "PromptMetadataKey", # required
|
2033
|
+
# value: "PromptMetadataValue", # required
|
2034
|
+
# },
|
2035
|
+
# ],
|
2020
2036
|
# model_id: "PromptModelIdentifier",
|
2021
2037
|
# name: "PromptVariantName", # required
|
2022
2038
|
# template_configuration: {
|
@@ -2051,6 +2067,9 @@ module Aws::BedrockAgent
|
|
2051
2067
|
# resp.variants[0].inference_configuration.text.temperature #=> Float
|
2052
2068
|
# resp.variants[0].inference_configuration.text.top_k #=> Integer
|
2053
2069
|
# resp.variants[0].inference_configuration.text.top_p #=> Float
|
2070
|
+
# resp.variants[0].metadata #=> Array
|
2071
|
+
# resp.variants[0].metadata[0].key #=> String
|
2072
|
+
# resp.variants[0].metadata[0].value #=> String
|
2054
2073
|
# resp.variants[0].model_id #=> String
|
2055
2074
|
# resp.variants[0].name #=> String
|
2056
2075
|
# resp.variants[0].template_configuration.text.input_variables #=> Array
|
@@ -2145,6 +2164,9 @@ module Aws::BedrockAgent
|
|
2145
2164
|
# resp.variants[0].inference_configuration.text.temperature #=> Float
|
2146
2165
|
# resp.variants[0].inference_configuration.text.top_k #=> Integer
|
2147
2166
|
# resp.variants[0].inference_configuration.text.top_p #=> Float
|
2167
|
+
# resp.variants[0].metadata #=> Array
|
2168
|
+
# resp.variants[0].metadata[0].key #=> String
|
2169
|
+
# resp.variants[0].metadata[0].value #=> String
|
2148
2170
|
# resp.variants[0].model_id #=> String
|
2149
2171
|
# resp.variants[0].name #=> String
|
2150
2172
|
# resp.variants[0].template_configuration.text.input_variables #=> Array
|
@@ -3391,6 +3413,9 @@ module Aws::BedrockAgent
|
|
3391
3413
|
# resp.variants[0].inference_configuration.text.temperature #=> Float
|
3392
3414
|
# resp.variants[0].inference_configuration.text.top_k #=> Integer
|
3393
3415
|
# resp.variants[0].inference_configuration.text.top_p #=> Float
|
3416
|
+
# resp.variants[0].metadata #=> Array
|
3417
|
+
# resp.variants[0].metadata[0].key #=> String
|
3418
|
+
# resp.variants[0].metadata[0].value #=> String
|
3394
3419
|
# resp.variants[0].model_id #=> String
|
3395
3420
|
# resp.variants[0].name #=> String
|
3396
3421
|
# resp.variants[0].template_configuration.text.input_variables #=> Array
|
@@ -5566,6 +5591,12 @@ module Aws::BedrockAgent
|
|
5566
5591
|
# top_p: 1.0,
|
5567
5592
|
# },
|
5568
5593
|
# },
|
5594
|
+
# metadata: [
|
5595
|
+
# {
|
5596
|
+
# key: "PromptMetadataKey", # required
|
5597
|
+
# value: "PromptMetadataValue", # required
|
5598
|
+
# },
|
5599
|
+
# ],
|
5569
5600
|
# model_id: "PromptModelIdentifier",
|
5570
5601
|
# name: "PromptVariantName", # required
|
5571
5602
|
# template_configuration: {
|
@@ -5600,6 +5631,9 @@ module Aws::BedrockAgent
|
|
5600
5631
|
# resp.variants[0].inference_configuration.text.temperature #=> Float
|
5601
5632
|
# resp.variants[0].inference_configuration.text.top_k #=> Integer
|
5602
5633
|
# resp.variants[0].inference_configuration.text.top_p #=> Float
|
5634
|
+
# resp.variants[0].metadata #=> Array
|
5635
|
+
# resp.variants[0].metadata[0].key #=> String
|
5636
|
+
# resp.variants[0].metadata[0].value #=> String
|
5603
5637
|
# resp.variants[0].model_id #=> String
|
5604
5638
|
# resp.variants[0].name #=> String
|
5605
5639
|
# resp.variants[0].template_configuration.text.input_variables #=> Array
|
@@ -5635,7 +5669,7 @@ module Aws::BedrockAgent
|
|
5635
5669
|
tracer: tracer
|
5636
5670
|
)
|
5637
5671
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
5638
|
-
context[:gem_version] = '1.
|
5672
|
+
context[:gem_version] = '1.23.0'
|
5639
5673
|
Seahorse::Client::Request.new(handlers, context)
|
5640
5674
|
end
|
5641
5675
|
|
@@ -337,6 +337,10 @@ module Aws::BedrockAgent
|
|
337
337
|
PromptInputVariable = Shapes::StructureShape.new(name: 'PromptInputVariable')
|
338
338
|
PromptInputVariableName = Shapes::StringShape.new(name: 'PromptInputVariableName')
|
339
339
|
PromptInputVariablesList = Shapes::ListShape.new(name: 'PromptInputVariablesList')
|
340
|
+
PromptMetadataEntry = Shapes::StructureShape.new(name: 'PromptMetadataEntry')
|
341
|
+
PromptMetadataKey = Shapes::StringShape.new(name: 'PromptMetadataKey')
|
342
|
+
PromptMetadataList = Shapes::ListShape.new(name: 'PromptMetadataList')
|
343
|
+
PromptMetadataValue = Shapes::StringShape.new(name: 'PromptMetadataValue')
|
340
344
|
PromptModelIdentifier = Shapes::StringShape.new(name: 'PromptModelIdentifier')
|
341
345
|
PromptModelInferenceConfiguration = Shapes::StructureShape.new(name: 'PromptModelInferenceConfiguration')
|
342
346
|
PromptName = Shapes::StringShape.new(name: 'PromptName')
|
@@ -1589,6 +1593,12 @@ module Aws::BedrockAgent
|
|
1589
1593
|
|
1590
1594
|
PromptInputVariablesList.member = Shapes::ShapeRef.new(shape: PromptInputVariable)
|
1591
1595
|
|
1596
|
+
PromptMetadataEntry.add_member(:key, Shapes::ShapeRef.new(shape: PromptMetadataKey, required: true, location_name: "key"))
|
1597
|
+
PromptMetadataEntry.add_member(:value, Shapes::ShapeRef.new(shape: PromptMetadataValue, required: true, location_name: "value"))
|
1598
|
+
PromptMetadataEntry.struct_class = Types::PromptMetadataEntry
|
1599
|
+
|
1600
|
+
PromptMetadataList.member = Shapes::ShapeRef.new(shape: PromptMetadataEntry)
|
1601
|
+
|
1592
1602
|
PromptModelInferenceConfiguration.add_member(:max_tokens, Shapes::ShapeRef.new(shape: MaximumLength, location_name: "maxTokens"))
|
1593
1603
|
PromptModelInferenceConfiguration.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: StopSequences, location_name: "stopSequences"))
|
1594
1604
|
PromptModelInferenceConfiguration.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
|
@@ -1618,6 +1628,7 @@ module Aws::BedrockAgent
|
|
1618
1628
|
PromptTemplateConfiguration.struct_class = Types::PromptTemplateConfiguration
|
1619
1629
|
|
1620
1630
|
PromptVariant.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: PromptInferenceConfiguration, location_name: "inferenceConfiguration"))
|
1631
|
+
PromptVariant.add_member(:metadata, Shapes::ShapeRef.new(shape: PromptMetadataList, location_name: "metadata"))
|
1621
1632
|
PromptVariant.add_member(:model_id, Shapes::ShapeRef.new(shape: PromptModelIdentifier, location_name: "modelId"))
|
1622
1633
|
PromptVariant.add_member(:name, Shapes::ShapeRef.new(shape: PromptVariantName, required: true, location_name: "name"))
|
1623
1634
|
PromptVariant.add_member(:template_configuration, Shapes::ShapeRef.new(shape: PromptTemplateConfiguration, location_name: "templateConfiguration"))
|
@@ -5545,8 +5545,13 @@ module Aws::BedrockAgent
|
|
5545
5545
|
#
|
5546
5546
|
# * Anthropic Claude 3 Haiku - `anthropic.claude-3-haiku-20240307-v1:0`
|
5547
5547
|
#
|
5548
|
-
# You can get the ARN of a model with the
|
5549
|
-
# charges apply for the foundation model
|
5548
|
+
# You can get the ARN of a model with the [ListFoundationModels][1]
|
5549
|
+
# action. Standard model usage charges apply for the foundation model
|
5550
|
+
# parsing strategy.
|
5551
|
+
#
|
5552
|
+
#
|
5553
|
+
#
|
5554
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html
|
5550
5555
|
#
|
5551
5556
|
# @!attribute [rw] bedrock_foundation_model_configuration
|
5552
5557
|
# Settings for a foundation model used to parse documents for a data
|
@@ -5982,6 +5987,31 @@ module Aws::BedrockAgent
|
|
5982
5987
|
include Aws::Structure
|
5983
5988
|
end
|
5984
5989
|
|
5990
|
+
# Contains a key-value pair that defines a metadata tag and value to
|
5991
|
+
# attach to a prompt variant. For more information, see [Create a prompt
|
5992
|
+
# using Prompt management][1].
|
5993
|
+
#
|
5994
|
+
#
|
5995
|
+
#
|
5996
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html
|
5997
|
+
#
|
5998
|
+
# @!attribute [rw] key
|
5999
|
+
# The key of a metadata tag for a prompt variant.
|
6000
|
+
# @return [String]
|
6001
|
+
#
|
6002
|
+
# @!attribute [rw] value
|
6003
|
+
# The value of a metadata tag for a prompt variant.
|
6004
|
+
# @return [String]
|
6005
|
+
#
|
6006
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PromptMetadataEntry AWS API Documentation
|
6007
|
+
#
|
6008
|
+
class PromptMetadataEntry < Struct.new(
|
6009
|
+
:key,
|
6010
|
+
:value)
|
6011
|
+
SENSITIVE = [:key, :value]
|
6012
|
+
include Aws::Structure
|
6013
|
+
end
|
6014
|
+
|
5985
6015
|
# Contains inference configurations related to model inference for a
|
5986
6016
|
# prompt. For more information, see [Inference parameters][1].
|
5987
6017
|
#
|
@@ -6153,6 +6183,16 @@ module Aws::BedrockAgent
|
|
6153
6183
|
# Contains inference configurations for the prompt variant.
|
6154
6184
|
# @return [Types::PromptInferenceConfiguration]
|
6155
6185
|
#
|
6186
|
+
# @!attribute [rw] metadata
|
6187
|
+
# An array of objects, each containing a key-value pair that defines a
|
6188
|
+
# metadata tag and value to attach to a prompt variant. For more
|
6189
|
+
# information, see [Create a prompt using Prompt management][1].
|
6190
|
+
#
|
6191
|
+
#
|
6192
|
+
#
|
6193
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html
|
6194
|
+
# @return [Array<Types::PromptMetadataEntry>]
|
6195
|
+
#
|
6156
6196
|
# @!attribute [rw] model_id
|
6157
6197
|
# The unique identifier of the model with which to run inference on
|
6158
6198
|
# the prompt.
|
@@ -6174,11 +6214,12 @@ module Aws::BedrockAgent
|
|
6174
6214
|
#
|
6175
6215
|
class PromptVariant < Struct.new(
|
6176
6216
|
:inference_configuration,
|
6217
|
+
:metadata,
|
6177
6218
|
:model_id,
|
6178
6219
|
:name,
|
6179
6220
|
:template_configuration,
|
6180
6221
|
:template_type)
|
6181
|
-
SENSITIVE = []
|
6222
|
+
SENSITIVE = [:metadata]
|
6182
6223
|
include Aws::Structure
|
6183
6224
|
end
|
6184
6225
|
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -652,6 +652,12 @@ module Aws
|
|
652
652
|
top_p: ::Float?
|
653
653
|
}?
|
654
654
|
}?,
|
655
|
+
metadata: Array[
|
656
|
+
{
|
657
|
+
key: ::String,
|
658
|
+
value: ::String
|
659
|
+
},
|
660
|
+
]?,
|
655
661
|
model_id: ::String?,
|
656
662
|
name: ::String,
|
657
663
|
template_configuration: {
|
@@ -1779,6 +1785,12 @@ module Aws
|
|
1779
1785
|
top_p: ::Float?
|
1780
1786
|
}?
|
1781
1787
|
}?,
|
1788
|
+
metadata: Array[
|
1789
|
+
{
|
1790
|
+
key: ::String,
|
1791
|
+
value: ::String
|
1792
|
+
},
|
1793
|
+
]?,
|
1782
1794
|
model_id: ::String?,
|
1783
1795
|
name: ::String,
|
1784
1796
|
template_configuration: {
|
data/sig/types.rbs
CHANGED
@@ -1475,6 +1475,12 @@ module Aws::BedrockAgent
|
|
1475
1475
|
SENSITIVE: []
|
1476
1476
|
end
|
1477
1477
|
|
1478
|
+
class PromptMetadataEntry
|
1479
|
+
attr_accessor key: ::String
|
1480
|
+
attr_accessor value: ::String
|
1481
|
+
SENSITIVE: [:key, :value]
|
1482
|
+
end
|
1483
|
+
|
1478
1484
|
class PromptModelInferenceConfiguration
|
1479
1485
|
attr_accessor max_tokens: ::Integer
|
1480
1486
|
attr_accessor stop_sequences: ::Array[::String]
|
@@ -1514,11 +1520,12 @@ module Aws::BedrockAgent
|
|
1514
1520
|
|
1515
1521
|
class PromptVariant
|
1516
1522
|
attr_accessor inference_configuration: Types::PromptInferenceConfiguration
|
1523
|
+
attr_accessor metadata: ::Array[Types::PromptMetadataEntry]
|
1517
1524
|
attr_accessor model_id: ::String
|
1518
1525
|
attr_accessor name: ::String
|
1519
1526
|
attr_accessor template_configuration: Types::PromptTemplateConfiguration
|
1520
1527
|
attr_accessor template_type: ("TEXT")
|
1521
|
-
SENSITIVE: []
|
1528
|
+
SENSITIVE: [:metadata]
|
1522
1529
|
end
|
1523
1530
|
|
1524
1531
|
class RdsConfiguration
|
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.23.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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|