aws-sdk-bedrockagentruntime 1.0.0 → 1.1.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: a51b3e0aefdc1ee5b97c4d76b8ff3a9839cd14ebc2dedcd05be55b76606562f4
4
+ data.tar.gz: a6eff7b8ef45b8fe4b3d11ee271c75d48aa01c82bd9b209cecdd10b117b8ba92
5
5
  SHA512:
6
- metadata.gz: '094c6ffc1ed6f89ceee403a8d4c4697c8fa5abb161e1c1778718847d78a576506c8a98e111ab697a8486c0b2eb456c11b9c274d4bc725acba1404ce20363f383'
7
- data.tar.gz: 38272c59c4929245890f7f037cba4ae2fdee7cdb83ac16f00e36bfa988fca001666ba57cdbfd2b6aea54c57376d93e915e234280dec82c82df987c4771928937
6
+ metadata.gz: d3f60cd08b92bca7724ffe64eaee07400caa94f03ab9749f7bbc4dbbf80e602f1b963e75201b8c94921e4cf83d2f546c00a68f77b497f5dd014dc3feb231f43a
7
+ data.tar.gz: 9ce3396628d4abc23982fe8dbf4bcb51260fd37b329077803eb66f13c2656f45138a07142d609cb1b37fa892881e5d8ebc88afdd4961a0b704fcfe8d19acf43f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.1.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.0.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -903,7 +903,7 @@ module Aws::BedrockAgentRuntime
903
903
  params: params,
904
904
  config: config)
905
905
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
906
- context[:gem_version] = '1.0.0'
906
+ context[:gem_version] = '1.1.0'
907
907
  Seahorse::Client::Request.new(handlers, context)
908
908
  end
909
909
 
@@ -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 '\
@@ -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.1.0'
57
57
 
