aws-sdk-bedrockagentruntime 1.41.0 → 1.43.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: 8fa1e662a49c9a1f9c3cb769cb7e767b8372ffa0307cfc29f876e16459e1ad8a
4
- data.tar.gz: e366d900741f248f0b6723721e8c6fc22bed8fbb91359eaa1dbaf53b2c4d085b
3
+ metadata.gz: 12e05c1f3688bcbfb8821c217604125a41a6d40f9b64ba1ee98ae57f8b5e2c94
4
+ data.tar.gz: '085ea961bf54a7ac0fd00c690f71a74176dcd830b4923da1dab34a417d01ac2f'
5
5
  SHA512:
6
- metadata.gz: 87d3ecf4841e471f13bff33dccd9dadc9b5c6bea10b2044bd3a12959ae78912db7cb20e8f3f681e1fd756becf44bdd46dfdb4b72ad4798ee39d44a0c10d8925b
7
- data.tar.gz: 204b0dc932d78525210498b6a5dfcd70cd0771ebe40ee341c1e8a013a1df9fd0c626a148d1ba820ba9171f649580af6ccda7c6d84841a8b995291b557d625465
6
+ metadata.gz: 3291fb3f9ea269fd83e4ac7a58cf8cd3371f6c5858492fa00683a0b0a5863e1d16fe2bb1fb35e4e4099d8aeb6d57e091b887ecc5f223375d863f83581e84f9b2
7
+ data.tar.gz: f3f743ac8c22c09f1b13b6860c87482bd3d8081985bf5d44b793aa412b9db72e845251f4a8499c94a79d26cddd23985cf089c8af91330b38fd7770b4c7a3b761
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2025-02-06)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.42.0 (2025-01-31)
10
+ ------------------
11
+
12
+ * Feature - This change is to deprecate the existing citation field under RetrieveAndGenerateStream API response in lieu of GeneratedResponsePart and RetrievedReferences
13
+
4
14
  1.41.0 (2025-01-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -4289,6 +4289,27 @@ module Aws::BedrockAgentRuntime
4289
4289
  # event.citation.retrieved_references[0].location.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "KENDRA", "SQL"
4290
4290
  # event.citation.retrieved_references[0].location.web_location.url #=> String
4291
4291
  # event.citation.retrieved_references[0].metadata #=> Hash
4292
+ # event.generated_response_part.text_response_part.span.end #=> Integer
4293
+ # event.generated_response_part.text_response_part.span.start #=> Integer
4294
+ # event.generated_response_part.text_response_part.text #=> String
4295
+ # event.retrieved_references #=> Array
4296
+ # event.retrieved_references[0].content.byte_content #=> String
4297
+ # event.retrieved_references[0].content.row #=> Array
4298
+ # event.retrieved_references[0].content.row[0].column_name #=> String
4299
+ # event.retrieved_references[0].content.row[0].column_value #=> String
4300
+ # event.retrieved_references[0].content.row[0].type #=> String, one of "BLOB", "BOOLEAN", "DOUBLE", "NULL", "LONG", "STRING"
4301
+ # event.retrieved_references[0].content.text #=> String
4302
+ # event.retrieved_references[0].content.type #=> String, one of "TEXT", "IMAGE", "ROW"
4303
+ # event.retrieved_references[0].location.confluence_location.url #=> String
4304
+ # event.retrieved_references[0].location.custom_document_location.id #=> String
4305
+ # event.retrieved_references[0].location.kendra_document_location.uri #=> String
4306
+ # event.retrieved_references[0].location.s3_location.uri #=> String
4307
+ # event.retrieved_references[0].location.salesforce_location.url #=> String
4308
+ # event.retrieved_references[0].location.share_point_location.url #=> String
4309
+ # event.retrieved_references[0].location.sql_location.query #=> String
4310
+ # event.retrieved_references[0].location.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "KENDRA", "SQL"
4311
+ # event.retrieved_references[0].location.web_location.url #=> String
4312
+ # event.retrieved_references[0].metadata #=> Hash
4292
4313
  #
4293
4314
  # For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
4294
4315
  # event.message #=> String
@@ -4364,7 +4385,7 @@ module Aws::BedrockAgentRuntime
4364
4385
  tracer: tracer
4365
4386
  )
4366
4387
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4367
- context[:gem_version] = '1.41.0'
4388
+ context[:gem_version] = '1.43.0'
4368
4389
  Seahorse::Client::Request.new(handlers, context)
4369
4390
  end
4370
4391
 
@@ -577,7 +577,9 @@ module Aws::BedrockAgentRuntime
577
577
  Citation.add_member(:retrieved_references, Shapes::ShapeRef.new(shape: RetrievedReferences, location_name: "retrievedReferences"))
578
578
  Citation.struct_class = Types::Citation
579
579
 
580
- CitationEvent.add_member(:citation, Shapes::ShapeRef.new(shape: Citation, location_name: "citation"))
580
+ CitationEvent.add_member(:citation, Shapes::ShapeRef.new(shape: Citation, deprecated: true, location_name: "citation", metadata: {"deprecatedMessage"=>"Citation is deprecated. Please use GeneratedResponsePart and RetrievedReferences for citation event."}))
581
+ CitationEvent.add_member(:generated_response_part, Shapes::ShapeRef.new(shape: GeneratedResponsePart, location_name: "generatedResponsePart"))
582
+ CitationEvent.add_member(:retrieved_references, Shapes::ShapeRef.new(shape: RetrievedReferences, location_name: "retrievedReferences"))
581
583
  CitationEvent.struct_class = Types::CitationEvent
582
584
 
583
585
  Citations.member = Shapes::ShapeRef.new(shape: Citation)
@@ -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"
@@ -740,10 +740,20 @@ module Aws::BedrockAgentRuntime
740
740
  # The citation.
741
741
  # @return [Types::Citation]
742
742
  #
743
+ # @!attribute [rw] generated_response_part
744
+ # The generated response to the citation event.
745
+ # @return [Types::GeneratedResponsePart]
746
+ #
747
+ # @!attribute [rw] retrieved_references
748
+ # The retrieved references of the citation event.
749
+ # @return [Array<Types::RetrievedReference>]
750
+ #
743
751
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CitationEvent AWS API Documentation
744
752
  #
745
753
  class CitationEvent < Struct.new(
746
754
  :citation,
755
+ :generated_response_part,
756
+ :retrieved_references,
747
757
  :event_type)
748
758
  SENSITIVE = []
749
759
  include Aws::Structure
@@ -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.41.0'
58
+ GEM_VERSION = '1.43.0'
59
59
 
60
60
  end
61
61
 
data/sig/types.rbs CHANGED
@@ -200,6 +200,8 @@ module Aws::BedrockAgentRuntime
200
200
 
201
201
  class CitationEvent
202
202
  attr_accessor citation: Types::Citation
203
+ attr_accessor generated_response_part: Types::GeneratedResponsePart
204
+ attr_accessor retrieved_references: ::Array[Types::RetrievedReference]
203
205
  attr_accessor event_type: untyped
204
206
  SENSITIVE: []
205
207
  end
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.41.0
4
+ version: 1.43.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-30 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core