aws-sdk-bedrockagentruntime 1.0.0 → 1.2.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: fcb4655eafd88cab131cfc10bfd56c6ad2d437dec5b4ce5fbfa352b18fb87bd4
4
- data.tar.gz: 17059c000a2db6036dbb6c28764d4284f448a6b2e3863414f1e0dc3865905486
3
+ metadata.gz: b1d4472fd40fedc45f494e9f5129562bdd972073c9b1bd7ef308f30b74935924
4
+ data.tar.gz: b3a5a22d247241afd94a114c0afb5cc80e3ef4e468f635f8c3e287e31bfd2677
5
5
  SHA512:
6
- metadata.gz: '094c6ffc1ed6f89ceee403a8d4c4697c8fa5abb161e1c1778718847d78a576506c8a98e111ab697a8486c0b2eb456c11b9c274d4bc725acba1404ce20363f383'
7
- data.tar.gz: 38272c59c4929245890f7f037cba4ae2fdee7cdb83ac16f00e36bfa988fca001666ba57cdbfd2b6aea54c57376d93e915e234280dec82c82df987c4771928937
6
+ metadata.gz: 292befa190a22a5ea57dd546882ba2fbf465553cbb8fd998a8ddd66779073a36c19297dac8d22482c90a0d207b702b9d662f8b1d4120281e2c42bbec2be67f6c
7
+ data.tar.gz: 1d57994919acfb2ee86fbfd68be0a7acf2b78511dc26bbc49aea544fdb8e3182751a6fba2a3209cae27a97bd90a333c8e7d7ec6eb0682d077f7d7e4ba6cc90fc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2024-02-28)
5
+ ------------------
6
+
7
+ * Feature - This release adds support to override search strategy performed by the Retrieve and RetrieveAndGenerate APIs for Amazon Bedrock Agents
8
+
9
+ 1.1.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.0.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -805,7 +805,8 @@ module Aws::BedrockAgentRuntime
805
805
  # },
806
806
  # retrieval_configuration: {
807
807
  # vector_search_configuration: { # required
808
- # number_of_results: 1, # required
808
+ # number_of_results: 1,
809
+ # override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
809
810
  # },
810
811
  # },
811
812
  # next_token: "NextToken",
@@ -861,6 +862,12 @@ module Aws::BedrockAgentRuntime
861
862
  # knowledge_base_configuration: {
862
863
  # knowledge_base_id: "KnowledgeBaseId", # required
863
864
  # model_arn: "BedrockModelArn", # required
865
+ # retrieval_configuration: {
866
+ # vector_search_configuration: { # required
867
+ # number_of_results: 1,
868
+ # override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
869
+ # },
870
+ # },
864
871
  # },
865
872
  # },
866
873
  # session_configuration: {
@@ -903,7 +910,7 @@ module Aws::BedrockAgentRuntime
903
910
  params: params,
904
911
  config: config)
905
912
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
906
- context[:gem_version] = '1.0.0'
913
+ context[:gem_version] = '1.2.0'
907
914
  Seahorse::Client::Request.new(handlers, context)
908
915
  end
909
916
 
@@ -101,6 +101,7 @@ module Aws::BedrockAgentRuntime
101
101
  RetrieveResponse = Shapes::StructureShape.new(name: 'RetrieveResponse')
102
102
  RetrievedReference = Shapes::StructureShape.new(name: 'RetrievedReference')
103
103
  RetrievedReferences = Shapes::ListShape.new(name: 'RetrievedReferences')
104
+ SearchType = Shapes::StringShape.new(name: 'SearchType')
104
105
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
105
106
  SessionAttributesMap = Shapes::MapShape.new(name: 'SessionAttributesMap')
106
107
  SessionId = Shapes::StringShape.new(name: 'SessionId')
@@ -224,9 +225,11 @@ module Aws::BedrockAgentRuntime
224
225
 
225
226
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
226
227
  KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
228
+ KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
227
229
  KnowledgeBaseRetrieveAndGenerateConfiguration.struct_class = Types::KnowledgeBaseRetrieveAndGenerateConfiguration
228
230
 
