aws-sdk-bedrockagentruntime 1.40.0 → 1.42.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: ae61bbd4a1a88db941f44e4ecd10e06b1f1f14de6530f6a58736e0e61516900e
4
- data.tar.gz: 8a46c8d3d8fa36e86bd4f49c69fb7813c78637ab36b42c6832ecaea20e6e2a18
3
+ metadata.gz: 49c554520a7e83f9259fe1f4035560e859825944a9a8588cd688db5853815bcd
4
+ data.tar.gz: 427fae37f237a973766e7b2d2ffa8202bd36cde041450fb362e560ac2fa2c260
5
5
  SHA512:
6
- metadata.gz: db74795fc29276da164fa995947f7af6b455b5c575286361ce28a4721862311d176757f5483eed0abb0bf2a31cffc419fb82349dba4962d5d8bf4e8a5eed9fad
7
- data.tar.gz: b609981f3e48472cd1214c84b85b073a55f48e6f74f0af161f93b875789b63eb2dc0e7642ea05e7ec974d8d259691fefb9a7a207b2817d162fe1e2ce6b46278c
6
+ metadata.gz: 0a7a3821f302f9161070fab4b6e8d12462ebdd4997c176603130872efb3baaf03dec02c0d5e91bb872d4fd8e51dce8e9c57d6f18fd1afad5a101a93a05e40820
7
+ data.tar.gz: 83f50688f178d46a69c274f540acb49344ca7fc6b5e1e8b8161c135d5c7248d1423c229a8691b7ff091bd222c4b2f58885015eb96e72d9139601c47e21042b55
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.42.0 (2025-01-31)
5
+ ------------------
6
+
7
+ * Feature - This change is to deprecate the existing citation field under RetrieveAndGenerateStream API response in lieu of GeneratedResponsePart and RetrievedReferences
8
+
9
+ 1.41.0 (2025-01-30)
10
+ ------------------
11
+
12
+ * Feature - Add a 'reason' field to InternalServerException
13
+
4
14
  1.40.0 (2025-01-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.42.0
@@ -1206,6 +1206,7 @@ module Aws::BedrockAgentRuntime
1206
1206
  #
1207
1207
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
1208
1208
  # event.message #=> String
1209
+ # event.reason #=> String
1209
1210
  #
1210
1211
  # For :model_not_ready_exception event available at #on_model_not_ready_exception_event callback and response eventstream enumerator:
1211
1212
  # event.message #=> String
@@ -1936,6 +1937,7 @@ module Aws::BedrockAgentRuntime
1936
1937
  #
1937
1938
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
1938
1939
  # event.message #=> String
1940
+ # event.reason #=> String
1939
1941
  #
1940
1942
  # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
1941
1943
  # event.message #=> String
@@ -2596,6 +2598,7 @@ module Aws::BedrockAgentRuntime
2596
2598
  #
2597
2599
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
2598
2600
  # event.message #=> String
2601
+ # event.reason #=> String
2599
2602
  #
2600
2603
  # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
2601
2604
  # event.message #=> String
@@ -3204,6 +3207,7 @@ module Aws::BedrockAgentRuntime
3204
3207
  #
3205
3208
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
3206
3209
  # event.message #=> String
3210
+ # event.reason #=> String
3207
3211
  #
3208
3212
  # For :optimized_prompt_event event available at #on_optimized_prompt_event_event callback and response eventstream enumerator:
3209
3213
  # event.optimized_prompt.text_prompt.text #=> String
@@ -3820,6 +3824,9 @@ module Aws::BedrockAgentRuntime
3820
3824
  #
3821
3825
  # </note>
3822
3826
  #
3827
+ # This operation requires permission for the `
3828
+ # bedrock:RetrieveAndGenerate` action.
3829
+ #
3823
3830
  # @option params [required, Types::RetrieveAndGenerateInput] :input
3824
3831
  # Contains the query to be made to the knowledge base.
3825
3832
  #
@@ -4282,6 +4289,27 @@ module Aws::BedrockAgentRuntime
4282
4289
  # event.citation.retrieved_references[0].location.type #=> String, one of "S3", "WEB", "CONFLUENCE", "SALESFORCE", "SHAREPOINT", "CUSTOM", "KENDRA", "SQL"
4283
4290
  # event.citation.retrieved_references[0].location.web_location.url #=> String
4284
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
4285
4313
  #
4286
4314
  # For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
4287
4315
  # event.message #=> String
@@ -4295,6 +4323,7 @@ module Aws::BedrockAgentRuntime
4295
4323
  #
4296
4324
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
4297
4325
  # event.message #=> String
4326
+ # event.reason #=> String
4298
4327
  #
4299
4328
  # For :output event available at #on_output_event callback and response eventstream enumerator:
4300
4329
  # event.text #=> String
@@ -4356,7 +4385,7 @@ module Aws::BedrockAgentRuntime
4356
4385
  tracer: tracer
4357
4386
  )
4358
4387
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4359
- context[:gem_version] = '1.40.0'
4388
+ context[:gem_version] = '1.42.0'
4360
4389
  Seahorse::Client::Request.new(handlers, context)
4361
4390
  end
4362
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)
@@ -1008,6 +1010,7 @@ module Aws::BedrockAgentRuntime
1008
1010
  InputPrompt.struct_class = Types::InputPrompt
1009
1011
 
1010
1012
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1013
+ InternalServerException.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
1011
1014
  InternalServerException.struct_class = Types::InternalServerException
1012
1015
 
1013
1016
  InvocationInput.add_member(:action_group_invocation_input, Shapes::ShapeRef.new(shape: ActionGroupInvocationInput, location_name: "actionGroupInvocationInput"))
@@ -127,6 +127,11 @@ module Aws::BedrockAgentRuntime
127
127
  def message
128
128
  @message || @data[:message]
129
129
  end
130
+
131
+ # @return [String]
132
+ def reason
133
+ @data[:reason]
134
+ end
130
135
  end
131
136
 
132
137
  class ModelNotReadyException < ServiceError
@@ -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
@@ -2663,10 +2673,17 @@ module Aws::BedrockAgentRuntime
2663
2673
  # @!attribute [rw] message
2664
2674
  # @return [String]
2665
2675
  #
2676
+ # @!attribute [rw] reason
2677
+ # The reason for the exception. If the reason is
2678
+ # `BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE`, the model invocation
2679
+ # service is unavailable. Retry your request.
2680
+ # @return [String]
2681
+ #
2666
2682
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InternalServerException AWS API Documentation
2667
2683
  #
2668
2684
  class InternalServerException < Struct.new(
2669
2685
  :message,
2686
+ :reason,
2670
2687
  :event_type)
2671
2688
  SENSITIVE = []
2672
2689
  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.40.0'
58
+ GEM_VERSION = '1.42.0'
59
59
 
60
60
  end
61
61
 
data/sig/errors.rbs CHANGED
@@ -27,6 +27,7 @@ module Aws
27
27
  end
28
28
  class InternalServerException < ::Aws::Errors::ServiceError
29
29
  def message: () -> ::String
30
+ def reason: () -> ::String
30
31
  end
31
32
  class ModelNotReadyException < ::Aws::Errors::ServiceError
32
33
  def message: () -> ::String
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
@@ -750,6 +752,7 @@ module Aws::BedrockAgentRuntime
750
752
 
751
753
  class InternalServerException
752
754
  attr_accessor message: ::String
755
+ attr_accessor reason: ::String
753
756
  attr_accessor event_type: untyped
754
757
  SENSITIVE: []
755
758
  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.40.0
4
+ version: 1.42.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-22 00:00:00.000000000 Z
11
+ date: 2025-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core