aws-sdk-bedrockagentruntime 1.42.0 → 1.44.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49c554520a7e83f9259fe1f4035560e859825944a9a8588cd688db5853815bcd
4
- data.tar.gz: 427fae37f237a973766e7b2d2ffa8202bd36cde041450fb362e560ac2fa2c260
3
+ metadata.gz: 16c36396758dc6f6ea3283366236852eded24e4f3cd9306c996a2841a48f06e2
4
+ data.tar.gz: f2a25128523d2222c20399a9d204c3bf044191e71a2342df4a09b4adf2706384
5
5
  SHA512:
6
- metadata.gz: 0a7a3821f302f9161070fab4b6e8d12462ebdd4997c176603130872efb3baaf03dec02c0d5e91bb872d4fd8e51dce8e9c57d6f18fd1afad5a101a93a05e40820
7
- data.tar.gz: 83f50688f178d46a69c274f540acb49344ca7fc6b5e1e8b8161c135d5c7248d1423c229a8691b7ff091bd222c4b2f58885015eb96e72d9139601c47e21042b55
6
+ metadata.gz: 8bac7eaae021af8b26e99b3dae62f2a58dd23a65cfb908602d371cfa3bfe9777e8ee2360ec0074332102306a8019297e61f9087af8fbd0e4f404982206983f4a
7
+ data.tar.gz: f937d922f34f764c8e06d251ee13c1a1993a487551d7ecedc22800020519651d5a48daeb649bcf7a75b528a9e536e0ba5e3e139e4da8ecaa6e55b217446b398e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.44.0 (2025-02-12)
5
+ ------------------
6
+
7
+ * Feature - This releases adds the additionalModelRequestFields field to the InvokeInlineAgent operation. Use additionalModelRequestFields to specify additional inference parameters for a model beyond the base inference parameters.
8
+
9
+ 1.43.0 (2025-02-06)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.42.0 (2025-01-31)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.44.0
@@ -2523,6 +2523,8 @@ module Aws::BedrockAgentRuntime
2523
2523
  # override_lambda: "LambdaResourceArn",
2524
2524
  # prompt_configurations: [ # required
2525
2525
  # {
2526
+ # additional_model_request_fields: {
2527
+ # },
2526
2528
  # base_prompt_template: "BasePromptTemplate",
2527
2529
  # inference_configuration: {
2528
2530
  # maximum_length: 1,
@@ -4385,7 +4387,7 @@ module Aws::BedrockAgentRuntime
4385
4387
  tracer: tracer
4386
4388
  )
4387
4389
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4388
- context[:gem_version] = '1.42.0'
4390
+ context[:gem_version] = '1.44.0'
4389
4391
  Seahorse::Client::Request.new(handlers, context)
4390
4392
  end
4391
4393
 
@@ -1327,6 +1327,7 @@ module Aws::BedrockAgentRuntime
1327
1327
  PreProcessingTrace.add_member_subclass(:unknown, Types::PreProcessingTrace::Unknown)
1328
1328
  PreProcessingTrace.struct_class = Types::PreProcessingTrace
1329
1329
 
1330
+ PromptConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
1330
1331
  PromptConfiguration.add_member(:base_prompt_template, Shapes::ShapeRef.new(shape: BasePromptTemplate, location_name: "basePromptTemplate"))
1331
1332
  PromptConfiguration.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
1332
1333
  PromptConfiguration.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
@@ -10,40 +10,36 @@
10
10
  module Aws::BedrockAgentRuntime
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
- use_dual_stack = parameters.use_dual_stack
15
- use_fips = parameters.use_fips
16
- endpoint = parameters.endpoint
17
- if Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
- return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
33
  end
38
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
35
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
37
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
41
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://bedrock-agent-runtime.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
43
  end
48
44
  end
49
45
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -4287,6 +4287,16 @@ module Aws::BedrockAgentRuntime
4287
4287
  #
4288
4288
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html
4289
4289
  #
4290
+ # @!attribute [rw] additional_model_request_fields
4291
+ # If the Converse or ConverseStream operations support the model,
4292
+ # `additionalModelRequestFields` contains additional inference
4293
+ # parameters, beyond the base set of inference parameters in the
4294
+ # `inferenceConfiguration` field.
4295
+ #
4296
+ # For more information, see *Inference request parameters and response
4297
+ # fields for foundation models* in the Amazon Bedrock user guide.
4298
+ # @return [Hash,Array,String,Numeric,Boolean]
4299
+ #
4290
4300
  # @!attribute [rw] base_prompt_template
4291
4301
  # Defines the prompt template with which to replace the default prompt
4292
4302
  # template. You can use placeholder variables in the base prompt
@@ -4354,6 +4364,7 @@ module Aws::BedrockAgentRuntime
4354
4364
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/PromptConfiguration AWS API Documentation
4355
4365
  #
4356
4366
  class PromptConfiguration < Struct.new(
4367
+ :additional_model_request_fields,
4357
4368
  :base_prompt_template,
4358
4369
  :inference_configuration,
4359
4370
  :parser_mode,
@@ -55,7 +55,7 @@ module Aws::BedrockAgentRuntime
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
57
57
 
58
- GEM_VERSION = '1.42.0'
58
+ GEM_VERSION = '1.44.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -576,6 +576,8 @@ module Aws
576
576
  override_lambda: ::String?,
577
577
  prompt_configurations: Array[
578
578
  {
579
+ additional_model_request_fields: {
580
+ }?,
579
581
  base_prompt_template: ::String?,
580
582
  inference_configuration: {
581
583
  maximum_length: ::Integer?,
data/sig/types.rbs CHANGED
@@ -1155,6 +1155,7 @@ module Aws::BedrockAgentRuntime
1155
1155
  end
1156
1156
 
1157
1157
  class PromptConfiguration
1158
+ attr_accessor additional_model_request_fields: untyped
1158
1159
  attr_accessor base_prompt_template: ::String
1159
1160
  attr_accessor inference_configuration: Types::InferenceConfiguration
1160
1161
  attr_accessor parser_mode: ("DEFAULT" | "OVERRIDDEN")
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.42.0
4
+ version: 1.44.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: 2025-01-31 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core