229
- KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, required: true, location_name: "numberOfResults"))
231
+ KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, location_name: "numberOfResults", metadata: {"box"=>true}))
232
+ KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
230
233
  KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
231
234
 
232
235
  ModelInvocationInput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
@@ -14,6 +14,7 @@ module Aws::BedrockAgentRuntime
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::BedrockAgentRuntime::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -209,7 +209,7 @@ module Aws::BedrockAgentRuntime
209
209
  #
210
210
  class GeneratedResponsePart < Struct.new(
211
211
  :text_response_part)
212
- SENSITIVE = []
212
+ SENSITIVE = [:text_response_part]
213
213
  include Aws::Structure
214
214
  end
215
215
 
@@ -446,7 +446,7 @@ module Aws::BedrockAgentRuntime
446
446
  :content,
447
447
  :location,
448
448
  :score)
449
- SENSITIVE = []
449
+ SENSITIVE = [:content, :location]
450
450
  include Aws::Structure
451
451
  end
452
452
 
@@ -460,11 +460,16 @@ module Aws::BedrockAgentRuntime
460
460
  # Arn of a Bedrock model.
461
461
  # @return [String]
462
462
  #
463
+ # @!attribute [rw] retrieval_configuration
464
+ # Search parameters for retrieving from knowledge base.
465
+ # @return [Types::KnowledgeBaseRetrievalConfiguration]
466
+ #
463
467
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/KnowledgeBaseRetrieveAndGenerateConfiguration AWS API Documentation
464
468
  #
465
469
  class KnowledgeBaseRetrieveAndGenerateConfiguration < Struct.new(
466
470
  :knowledge_base_id,
467
- :model_arn)
471
+ :model_arn,
472
+ :retrieval_configuration)
468
473
  SENSITIVE = []
469
474
  include Aws::Structure
470
475
  end
@@ -475,10 +480,15 @@ module Aws::BedrockAgentRuntime
475
480
  # Top-K results to retrieve from knowledge base.
476
481
  # @return [Integer]
477
482
  #
483
+ # @!attribute [rw] override_search_type
484
+ # Override the type of query to be performed on data store
485
+ # @return [String]
486
+ #
478
487
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/KnowledgeBaseVectorSearchConfiguration AWS API Documentation
479
488
  #
480
489
  class KnowledgeBaseVectorSearchConfiguration < Struct.new(
481
- :number_of_results)
490
+ :number_of_results,
491
+ :override_search_type)
482
492
  SENSITIVE = []
483
493
  include Aws::Structure
484
494
  end
@@ -1064,7 +1074,7 @@ module Aws::BedrockAgentRuntime
1064
1074
  class RetrievedReference < Struct.new(
1065
1075
  :content,
1066
1076
  :location)
1067
- SENSITIVE = []
1077
+ SENSITIVE = [:content, :location]
1068
1078
  include Aws::Structure
1069
1079
  end
1070
1080
 
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-bedrockagentruntime/event_streams'
53
53
  # @!group service
54
54
  module Aws::BedrockAgentRuntime
55
55
 
56
- GEM_VERSION = '1.0.0'
56
+ GEM_VERSION = '1.2.0'
57
57
 
