aws-sdk-bedrockagent 1.29.0 → 1.31.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: 9d871867ec06b77383fb775823ce828fa32010851e1c1f59da3a78edcf6dc24f
4
- data.tar.gz: e8e657baf61533d331c41068d5a83c4406fe5d7d3d8d80751e667cff4d994ca2
3
+ metadata.gz: 3c5017774fd05156046ba95d0271eb22afdadb89d5ce09923adb3c9e088a10f0
4
+ data.tar.gz: ef357bb6f2c1911aad3893b1fad476338fbdf3799f11ac5b6e605e66efd0c67c
5
5
  SHA512:
6
- metadata.gz: 17571e080dac909f81c1c1dd7b7983d7f65d39f12c45864c117ce40d7de51082d65d87f543ad8551d3192309d1555c4b125222fb9be7fe6c3b66eec2008f68d3
7
- data.tar.gz: cda09c3a4f02ca485ac5877d7fa418ec0d02209159be8c39edd03c179e08e6aac8aafd6ba8d3ff65023c77a5d385d87dfd96bd662a282bb682389aab17aad192
6
+ metadata.gz: 64c880652c3995b79ecc7f9d85fe225fe1ff5e60ad994b37d74183f3f4f8d011fe09372707c42758ea03ee63a2435afbf54bd21eae092370d6e6abfa9d99da3e
7
+ data.tar.gz: 2b6b178ae1eafc785fdfddd1635a9704958aa0df0dae5bc714df461206ec71537b362264db6d8b0e6e8cd940faff837b42ea5ded29aaa4dbd784831d76113e66
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2024-10-25)
5
+ ------------------
6
+
7
+ * 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
8
+
9
+ 1.30.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.29.0 (2024-10-17)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.29.0
1
+ 1.31.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 Amazon Resource Name (ARN) of the foundation model to be used for
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
- # Specifies a new foundation model to be used for orchestration by the
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.29.0'
5799
+ context[:gem_version] = '1.31.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"))
@@ -52,15 +52,18 @@ module Aws::BedrockAgent
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end