aws-sdk-bedrockagent 1.30.0 → 1.32.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 +82 -4
- data/lib/aws-sdk-bedrockagent/client_api.rb +5 -0
- data/lib/aws-sdk-bedrockagent/types.rb +109 -15
- data/lib/aws-sdk-bedrockagent.rb +1 -1
- data/sig/client.rbs +8 -0
- data/sig/types.rbs +11 -9
- 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: a3892968c836fec4fde72aad82318694406c74d9ce822bf65767a6a8c2ce15cf
|
4
|
+
data.tar.gz: 0d95cab751961625d9aad8810a9746c16201afaabaa629918bdb9b16cf9bdcec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 678cdaa1db1610b3bb6e8aa9328bcb499c1e1741d54353051a95b616d426e6e2e9a50b2004ab51136d75a947d1fa9da8d68863021949b1e89587c7c929b0dec0
|
7
|
+
data.tar.gz: e353b96bdb2182fa1139b0e294d4483c786842843446e6ac150301cd2d8ee865feefc702fe395fd03c42ef349df4d9700b0c70b67d4d4fe2bb71d07db434b2af
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.32.0 (2024-11-01)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Bedrock Knowledge Bases now supports using application inference profiles to increase throughput and improve resilience.
|
8
|
+
|
9
|
+
1.31.0 (2024-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support of new model types for Bedrock Agents, Adding inference profile support for Flows and Prompt Management, Adding new field to configure additional inference configurations for Flows and Prompt Management
|
13
|
+
|
4
14
|
1.30.0 (2024-10-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.32.0
|
@@ -574,9 +574,44 @@ module Aws::BedrockAgent
|
|
574
574
|
# A description of the agent.
|
575
575
|
#
|
576
576
|
# @option params [String] :foundation_model
|
577
|
-
# The
|
577
|
+
# The identifier for the model that you want to be used for
|
578
578
|
# orchestration by the agent you create.
|
579
579
|
#
|
580
|
+
# The `modelId` to provide depends on the type of model or throughput
|
581
|
+
# that you use:
|
582
|
+
#
|
583
|
+
# * If you use a base model, specify the model ID or its ARN. For a list
|
584
|
+
# of model IDs for base models, see [Amazon Bedrock base model IDs
|
585
|
+
# (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
586
|
+
#
|
587
|
+
# * If you use an inference profile, specify the inference profile ID or
|
588
|
+
# its ARN. For a list of inference profile IDs, see [Supported Regions
|
589
|
+
# and models for cross-region inference][2] in the Amazon Bedrock User
|
590
|
+
# Guide.
|
591
|
+
#
|
592
|
+
# * If you use a provisioned model, specify the ARN of the Provisioned
|
593
|
+
# Throughput. For more information, see [Run inference using a
|
594
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
595
|
+
#
|
596
|
+
# * If you use a custom model, first purchase Provisioned Throughput for
|
597
|
+
# it. Then specify the ARN of the resulting provisioned model. For
|
598
|
+
# more information, see [Use a custom model in Amazon Bedrock][4] in
|
599
|
+
# the Amazon Bedrock User Guide.
|
600
|
+
#
|
601
|
+
# * If you use an [imported model][5], specify the ARN of the imported
|
602
|
+
# model. You can get the model ARN from a successful call to
|
603
|
+
# [CreateModelImportJob][6] or from the Imported models page in the
|
604
|
+
# Amazon Bedrock console.
|
605
|
+
#
|
606
|
+
#
|
607
|
+
#
|
608
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
609
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
610
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
611
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
612
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
613
|
+
# [6]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
614
|
+
#
|
580
615
|
# @option params [Types::GuardrailConfiguration] :guardrail_configuration
|
581
616
|
# The unique Guardrail configuration assigned to the agent when it is
|
582
617
|
# created.
|
@@ -1388,6 +1423,8 @@ module Aws::BedrockAgent
|
|
1388
1423
|
# prompt: {
|
1389
1424
|
# source_configuration: { # required
|
1390
1425
|
# inline: {
|
1426
|
+
# additional_model_request_fields: {
|
1427
|
+
# },
|
1391
1428
|
# inference_configuration: {
|
1392
1429
|
# text: {
|
1393
1430
|
# max_tokens: 1,
|
@@ -2019,6 +2056,8 @@ module Aws::BedrockAgent
|
|
2019
2056
|
# },
|
2020
2057
|
# variants: [
|
2021
2058
|
# {
|
2059
|
+
# additional_model_request_fields: {
|
2060
|
+
# },
|
2022
2061
|
# inference_configuration: {
|
2023
2062
|
# text: {
|
2024
2063
|
# max_tokens: 1,
|
@@ -4425,8 +4464,43 @@ module Aws::BedrockAgent
|
|
4425
4464
|
# Specifies a new description of the agent.
|
4426
4465
|
#
|
4427
4466
|
# @option params [required, String] :foundation_model
|
4428
|
-
#
|
4429
|
-
# agent.
|
4467
|
+
# The identifier for the model that you want to be used for
|
4468
|
+
# orchestration by the agent you create.
|
4469
|
+
#
|
4470
|
+
# The `modelId` to provide depends on the type of model or throughput
|
4471
|
+
# that you use:
|
4472
|
+
#
|
4473
|
+
# * If you use a base model, specify the model ID or its ARN. For a list
|
4474
|
+
# of model IDs for base models, see [Amazon Bedrock base model IDs
|
4475
|
+
# (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
4476
|
+
#
|
4477
|
+
# * If you use an inference profile, specify the inference profile ID or
|
4478
|
+
# its ARN. For a list of inference profile IDs, see [Supported Regions
|
4479
|
+
# and models for cross-region inference][2] in the Amazon Bedrock User
|
4480
|
+
# Guide.
|
4481
|
+
#
|
4482
|
+
# * If you use a provisioned model, specify the ARN of the Provisioned
|
4483
|
+
# Throughput. For more information, see [Run inference using a
|
4484
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
4485
|
+
#
|
4486
|
+
# * If you use a custom model, first purchase Provisioned Throughput for
|
4487
|
+
# it. Then specify the ARN of the resulting provisioned model. For
|
4488
|
+
# more information, see [Use a custom model in Amazon Bedrock][4] in
|
4489
|
+
# the Amazon Bedrock User Guide.
|
4490
|
+
#
|
4491
|
+
# * If you use an [imported model][5], specify the ARN of the imported
|
4492
|
+
# model. You can get the model ARN from a successful call to
|
4493
|
+
# [CreateModelImportJob][6] or from the Imported models page in the
|
4494
|
+
# Amazon Bedrock console.
|
4495
|
+
#
|
4496
|
+
#
|
4497
|
+
#
|
4498
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
4499
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
4500
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
4501
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
4502
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
4503
|
+
# [6]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
4430
4504
|
#
|
4431
4505
|
# @option params [Types::GuardrailConfiguration] :guardrail_configuration
|
4432
4506
|
# The unique Guardrail configuration assigned to the agent when it is
|
@@ -5197,6 +5271,8 @@ module Aws::BedrockAgent
|
|
5197
5271
|
# prompt: {
|
5198
5272
|
# source_configuration: { # required
|
5199
5273
|
# inline: {
|
5274
|
+
# additional_model_request_fields: {
|
5275
|
+
# },
|
5200
5276
|
# inference_configuration: {
|
5201
5277
|
# text: {
|
5202
5278
|
# max_tokens: 1,
|
@@ -5633,6 +5709,8 @@ module Aws::BedrockAgent
|
|
5633
5709
|
# prompt_identifier: "PromptIdentifier", # required
|
5634
5710
|
# variants: [
|
5635
5711
|
# {
|
5712
|
+
# additional_model_request_fields: {
|
5713
|
+
# },
|
5636
5714
|
# inference_configuration: {
|
5637
5715
|
# text: {
|
5638
5716
|
# max_tokens: 1,
|
@@ -5718,7 +5796,7 @@ module Aws::BedrockAgent
|
|
5718
5796
|
tracer: tracer
|
5719
5797
|
)
|
5720
5798
|
context[:gem_name] = 'aws-sdk-bedrockagent'
|
5721
|
-
context[:gem_version] = '1.
|
5799
|
+
context[:gem_version] = '1.32.0'
|
5722
5800
|
Seahorse::Client::Request.new(handlers, context)
|
5723
5801
|
end
|
5724
5802
|
|
@@ -123,6 +123,7 @@ module Aws::BedrockAgent
|
|
123
123
|
Dimensions = Shapes::IntegerShape.new(name: 'Dimensions')
|
124
124
|
DisassociateAgentKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseRequest')
|
125
125
|
DisassociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseResponse')
|
126
|
+
Document = Shapes::DocumentShape.new(name: 'Document', document: true)
|
126
127
|
DraftVersion = Shapes::StringShape.new(name: 'DraftVersion')
|
127
128
|
EmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'EmbeddingModelConfiguration')
|
128
129
|
EnabledMemoryTypes = Shapes::ListShape.new(name: 'EnabledMemoryTypes')
|
@@ -1569,6 +1570,7 @@ module Aws::BedrockAgent
|
|
1569
1570
|
PromptFlowNodeConfiguration.add_member(:source_configuration, Shapes::ShapeRef.new(shape: PromptFlowNodeSourceConfiguration, required: true, location_name: "sourceConfiguration"))
|
1570
1571
|
PromptFlowNodeConfiguration.struct_class = Types::PromptFlowNodeConfiguration
|
1571
1572
|
|
1573
|
+
PromptFlowNodeInlineConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
1572
1574
|
PromptFlowNodeInlineConfiguration.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: PromptInferenceConfiguration, location_name: "inferenceConfiguration"))
|
1573
1575
|
PromptFlowNodeInlineConfiguration.add_member(:model_id, Shapes::ShapeRef.new(shape: PromptModelIdentifier, required: true, location_name: "modelId"))
|
1574
1576
|
PromptFlowNodeInlineConfiguration.add_member(:template_configuration, Shapes::ShapeRef.new(shape: PromptTemplateConfiguration, required: true, location_name: "templateConfiguration"))
|
@@ -1630,6 +1632,7 @@ module Aws::BedrockAgent
|
|
1630
1632
|
PromptTemplateConfiguration.add_member_subclass(:unknown, Types::PromptTemplateConfiguration::Unknown)
|
1631
1633
|
PromptTemplateConfiguration.struct_class = Types::PromptTemplateConfiguration
|
1632
1634
|
|
1635
|
+
PromptVariant.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
|
1633
1636
|
PromptVariant.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: PromptInferenceConfiguration, location_name: "inferenceConfiguration"))
|
1634
1637
|
PromptVariant.add_member(:metadata, Shapes::ShapeRef.new(shape: PromptMetadataList, location_name: "metadata"))
|
1635
1638
|
PromptVariant.add_member(:model_id, Shapes::ShapeRef.new(shape: PromptModelIdentifier, location_name: "modelId"))
|
@@ -1994,9 +1997,11 @@ module Aws::BedrockAgent
|
|
1994
1997
|
|
1995
1998
|
api.metadata = {
|
1996
1999
|
"apiVersion" => "2023-06-05",
|
2000
|
+
"auth" => ["aws.auth#sigv4"],
|
1997
2001
|
"endpointPrefix" => "bedrock-agent",
|
1998
2002
|
"jsonVersion" => "1.1",
|
1999
2003
|
"protocol" => "rest-json",
|
2004
|
+
"protocols" => ["rest-json"],
|
2000
2005
|
"serviceFullName" => "Agents for Amazon Bedrock",
|
2001
2006
|
"serviceId" => "Bedrock Agent",
|
2002
2007
|
"signatureVersion" => "v4",
|
@@ -1085,7 +1085,7 @@ module Aws::BedrockAgent
|
|
1085
1085
|
#
|
1086
1086
|
class ConditionFlowNodeConfiguration < Struct.new(
|
1087
1087
|
:conditions)
|
1088
|
-
SENSITIVE = [
|
1088
|
+
SENSITIVE = []
|
1089
1089
|
include Aws::Structure
|
1090
1090
|
end
|
1091
1091
|
|
@@ -1409,8 +1409,43 @@ module Aws::BedrockAgent
|
|
1409
1409
|
# @return [String]
|
1410
1410
|
#
|
1411
1411
|
# @!attribute [rw] foundation_model
|
1412
|
-
# The
|
1413
|
-
#
|
1412
|
+
# The identifier for the model that you want to be used for
|
1413
|
+
# orchestration by the agent you create.
|
1414
|
+
#
|
1415
|
+
# The `modelId` to provide depends on the type of model or throughput
|
1416
|
+
# that you use:
|
1417
|
+
#
|
1418
|
+
# * If you use a base model, specify the model ID or its ARN. For a
|
1419
|
+
# list of model IDs for base models, see [Amazon Bedrock base model
|
1420
|
+
# IDs (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
1421
|
+
#
|
1422
|
+
# * If you use an inference profile, specify the inference profile ID
|
1423
|
+
# or its ARN. For a list of inference profile IDs, see [Supported
|
1424
|
+
# Regions and models for cross-region inference][2] in the Amazon
|
1425
|
+
# Bedrock User Guide.
|
1426
|
+
#
|
1427
|
+
# * If you use a provisioned model, specify the ARN of the Provisioned
|
1428
|
+
# Throughput. For more information, see [Run inference using a
|
1429
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
1430
|
+
#
|
1431
|
+
# * If you use a custom model, first purchase Provisioned Throughput
|
1432
|
+
# for it. Then specify the ARN of the resulting provisioned model.
|
1433
|
+
# For more information, see [Use a custom model in Amazon
|
1434
|
+
# Bedrock][4] in the Amazon Bedrock User Guide.
|
1435
|
+
#
|
1436
|
+
# * If you use an [imported model][5], specify the ARN of the imported
|
1437
|
+
# model. You can get the model ARN from a successful call to
|
1438
|
+
# [CreateModelImportJob][6] or from the Imported models page in the
|
1439
|
+
# Amazon Bedrock console.
|
1440
|
+
#
|
1441
|
+
#
|
1442
|
+
#
|
1443
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
1444
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
1445
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
1446
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
1447
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
1448
|
+
# [6]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
1414
1449
|
# @return [String]
|
1415
1450
|
#
|
1416
1451
|
# @!attribute [rw] guardrail_configuration
|
@@ -1724,7 +1759,7 @@ module Aws::BedrockAgent
|
|
1724
1759
|
:execution_role_arn,
|
1725
1760
|
:name,
|
1726
1761
|
:tags)
|
1727
|
-
SENSITIVE = []
|
1762
|
+
SENSITIVE = [:definition]
|
1728
1763
|
include Aws::Structure
|
1729
1764
|
end
|
1730
1765
|
|
@@ -1796,7 +1831,7 @@ module Aws::BedrockAgent
|
|
1796
1831
|
:status,
|
1797
1832
|
:updated_at,
|
1798
1833
|
:version)
|
1799
|
-
SENSITIVE = []
|
1834
|
+
SENSITIVE = [:definition]
|
1800
1835
|
include Aws::Structure
|
1801
1836
|
end
|
1802
1837
|
|
@@ -1893,7 +1928,7 @@ module Aws::BedrockAgent
|
|
1893
1928
|
:name,
|
1894
1929
|
:status,
|
1895
1930
|
:version)
|
1896
|
-
SENSITIVE = []
|
1931
|
+
SENSITIVE = [:definition]
|
1897
1932
|
include Aws::Structure
|
1898
1933
|
end
|
1899
1934
|
|
@@ -3059,7 +3094,7 @@ module Aws::BedrockAgent
|
|
3059
3094
|
class FlowDefinition < Struct.new(
|
3060
3095
|
:connections,
|
3061
3096
|
:nodes)
|
3062
|
-
SENSITIVE = [
|
3097
|
+
SENSITIVE = []
|
3063
3098
|
include Aws::Structure
|
3064
3099
|
end
|
3065
3100
|
|
@@ -3865,7 +3900,7 @@ module Aws::BedrockAgent
|
|
3865
3900
|
:updated_at,
|
3866
3901
|
:validations,
|
3867
3902
|
:version)
|
3868
|
-
SENSITIVE = []
|
3903
|
+
SENSITIVE = [:definition]
|
3869
3904
|
include Aws::Structure
|
3870
3905
|
end
|
3871
3906
|
|
@@ -3947,7 +3982,7 @@ module Aws::BedrockAgent
|
|
3947
3982
|
:name,
|
3948
3983
|
:status,
|
3949
3984
|
:version)
|
3950
|
-
SENSITIVE = []
|
3985
|
+
SENSITIVE = [:definition]
|
3951
3986
|
include Aws::Structure
|
3952
3987
|
end
|
3953
3988
|
|
@@ -5896,6 +5931,17 @@ module Aws::BedrockAgent
|
|
5896
5931
|
|
5897
5932
|
# Contains configurations for a prompt defined inline in the node.
|
5898
5933
|
#
|
5934
|
+
# @!attribute [rw] additional_model_request_fields
|
5935
|
+
# Contains model-specific inference configurations that aren't in the
|
5936
|
+
# `inferenceConfiguration` field. To see model-specific inference
|
5937
|
+
# parameters, see [Inference request parameters and response fields
|
5938
|
+
# for foundation models][1].
|
5939
|
+
#
|
5940
|
+
#
|
5941
|
+
#
|
5942
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
|
5943
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
5944
|
+
#
|
5899
5945
|
# @!attribute [rw] inference_configuration
|
5900
5946
|
# Contains inference configurations for the prompt.
|
5901
5947
|
# @return [Types::PromptInferenceConfiguration]
|
@@ -5921,6 +5967,7 @@ module Aws::BedrockAgent
|
|
5921
5967
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PromptFlowNodeInlineConfiguration AWS API Documentation
|
5922
5968
|
#
|
5923
5969
|
class PromptFlowNodeInlineConfiguration < Struct.new(
|
5970
|
+
:additional_model_request_fields,
|
5924
5971
|
:inference_configuration,
|
5925
5972
|
:model_id,
|
5926
5973
|
:template_configuration,
|
@@ -6197,6 +6244,17 @@ module Aws::BedrockAgent
|
|
6197
6244
|
|
6198
6245
|
# Contains details about a variant of the prompt.
|
6199
6246
|
#
|
6247
|
+
# @!attribute [rw] additional_model_request_fields
|
6248
|
+
# Contains model-specific inference configurations that aren't in the
|
6249
|
+
# `inferenceConfiguration` field. To see model-specific inference
|
6250
|
+
# parameters, see [Inference request parameters and response fields
|
6251
|
+
# for foundation models][1].
|
6252
|
+
#
|
6253
|
+
#
|
6254
|
+
#
|
6255
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
|
6256
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
6257
|
+
#
|
6200
6258
|
# @!attribute [rw] inference_configuration
|
6201
6259
|
# Contains inference configurations for the prompt variant.
|
6202
6260
|
# @return [Types::PromptInferenceConfiguration]
|
@@ -6235,6 +6293,7 @@ module Aws::BedrockAgent
|
|
6235
6293
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PromptVariant AWS API Documentation
|
6236
6294
|
#
|
6237
6295
|
class PromptVariant < Struct.new(
|
6296
|
+
:additional_model_request_fields,
|
6238
6297
|
:inference_configuration,
|
6239
6298
|
:metadata,
|
6240
6299
|
:model_id,
|
@@ -7307,8 +7366,43 @@ module Aws::BedrockAgent
|
|
7307
7366
|
# @return [String]
|
7308
7367
|
#
|
7309
7368
|
# @!attribute [rw] foundation_model
|
7310
|
-
#
|
7311
|
-
# agent.
|
7369
|
+
# The identifier for the model that you want to be used for
|
7370
|
+
# orchestration by the agent you create.
|
7371
|
+
#
|
7372
|
+
# The `modelId` to provide depends on the type of model or throughput
|
7373
|
+
# that you use:
|
7374
|
+
#
|
7375
|
+
# * If you use a base model, specify the model ID or its ARN. For a
|
7376
|
+
# list of model IDs for base models, see [Amazon Bedrock base model
|
7377
|
+
# IDs (on-demand throughput)][1] in the Amazon Bedrock User Guide.
|
7378
|
+
#
|
7379
|
+
# * If you use an inference profile, specify the inference profile ID
|
7380
|
+
# or its ARN. For a list of inference profile IDs, see [Supported
|
7381
|
+
# Regions and models for cross-region inference][2] in the Amazon
|
7382
|
+
# Bedrock User Guide.
|
7383
|
+
#
|
7384
|
+
# * If you use a provisioned model, specify the ARN of the Provisioned
|
7385
|
+
# Throughput. For more information, see [Run inference using a
|
7386
|
+
# Provisioned Throughput][3] in the Amazon Bedrock User Guide.
|
7387
|
+
#
|
7388
|
+
# * If you use a custom model, first purchase Provisioned Throughput
|
7389
|
+
# for it. Then specify the ARN of the resulting provisioned model.
|
7390
|
+
# For more information, see [Use a custom model in Amazon
|
7391
|
+
# Bedrock][4] in the Amazon Bedrock User Guide.
|
7392
|
+
#
|
7393
|
+
# * If you use an [imported model][5], specify the ARN of the imported
|
7394
|
+
# model. You can get the model ARN from a successful call to
|
7395
|
+
# [CreateModelImportJob][6] or from the Imported models page in the
|
7396
|
+
# Amazon Bedrock console.
|
7397
|
+
#
|
7398
|
+
#
|
7399
|
+
#
|
7400
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns
|
7401
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html
|
7402
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html
|
7403
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html
|
7404
|
+
# [5]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
|
7405
|
+
# [6]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
|
7312
7406
|
# @return [String]
|
7313
7407
|
#
|
7314
7408
|
# @!attribute [rw] guardrail_configuration
|
@@ -7555,7 +7649,7 @@ module Aws::BedrockAgent
|
|
7555
7649
|
:execution_role_arn,
|
7556
7650
|
:flow_identifier,
|
7557
7651
|
:name)
|
7558
|
-
SENSITIVE = []
|
7652
|
+
SENSITIVE = [:definition]
|
7559
7653
|
include Aws::Structure
|
7560
7654
|
end
|
7561
7655
|
|
@@ -7628,7 +7722,7 @@ module Aws::BedrockAgent
|
|
7628
7722
|
:status,
|
7629
7723
|
:updated_at,
|
7630
7724
|
:version)
|
7631
|
-
SENSITIVE = []
|
7725
|
+
SENSITIVE = [:definition]
|
7632
7726
|
include Aws::Structure
|
7633
7727
|
end
|
7634
7728
|
|
@@ -7878,8 +7972,8 @@ module Aws::BedrockAgent
|
|
7878
7972
|
# the knowledge base.
|
7879
7973
|
#
|
7880
7974
|
# @!attribute [rw] embedding_model_arn
|
7881
|
-
# The Amazon Resource Name (ARN) of the model
|
7882
|
-
# embeddings for the knowledge base.
|
7975
|
+
# The Amazon Resource Name (ARN) of the model or inference profile
|
7976
|
+
# used to create vector embeddings for the knowledge base.
|
7883
7977
|
# @return [String]
|
7884
7978
|
#
|
7885
7979
|
# @!attribute [rw] embedding_model_configuration
|
data/lib/aws-sdk-bedrockagent.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -426,6 +426,8 @@ module Aws
|
|
426
426
|
prompt: {
|
427
427
|
source_configuration: {
|
428
428
|
inline: {
|
429
|
+
additional_model_request_fields: {
|
430
|
+
}?,
|
429
431
|
inference_configuration: {
|
430
432
|
text: {
|
431
433
|
max_tokens: ::Integer?,
|
@@ -643,6 +645,8 @@ module Aws
|
|
643
645
|
?tags: Hash[::String, ::String],
|
644
646
|
?variants: Array[
|
645
647
|
{
|
648
|
+
additional_model_request_fields: {
|
649
|
+
}?,
|
646
650
|
inference_configuration: {
|
647
651
|
text: {
|
648
652
|
max_tokens: ::Integer?,
|
@@ -1593,6 +1597,8 @@ module Aws
|
|
1593
1597
|
prompt: {
|
1594
1598
|
source_configuration: {
|
1595
1599
|
inline: {
|
1600
|
+
additional_model_request_fields: {
|
1601
|
+
}?,
|
1596
1602
|
inference_configuration: {
|
1597
1603
|
text: {
|
1598
1604
|
max_tokens: ::Integer?,
|
@@ -1786,6 +1792,8 @@ module Aws
|
|
1786
1792
|
prompt_identifier: ::String,
|
1787
1793
|
?variants: Array[
|
1788
1794
|
{
|
1795
|
+
additional_model_request_fields: {
|
1796
|
+
}?,
|
1789
1797
|
inference_configuration: {
|
1790
1798
|
text: {
|
1791
1799
|
max_tokens: ::Integer?,
|
data/sig/types.rbs
CHANGED
@@ -237,7 +237,7 @@ module Aws::BedrockAgent
|
|
237
237
|
|
238
238
|
class ConditionFlowNodeConfiguration
|
239
239
|
attr_accessor conditions: ::Array[Types::FlowCondition]
|
240
|
-
SENSITIVE: [
|
240
|
+
SENSITIVE: []
|
241
241
|
end
|
242
242
|
|
243
243
|
class ConflictException
|
@@ -372,7 +372,7 @@ module Aws::BedrockAgent
|
|
372
372
|
attr_accessor execution_role_arn: ::String
|
373
373
|
attr_accessor name: ::String
|
374
374
|
attr_accessor tags: ::Hash[::String, ::String]
|
375
|
-
SENSITIVE: []
|
375
|
+
SENSITIVE: [:definition]
|
376
376
|
end
|
377
377
|
|
378
378
|
class CreateFlowResponse
|
@@ -387,7 +387,7 @@ module Aws::BedrockAgent
|
|
387
387
|
attr_accessor status: ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
|
388
388
|
attr_accessor updated_at: ::Time
|
389
389
|
attr_accessor version: ::String
|
390
|
-
SENSITIVE: []
|
390
|
+
SENSITIVE: [:definition]
|
391
391
|
end
|
392
392
|
|
393
393
|
class CreateFlowVersionRequest
|
@@ -408,7 +408,7 @@ module Aws::BedrockAgent
|
|
408
408
|
attr_accessor name: ::String
|
409
409
|
attr_accessor status: ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
|
410
410
|
attr_accessor version: ::String
|
411
|
-
SENSITIVE: []
|
411
|
+
SENSITIVE: [:definition]
|
412
412
|
end
|
413
413
|
|
414
414
|
class CreateKnowledgeBaseRequest
|
@@ -719,7 +719,7 @@ module Aws::BedrockAgent
|
|
719
719
|
class FlowDefinition
|
720
720
|
attr_accessor connections: ::Array[Types::FlowConnection]
|
721
721
|
attr_accessor nodes: ::Array[Types::FlowNode]
|
722
|
-
SENSITIVE: [
|
722
|
+
SENSITIVE: []
|
723
723
|
end
|
724
724
|
|
725
725
|
class FlowNode
|
@@ -937,7 +937,7 @@ module Aws::BedrockAgent
|
|
937
937
|
attr_accessor updated_at: ::Time
|
938
938
|
attr_accessor validations: ::Array[Types::FlowValidation]
|
939
939
|
attr_accessor version: ::String
|
940
|
-
SENSITIVE: []
|
940
|
+
SENSITIVE: [:definition]
|
941
941
|
end
|
942
942
|
|
943
943
|
class GetFlowVersionRequest
|
@@ -957,7 +957,7 @@ module Aws::BedrockAgent
|
|
957
957
|
attr_accessor name: ::String
|
958
958
|
attr_accessor status: ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
|
959
959
|
attr_accessor version: ::String
|
960
|
-
SENSITIVE: []
|
960
|
+
SENSITIVE: [:definition]
|
961
961
|
end
|
962
962
|
|
963
963
|
class GetIngestionJobRequest
|
@@ -1433,6 +1433,7 @@ module Aws::BedrockAgent
|
|
1433
1433
|
end
|
1434
1434
|
|
1435
1435
|
class PromptFlowNodeInlineConfiguration
|
1436
|
+
attr_accessor additional_model_request_fields: untyped
|
1436
1437
|
attr_accessor inference_configuration: Types::PromptInferenceConfiguration
|
1437
1438
|
attr_accessor model_id: ::String
|
1438
1439
|
attr_accessor template_configuration: Types::PromptTemplateConfiguration
|
@@ -1518,6 +1519,7 @@ module Aws::BedrockAgent
|
|
1518
1519
|
end
|
1519
1520
|
|
1520
1521
|
class PromptVariant
|
1522
|
+
attr_accessor additional_model_request_fields: untyped
|
1521
1523
|
attr_accessor inference_configuration: Types::PromptInferenceConfiguration
|
1522
1524
|
attr_accessor metadata: ::Array[Types::PromptMetadataEntry]
|
1523
1525
|
attr_accessor model_id: ::String
|
@@ -1877,7 +1879,7 @@ module Aws::BedrockAgent
|
|
1877
1879
|
attr_accessor execution_role_arn: ::String
|
1878
1880
|
attr_accessor flow_identifier: ::String
|
1879
1881
|
attr_accessor name: ::String
|
1880
|
-
SENSITIVE: []
|
1882
|
+
SENSITIVE: [:definition]
|
1881
1883
|
end
|
1882
1884
|
|
1883
1885
|
class UpdateFlowResponse
|
@@ -1892,7 +1894,7 @@ module Aws::BedrockAgent
|
|
1892
1894
|
attr_accessor status: ("Failed" | "Prepared" | "Preparing" | "NotPrepared")
|
1893
1895
|
attr_accessor updated_at: ::Time
|
1894
1896
|
attr_accessor version: ::String
|
1895
|
-
SENSITIVE: []
|
1897
|
+
SENSITIVE: [:definition]
|
1896
1898
|
end
|
1897
1899
|
|
1898
1900
|
class UpdateKnowledgeBaseRequest
|
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.32.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-
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for Agents for Amazon Bedrock. This gem is part
|
48
48
|
of the AWS SDK for Ruby.
|
49
49
|
email:
|