58
58
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,153 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockAgentRuntime
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ interface _InvokeAgentResponseSuccess
79
+ include ::Seahorse::Client::_ResponseSuccess[Types::InvokeAgentResponse]
80
+ def completion: () -> Types::ResponseStream
81
+ def content_type: () -> ::String
82
+ def session_id: () -> ::String
83
+ end
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#invoke_agent-instance_method
85
+ def invoke_agent: (
86
+ ?session_state: {
87
+ session_attributes: Hash[::String, ::String]?,
88
+ prompt_session_attributes: Hash[::String, ::String]?
89
+ },
90
+ agent_id: ::String,
91
+ agent_alias_id: ::String,
92
+ session_id: ::String,
93
+ ?end_session: bool,
94
+ ?enable_trace: bool,
95
+ input_text: ::String
96
+ ) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
97
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
98
+
99
+ interface _RetrieveResponseSuccess
100
+ include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveResponse]
101
+ def retrieval_results: () -> ::Array[Types::KnowledgeBaseRetrievalResult]
102
+ def next_token: () -> ::String
103
+ end
104
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve-instance_method
105
+ def retrieve: (
106
+ knowledge_base_id: ::String,
107
+ retrieval_query: {
108
+ text: ::String
109
+ },
110
+ ?retrieval_configuration: {
111
+ vector_search_configuration: {
112
+ number_of_results: ::Integer?,
113
+ override_search_type: ("HYBRID" | "SEMANTIC")?
114
+ }
115
+ },
116
+ ?next_token: ::String
117
+ ) -> _RetrieveResponseSuccess
118
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveResponseSuccess
119
+
120
+ interface _RetrieveAndGenerateResponseSuccess
121
+ include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateResponse]
122
+ def session_id: () -> ::String
123
+ def output: () -> Types::RetrieveAndGenerateOutput
124
+ def citations: () -> ::Array[Types::Citation]
125
+ end
126
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate-instance_method
127
+ def retrieve_and_generate: (
128
+ ?session_id: ::String,
129
+ input: {
130
+ text: ::String
131
+ },
132
+ ?retrieve_and_generate_configuration: {
133
+ type: ("KNOWLEDGE_BASE"),
134
+ knowledge_base_configuration: {
135
+ knowledge_base_id: ::String,
136
+ model_arn: ::String,
137
+ retrieval_configuration: {
138
+ vector_search_configuration: {
139
+ number_of_results: ::Integer?,
140
+ override_search_type: ("HYBRID" | "SEMANTIC")?
141
+ }
142
+ }?
143
+ }?
144
+ },
145
+ ?session_configuration: {
146
+ kms_key_arn: ::String
147
+ }
148
+ ) -> _RetrieveAndGenerateResponseSuccess
149
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveAndGenerateResponseSuccess
150
+ end
151
+ end
152
+ end
153
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,45 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockAgentRuntime
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class BadGatewayException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ def resource_name: () -> ::String
20
+ end
21
+ class ConflictException < ::Aws::Errors::ServiceError
22
+ def message: () -> ::String
23
+ end
24
+ class DependencyFailedException < ::Aws::Errors::ServiceError
25
+ def message: () -> ::String
26
+ def resource_name: () -> ::String
27
+ end
28
+ class InternalServerException < ::Aws::Errors::ServiceError
29
+ def message: () -> ::String
30
+ end
31
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
32
+ def message: () -> ::String
33
+ end
34
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
35
+ def message: () -> ::String
36
+ end
37
+ class ThrottlingException < ::Aws::Errors::ServiceError
38
+ def message: () -> ::String
39
+ end
40
+ class ValidationException < ::Aws::Errors::ServiceError
41
+ def message: () -> ::String
42
+ end
43
+ end
44
+ end
45
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,82 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockAgentRuntime
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?event_stream_handler: Proc,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?input_event_stream_handler: Proc,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?output_event_stream_handler: Proc,
43
+ ?profile: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?stub_responses: untyped,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> void
75
+ | (?Hash[Symbol, untyped]) -> void
76
+
77
+ def client: () -> Client
78
+
79
+
80
+ end
81
+ end
82
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,430 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::BedrockAgentRuntime
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ attr_accessor event_type: untyped
14
+ SENSITIVE: []
15
+ end
16
+
17
+ class ActionGroupInvocationInput
18
+ attr_accessor action_group_name: ::String
19
+ attr_accessor verb: ::String
20
+ attr_accessor api_path: ::String
21
+ attr_accessor parameters: ::Array[Types::Parameter]
22
+ attr_accessor request_body: Types::RequestBody
23
+ SENSITIVE: [:action_group_name, :verb, :api_path]
24
+ end
25
+
26
+ class ActionGroupInvocationOutput
27
+ attr_accessor text: ::String
28
+ SENSITIVE: [:text]
29
+ end
30
+
31
+ class Attribution
32
+ attr_accessor citations: ::Array[Types::Citation]
33
+ SENSITIVE: []
34
+ end
35
+
36
+ class BadGatewayException
37
+ attr_accessor message: ::String
38
+ attr_accessor resource_name: ::String
39
+ attr_accessor event_type: untyped
40
+ SENSITIVE: []
41
+ end
42
+
43
+ class Citation
44
+ attr_accessor generated_response_part: Types::GeneratedResponsePart
45
+ attr_accessor retrieved_references: ::Array[Types::RetrievedReference]
46
+ SENSITIVE: []
47
+ end
48
+
49
+ class ConflictException
50
+ attr_accessor message: ::String
51
+ attr_accessor event_type: untyped
52
+ SENSITIVE: []
53
+ end
54
+
55
+ class DependencyFailedException
56
+ attr_accessor message: ::String
57
+ attr_accessor resource_name: ::String
58
+ attr_accessor event_type: untyped
59
+ SENSITIVE: []
60
+ end
61
+
62
+ class FailureTrace
63
+ attr_accessor trace_id: ::String
64
+ attr_accessor failure_reason: ::String
65
+ SENSITIVE: [:failure_reason]
66
+ end
67
+
68
+ class FinalResponse
69
+ attr_accessor text: ::String
70
+ SENSITIVE: [:text]
71
+ end
72
+
73
+ class GeneratedResponsePart
74
+ attr_accessor text_response_part: Types::TextResponsePart
75
+ SENSITIVE: [:text_response_part]
76
+ end
77
+
78
+ class InferenceConfiguration
79
+ attr_accessor temperature: ::Float
80
+ attr_accessor top_p: ::Float
81
+ attr_accessor top_k: ::Integer
82
+ attr_accessor maximum_length: ::Integer
83
+ attr_accessor stop_sequences: ::Array[::String]
84
+ SENSITIVE: []
85
+ end
86
+
87
+ class InternalServerException
88
+ attr_accessor message: ::String
89
+ attr_accessor event_type: untyped
90
+ SENSITIVE: []
91
+ end
92
+
93
+ class InvocationInput
94
+ attr_accessor trace_id: ::String
95
+ attr_accessor invocation_type: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "FINISH")
96
+ attr_accessor action_group_invocation_input: Types::ActionGroupInvocationInput
97
+ attr_accessor knowledge_base_lookup_input: Types::KnowledgeBaseLookupInput
98
+ SENSITIVE: []
99
+ end
100
+
101
+ class InvokeAgentRequest
102
+ attr_accessor session_state: Types::SessionState
103
+ attr_accessor agent_id: ::String
104
+ attr_accessor agent_alias_id: ::String
105
+ attr_accessor session_id: ::String
106
+ attr_accessor end_session: bool
107
+ attr_accessor enable_trace: bool
108
+ attr_accessor input_text: ::String
109
+ SENSITIVE: [:input_text]
110
+ end
111
+
112
+ class InvokeAgentResponse
113
+ attr_accessor completion: Types::ResponseStream
114
+ attr_accessor content_type: ::String
115
+ attr_accessor session_id: ::String
116
+ SENSITIVE: []
117
+ end
118
+
119
+ class KnowledgeBaseLookupInput
120
+ attr_accessor text: ::String
121
+ attr_accessor knowledge_base_id: ::String
122
+ SENSITIVE: [:text, :knowledge_base_id]
123
+ end
124
+
125
+ class KnowledgeBaseLookupOutput
126
+ attr_accessor retrieved_references: ::Array[Types::RetrievedReference]
127
+ SENSITIVE: []
128
+ end
129
+
130
+ class KnowledgeBaseQuery
131
+ attr_accessor text: ::String
132
+ SENSITIVE: []
133
+ end
134
+
135
+ class KnowledgeBaseRetrievalConfiguration
136
+ attr_accessor vector_search_configuration: Types::KnowledgeBaseVectorSearchConfiguration
137
+ SENSITIVE: []
138
+ end
139
+
140
+ class KnowledgeBaseRetrievalResult
141
+ attr_accessor content: Types::RetrievalResultContent
142
+ attr_accessor location: Types::RetrievalResultLocation
143
+ attr_accessor score: ::Float
144
+ SENSITIVE: [:content, :location]
145
+ end
146
+
147
+ class KnowledgeBaseRetrieveAndGenerateConfiguration
148
+ attr_accessor knowledge_base_id: ::String
149
+ attr_accessor model_arn: ::String
150
+ attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
151
+ SENSITIVE: []
152
+ end
153
+
154
+ class KnowledgeBaseVectorSearchConfiguration
155
+ attr_accessor number_of_results: ::Integer
156
+ attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
157
+ SENSITIVE: []
158
+ end
159
+
160
+ class ModelInvocationInput
161
+ attr_accessor trace_id: ::String
162
+ attr_accessor text: ::String
163
+ attr_accessor type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING")
164
+ attr_accessor inference_configuration: Types::InferenceConfiguration
165
+ attr_accessor override_lambda: ::String
166
+ attr_accessor prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")
167
+ attr_accessor parser_mode: ("DEFAULT" | "OVERRIDDEN")
168
+ SENSITIVE: [:text]
169
+ end
170
+
171
+ class Observation
172
+ attr_accessor trace_id: ::String
173
+ attr_accessor type: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "FINISH" | "ASK_USER" | "REPROMPT")
174
+ attr_accessor action_group_invocation_output: Types::ActionGroupInvocationOutput
175
+ attr_accessor knowledge_base_lookup_output: Types::KnowledgeBaseLookupOutput
176
+ attr_accessor final_response: Types::FinalResponse
177
+ attr_accessor reprompt_response: Types::RepromptResponse
178
+ SENSITIVE: [:reprompt_response]
179
+ end
180
+
181
+ class OrchestrationTrace
182
+ attr_accessor rationale: Types::Rationale
183
+ attr_accessor invocation_input: Types::InvocationInput
184
+ attr_accessor observation: Types::Observation
185
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
186
+ attr_accessor unknown: untyped
187
+ SENSITIVE: [:rationale, :invocation_input, :observation, :model_invocation_input]
188
+
189
+ class Rationale < OrchestrationTrace
190
+ end
191
+ class InvocationInput < OrchestrationTrace
192
+ end
193
+ class Observation < OrchestrationTrace
194
+ end
195
+ class ModelInvocationInput < OrchestrationTrace
196
+ end
197
+ class Unknown < OrchestrationTrace
198
+ end
199
+ end
200
+
201
+ class Parameter
202
+ attr_accessor name: ::String
203
+ attr_accessor type: ::String
204
+ attr_accessor value: ::String
205
+ SENSITIVE: []
206
+ end
207
+
208
+ class PayloadPart
209
+ attr_accessor bytes: ::String
210
+ attr_accessor attribution: Types::Attribution
211
+ attr_accessor event_type: untyped
212
+ SENSITIVE: [:bytes]
213
+ end
214
+
215
+ class PostProcessingModelInvocationOutput
216
+ attr_accessor trace_id: ::String
217
+ attr_accessor parsed_response: Types::PostProcessingParsedResponse
218
+ SENSITIVE: [:parsed_response]
219
+ end
220
+
221
+ class PostProcessingParsedResponse
222
+ attr_accessor text: ::String
223
+ SENSITIVE: [:text]
224
+ end
225
+
226
+ class PostProcessingTrace
227
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
228
+ attr_accessor model_invocation_output: Types::PostProcessingModelInvocationOutput
229
+ attr_accessor unknown: untyped
230
+ SENSITIVE: [:model_invocation_input, :model_invocation_output]
231
+
232
+ class ModelInvocationInput < PostProcessingTrace
233
+ end
234
+ class ModelInvocationOutput < PostProcessingTrace
235
+ end
236
+ class Unknown < PostProcessingTrace
237
+ end
238
+ end
239
+
240
+ class PreProcessingModelInvocationOutput
241
+ attr_accessor trace_id: ::String
242
+ attr_accessor parsed_response: Types::PreProcessingParsedResponse
243
+ SENSITIVE: [:parsed_response]
244
+ end
245
+
246
+ class PreProcessingParsedResponse
247
+ attr_accessor rationale: ::String
248
+ attr_accessor is_valid: bool
249
+ SENSITIVE: [:rationale]
250
+ end
251
+
252
+ class PreProcessingTrace
253
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
254
+ attr_accessor model_invocation_output: Types::PreProcessingModelInvocationOutput
255
+ attr_accessor unknown: untyped
256
+ SENSITIVE: [:model_invocation_input, :model_invocation_output]
257
+
258
+ class ModelInvocationInput < PreProcessingTrace
259
+ end
260
+ class ModelInvocationOutput < PreProcessingTrace
261
+ end
262
+ class Unknown < PreProcessingTrace
263
+ end
264
+ end
265
+
266
+ class Rationale
267
+ attr_accessor trace_id: ::String
268
+ attr_accessor text: ::String
269
+ SENSITIVE: [:text]
270
+ end
271
+
272
+ class RepromptResponse
273
+ attr_accessor text: ::String
274
+ attr_accessor source: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "PARSER")
275
+ SENSITIVE: [:source]
276
+ end
277
+
278
+ class RequestBody
279
+ attr_accessor content: ::Hash[::String, ::Array[Types::Parameter]]
280
+ SENSITIVE: []
281
+ end
282
+
283
+ class ResourceNotFoundException
284
+ attr_accessor message: ::String
285
+ attr_accessor event_type: untyped
286
+ SENSITIVE: []
287
+ end
288
+
289
+ class RetrievalResultContent
290
+ attr_accessor text: ::String
291
+ SENSITIVE: []
292
+ end
293
+
294
+ class RetrievalResultLocation
295
+ attr_accessor type: ("S3")
296
+ attr_accessor s3_location: Types::RetrievalResultS3Location
297
+ SENSITIVE: []
298
+ end
299
+
300
+ class RetrievalResultS3Location
301
+ attr_accessor uri: ::String
302
+ SENSITIVE: []
303
+ end
304
+
305
+ class RetrieveAndGenerateConfiguration
306
+ attr_accessor type: ("KNOWLEDGE_BASE")
307
+ attr_accessor knowledge_base_configuration: Types::KnowledgeBaseRetrieveAndGenerateConfiguration
308
+ SENSITIVE: []
309
+ end
310
+
311
+ class RetrieveAndGenerateInput
312
+ attr_accessor text: ::String
313
+ SENSITIVE: []
314
+ end
315
+
316
+ class RetrieveAndGenerateOutput
317
+ attr_accessor text: ::String
318
+ SENSITIVE: []
319
+ end
320
+
321
+ class RetrieveAndGenerateRequest
322
+ attr_accessor session_id: ::String
323
+ attr_accessor input: Types::RetrieveAndGenerateInput
324
+ attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
325
+ attr_accessor session_configuration: Types::RetrieveAndGenerateSessionConfiguration
326
+ SENSITIVE: [:input]
327
+ end
328
+
329
+ class RetrieveAndGenerateResponse
330
+ attr_accessor session_id: ::String
331
+ attr_accessor output: Types::RetrieveAndGenerateOutput
332
+ attr_accessor citations: ::Array[Types::Citation]
333
+ SENSITIVE: [:output]
334
+ end
335
+
336
+ class RetrieveAndGenerateSessionConfiguration
337
+ attr_accessor kms_key_arn: ::String
338
+ SENSITIVE: []
339
+ end
340
+
341
+ class RetrieveRequest
342
+ attr_accessor knowledge_base_id: ::String
343
+ attr_accessor retrieval_query: Types::KnowledgeBaseQuery
344
+ attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
345
+ attr_accessor next_token: ::String
346
+ SENSITIVE: [:retrieval_query]
347
+ end
348
+
349
+ class RetrieveResponse
350
+ attr_accessor retrieval_results: ::Array[Types::KnowledgeBaseRetrievalResult]
351
+ attr_accessor next_token: ::String
352
+ SENSITIVE: [:retrieval_results]
353
+ end
354
+
355
+ class RetrievedReference
356
+ attr_accessor content: Types::RetrievalResultContent
357
+ attr_accessor location: Types::RetrievalResultLocation
358
+ SENSITIVE: [:content, :location]
359
+ end
360
+
361
+ class ServiceQuotaExceededException
362
+ attr_accessor message: ::String
363
+ attr_accessor event_type: untyped
364
+ SENSITIVE: []
365
+ end
366
+
367
+ class SessionState
368
+ attr_accessor session_attributes: ::Hash[::String, ::String]
369
+ attr_accessor prompt_session_attributes: ::Hash[::String, ::String]
370
+ SENSITIVE: []
371
+ end
372
+
373
+ class Span
374
+ attr_accessor start: ::Integer
375
+ attr_accessor end: ::Integer
376
+ SENSITIVE: []
377
+ end
378
+
379
+ class TextResponsePart
380
+ attr_accessor text: ::String
381
+ attr_accessor span: Types::Span
382
+ SENSITIVE: []
383
+ end
384
+
385
+ class ThrottlingException
386
+ attr_accessor message: ::String
387
+ attr_accessor event_type: untyped
388
+ SENSITIVE: []
389
+ end
390
+
391
+ class Trace
392
+ attr_accessor pre_processing_trace: Types::PreProcessingTrace
393
+ attr_accessor orchestration_trace: Types::OrchestrationTrace
394
+ attr_accessor post_processing_trace: Types::PostProcessingTrace
395
+ attr_accessor failure_trace: Types::FailureTrace
396
+ attr_accessor unknown: untyped
397
+ SENSITIVE: [:pre_processing_trace, :orchestration_trace, :post_processing_trace, :failure_trace]
398
+
399
+ class PreProcessingTrace < Trace
400
+ end
401
+ class OrchestrationTrace < Trace
402
+ end
403
+ class PostProcessingTrace < Trace
404
+ end
405
+ class FailureTrace < Trace
406
+ end
407
+ class Unknown < Trace
408
+ end
409
+ end
410
+
411
+ class TracePart
412
+ attr_accessor agent_id: ::String
413
+ attr_accessor agent_alias_id: ::String
414
+ attr_accessor session_id: ::String
415
+ attr_accessor trace: Types::Trace
416
+ attr_accessor event_type: untyped
417
+ SENSITIVE: [:trace]
418
+ end
419
+
420
+ class ValidationException
421
+ attr_accessor message: ::String
422
+ attr_accessor event_type: untyped
423
+ SENSITIVE: []
424
+ end
425
+
426
+ class ResponseStream < Enumerator[untyped, untyped]
427
+ def event_types: () -> [:chunk, :trace, :internal_server_exception, :validation_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :access_denied_exception, :conflict_exception, :dependency_failed_exception, :bad_gateway_exception]
428
+ end
429
+ end
430
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module BedrockAgentRuntime
10
+ module Waiters
11
+ end
12
+ end
13
+ 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.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.188.0
22
+ version: 3.191.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -67,13 +67,18 @@ files:
67
67
  - lib/aws-sdk-bedrockagentruntime/plugins/endpoints.rb
68
68
  - lib/aws-sdk-bedrockagentruntime/resource.rb
69
69
  - lib/aws-sdk-bedrockagentruntime/types.rb
70
+ - sig/client.rbs
71
+ - sig/errors.rbs
72
+ - sig/resource.rbs
73
+ - sig/types.rbs
74
+ - sig/waiters.rbs
70
75
  homepage: https://github.com/aws/aws-sdk-ruby
71
76
  licenses:
72
77
  - Apache-2.0
73
78
  metadata:
74
79
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-bedrockagentruntime
75
80
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-bedrockagentruntime/CHANGELOG.md
76
- post_install_message:
81
+ post_install_message:
77
82
  rdoc_options: []
78
83
  require_paths:
79
84
  - lib
@@ -88,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
93
  - !ruby/object:Gem::Version
89
94
  version: '0'
90
95
  requirements: []
91
- rubygems_version: 3.1.6
92
- signing_key:
96
+ rubygems_version: 3.4.10
97
+ signing_key:
93
98
  specification_version: 4
94
99
  summary: AWS SDK for Ruby - Agents for Amazon Bedrock Runtime
95
100
  test_files: []