58
58
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,146 @@
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
+ }
114
+ },
115
+ ?next_token: ::String
116
+ ) -> _RetrieveResponseSuccess
117
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveResponseSuccess
118
+
119
+ interface _RetrieveAndGenerateResponseSuccess
120
+ include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveAndGenerateResponse]
121
+ def session_id: () -> ::String
122
+ def output: () -> Types::RetrieveAndGenerateOutput
123
+ def citations: () -> ::Array[Types::Citation]
124
+ end
125
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentRuntime/Client.html#retrieve_and_generate-instance_method
126
+ def retrieve_and_generate: (
127
+ ?session_id: ::String,
128
+ input: {
129
+ text: ::String
130
+ },
131
+ ?retrieve_and_generate_configuration: {
132
+ type: ("KNOWLEDGE_BASE"),
133
+ knowledge_base_configuration: {
134
+ knowledge_base_id: ::String,
135
+ model_arn: ::String
136
+ }?
137
+ },
138
+ ?session_configuration: {
139
+ kms_key_arn: ::String
140
+ }
141
+ ) -> _RetrieveAndGenerateResponseSuccess
142
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveAndGenerateResponseSuccess
143
+ end
144
+ end
145
+ end
146
+
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,428 @@
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: []
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: []
145
+ end
146
+
147
+ class KnowledgeBaseRetrieveAndGenerateConfiguration
148
+ attr_accessor knowledge_base_id: ::String
149
+ attr_accessor model_arn: ::String
150
+ SENSITIVE: []
151
+ end
152
+
153
+ class KnowledgeBaseVectorSearchConfiguration
154
+ attr_accessor number_of_results: ::Integer
155
+ SENSITIVE: []
156
+ end
157
+
158
+ class ModelInvocationInput
159
+ attr_accessor trace_id: ::String
160
+ attr_accessor text: ::String
161
+ attr_accessor type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING")
162
+ attr_accessor inference_configuration: Types::InferenceConfiguration
163
+ attr_accessor override_lambda: ::String
164
+ attr_accessor prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")
165
+ attr_accessor parser_mode: ("DEFAULT" | "OVERRIDDEN")
166
+ SENSITIVE: [:text]
167
+ end
168
+
169
+ class Observation
170
+ attr_accessor trace_id: ::String
171
+ attr_accessor type: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "FINISH" | "ASK_USER" | "REPROMPT")
172
+ attr_accessor action_group_invocation_output: Types::ActionGroupInvocationOutput
173
+ attr_accessor knowledge_base_lookup_output: Types::KnowledgeBaseLookupOutput
174
+ attr_accessor final_response: Types::FinalResponse
175
+ attr_accessor reprompt_response: Types::RepromptResponse
176
+ SENSITIVE: [:reprompt_response]
177
+ end
178
+
179
+ class OrchestrationTrace
180
+ attr_accessor rationale: Types::Rationale
181
+ attr_accessor invocation_input: Types::InvocationInput
182
+ attr_accessor observation: Types::Observation
183
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
184
+ attr_accessor unknown: untyped
185
+ SENSITIVE: [:rationale, :invocation_input, :observation, :model_invocation_input]
186
+
187
+ class Rationale < OrchestrationTrace
188
+ end
189
+ class InvocationInput < OrchestrationTrace
190
+ end
191
+ class Observation < OrchestrationTrace
192
+ end
193
+ class ModelInvocationInput < OrchestrationTrace
194
+ end
195
+ class Unknown < OrchestrationTrace
196
+ end
197
+ end
198
+
199
+ class Parameter
200
+ attr_accessor name: ::String
201
+ attr_accessor type: ::String
202
+ attr_accessor value: ::String
203
+ SENSITIVE: []
204
+ end
205
+
206
+ class PayloadPart
207
+ attr_accessor bytes: ::String
208
+ attr_accessor attribution: Types::Attribution
209
+ attr_accessor event_type: untyped
210
+ SENSITIVE: [:bytes]
211
+ end
212
+
213
+ class PostProcessingModelInvocationOutput
214
+ attr_accessor trace_id: ::String
215
+ attr_accessor parsed_response: Types::PostProcessingParsedResponse
216
+ SENSITIVE: [:parsed_response]
217
+ end
218
+
219
+ class PostProcessingParsedResponse
220
+ attr_accessor text: ::String
221
+ SENSITIVE: [:text]
222
+ end
223
+
224
+ class PostProcessingTrace
225
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
226
+ attr_accessor model_invocation_output: Types::PostProcessingModelInvocationOutput
227
+ attr_accessor unknown: untyped
228
+ SENSITIVE: [:model_invocation_input, :model_invocation_output]
229
+
230
+ class ModelInvocationInput < PostProcessingTrace
231
+ end
232
+ class ModelInvocationOutput < PostProcessingTrace
233
+ end
234
+ class Unknown < PostProcessingTrace
235
+ end
236
+ end
237
+
238
+ class PreProcessingModelInvocationOutput
239
+ attr_accessor trace_id: ::String
240
+ attr_accessor parsed_response: Types::PreProcessingParsedResponse
241
+ SENSITIVE: [:parsed_response]
242
+ end
243
+
244
+ class PreProcessingParsedResponse
245
+ attr_accessor rationale: ::String
246
+ attr_accessor is_valid: bool
247
+ SENSITIVE: [:rationale]
248
+ end
249
+
250
+ class PreProcessingTrace
251
+ attr_accessor model_invocation_input: Types::ModelInvocationInput
252
+ attr_accessor model_invocation_output: Types::PreProcessingModelInvocationOutput
253
+ attr_accessor unknown: untyped
254
+ SENSITIVE: [:model_invocation_input, :model_invocation_output]
255
+
256
+ class ModelInvocationInput < PreProcessingTrace
257
+ end
258
+ class ModelInvocationOutput < PreProcessingTrace
259
+ end
260
+ class Unknown < PreProcessingTrace
261
+ end
262
+ end
263
+
264
+ class Rationale
265
+ attr_accessor trace_id: ::String
266
+ attr_accessor text: ::String
267
+ SENSITIVE: [:text]
268
+ end
269
+
270
+ class RepromptResponse
271
+ attr_accessor text: ::String
272
+ attr_accessor source: ("ACTION_GROUP" | "KNOWLEDGE_BASE" | "PARSER")
273
+ SENSITIVE: [:source]
274
+ end
275
+
276
+ class RequestBody
277
+ attr_accessor content: ::Hash[::String, ::Array[Types::Parameter]]
278
+ SENSITIVE: []
279
+ end
280
+
281
+ class ResourceNotFoundException
282
+ attr_accessor message: ::String
283
+ attr_accessor event_type: untyped
284
+ SENSITIVE: []
285
+ end
286
+
287
+ class RetrievalResultContent
288
+ attr_accessor text: ::String
289
+ SENSITIVE: []
290
+ end
291
+
292
+ class RetrievalResultLocation
293
+ attr_accessor type: ("S3")
294
+ attr_accessor s3_location: Types::RetrievalResultS3Location
295
+ SENSITIVE: []
296
+ end
297
+
298
+ class RetrievalResultS3Location
299
+ attr_accessor uri: ::String
300
+ SENSITIVE: []
301
+ end
302
+
303
+ class RetrieveAndGenerateConfiguration
304
+ attr_accessor type: ("KNOWLEDGE_BASE")
305
+ attr_accessor knowledge_base_configuration: Types::KnowledgeBaseRetrieveAndGenerateConfiguration
306
+ SENSITIVE: []
307
+ end
308
+
309
+ class RetrieveAndGenerateInput
310
+ attr_accessor text: ::String
311
+ SENSITIVE: []
312
+ end
313
+
314
+ class RetrieveAndGenerateOutput
315
+ attr_accessor text: ::String
316
+ SENSITIVE: []
317
+ end
318
+
319
+ class RetrieveAndGenerateRequest
320
+ attr_accessor session_id: ::String
321
+ attr_accessor input: Types::RetrieveAndGenerateInput
322
+ attr_accessor retrieve_and_generate_configuration: Types::RetrieveAndGenerateConfiguration
323
+ attr_accessor session_configuration: Types::RetrieveAndGenerateSessionConfiguration
324
+ SENSITIVE: [:input]
325
+ end
326
+
327
+ class RetrieveAndGenerateResponse
328
+ attr_accessor session_id: ::String
329
+ attr_accessor output: Types::RetrieveAndGenerateOutput
330
+ attr_accessor citations: ::Array[Types::Citation]
331
+ SENSITIVE: [:output]
332
+ end
333
+
334
+ class RetrieveAndGenerateSessionConfiguration
335
+ attr_accessor kms_key_arn: ::String
336
+ SENSITIVE: []
337
+ end
338
+
339
+ class RetrieveRequest
340
+ attr_accessor knowledge_base_id: ::String
341
+ attr_accessor retrieval_query: Types::KnowledgeBaseQuery
342
+ attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
343
+ attr_accessor next_token: ::String
344
+ SENSITIVE: [:retrieval_query]
345
+ end
346
+
347
+ class RetrieveResponse
348
+ attr_accessor retrieval_results: ::Array[Types::KnowledgeBaseRetrievalResult]
349
+ attr_accessor next_token: ::String
350
+ SENSITIVE: [:retrieval_results]
351
+ end
352
+
353
+ class RetrievedReference
354
+ attr_accessor content: Types::RetrievalResultContent
355
+ attr_accessor location: Types::RetrievalResultLocation
356
+ SENSITIVE: []
357
+ end
358
+
359
+ class ServiceQuotaExceededException
360
+ attr_accessor message: ::String
361
+ attr_accessor event_type: untyped
362
+ SENSITIVE: []
363
+ end
364
+
365
+ class SessionState
366
+ attr_accessor session_attributes: ::Hash[::String, ::String]
367
+ attr_accessor prompt_session_attributes: ::Hash[::String, ::String]
368
+ SENSITIVE: []
369
+ end
370
+
371
+ class Span
372
+ attr_accessor start: ::Integer
373
+ attr_accessor end: ::Integer
374
+ SENSITIVE: []
375
+ end
376
+
377
+ class TextResponsePart
378
+ attr_accessor text: ::String
379
+ attr_accessor span: Types::Span
380
+ SENSITIVE: []
381
+ end
382
+
383
+ class ThrottlingException
384
+ attr_accessor message: ::String
385
+ attr_accessor event_type: untyped
386
+ SENSITIVE: []
387
+ end
388
+
389
+ class Trace
390
+ attr_accessor pre_processing_trace: Types::PreProcessingTrace
391
+ attr_accessor orchestration_trace: Types::OrchestrationTrace
392
+ attr_accessor post_processing_trace: Types::PostProcessingTrace
393
+ attr_accessor failure_trace: Types::FailureTrace
394
+ attr_accessor unknown: untyped
395
+ SENSITIVE: [:pre_processing_trace, :orchestration_trace, :post_processing_trace, :failure_trace]
396
+
397
+ class PreProcessingTrace < Trace
398
+ end
399
+ class OrchestrationTrace < Trace
400
+ end
401
+ class PostProcessingTrace < Trace
402
+ end
403
+ class FailureTrace < Trace
404
+ end
405
+ class Unknown < Trace
406
+ end
407
+ end
408
+
409
+ class TracePart
410
+ attr_accessor agent_id: ::String
411
+ attr_accessor agent_alias_id: ::String
412
+ attr_accessor session_id: ::String
413
+ attr_accessor trace: Types::Trace
414
+ attr_accessor event_type: untyped
415
+ SENSITIVE: [:trace]
416
+ end
417
+
418
+ class ValidationException
419
+ attr_accessor message: ::String
420
+ attr_accessor event_type: untyped
421
+ SENSITIVE: []
422
+ end
423
+
424
+ class ResponseStream < Enumerator[untyped, untyped]
425
+ 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]
426
+ end
427
+ end
428
+ 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.1.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-01-26 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: []