aws-sdk-bedrockagentruntime 1.31.0 → 1.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -192,6 +192,169 @@ module Aws::BedrockAgentRuntime
192
192
  attr_reader :event_emitter
193
193
 
194
194
  end
195
+ class InlineAgentResponseStream
196
+
197
+ def initialize
198
+ @event_emitter = Aws::EventEmitter.new
199
+ end
200
+
201
+ def on_access_denied_exception_event(&block)
202
+ @event_emitter.on(:access_denied_exception, block) if block_given?
203
+ end
204
+
205
+ def on_bad_gateway_exception_event(&block)
206
+ @event_emitter.on(:bad_gateway_exception, block) if block_given?
207
+ end
208
+
209
+ def on_chunk_event(&block)
210
+ @event_emitter.on(:chunk, block) if block_given?
211
+ end
212
+
213
+ def on_conflict_exception_event(&block)
214
+ @event_emitter.on(:conflict_exception, block) if block_given?
215
+ end
216
+
217
+ def on_dependency_failed_exception_event(&block)
218
+ @event_emitter.on(:dependency_failed_exception, block) if block_given?
219
+ end
220
+
221
+ def on_files_event(&block)
222
+ @event_emitter.on(:files, block) if block_given?
223
+ end
224
+
225
+ def on_internal_server_exception_event(&block)
226
+ @event_emitter.on(:internal_server_exception, block) if block_given?
227
+ end
228
+
229
+ def on_resource_not_found_exception_event(&block)
230
+ @event_emitter.on(:resource_not_found_exception, block) if block_given?
231
+ end
232
+
233
+ def on_return_control_event(&block)
234
+ @event_emitter.on(:return_control, block) if block_given?
235
+ end
236
+
237
+ def on_service_quota_exceeded_exception_event(&block)
238
+ @event_emitter.on(:service_quota_exceeded_exception, block) if block_given?
239
+ end
240
+
241
+ def on_throttling_exception_event(&block)
242
+ @event_emitter.on(:throttling_exception, block) if block_given?
243
+ end
244
+
245
+ def on_trace_event(&block)
246
+ @event_emitter.on(:trace, block) if block_given?
247
+ end
248
+
249
+ def on_validation_exception_event(&block)
250
+ @event_emitter.on(:validation_exception, block) if block_given?
251
+ end
252
+
253
+ def on_error_event(&block)
254
+ @event_emitter.on(:error, block) if block_given?
255
+ end
256
+
257
+ def on_initial_response_event(&block)
258
+ @event_emitter.on(:initial_response, block) if block_given?
259
+ end
260
+
261
+ def on_unknown_event(&block)
262
+ @event_emitter.on(:unknown_event, block) if block_given?
263
+ end
264
+
265
+ def on_event(&block)
266
+ on_access_denied_exception_event(&block)
267
+ on_bad_gateway_exception_event(&block)
268
+ on_chunk_event(&block)
269
+ on_conflict_exception_event(&block)
270
+ on_dependency_failed_exception_event(&block)
271
+ on_files_event(&block)
272
+ on_internal_server_exception_event(&block)
273
+ on_resource_not_found_exception_event(&block)
274
+ on_return_control_event(&block)
275
+ on_service_quota_exceeded_exception_event(&block)
276
+ on_throttling_exception_event(&block)
277
+ on_trace_event(&block)
278
+ on_validation_exception_event(&block)
279
+ on_error_event(&block)
280
+ on_initial_response_event(&block)
281
+ on_unknown_event(&block)
282
+ end
283
+
284
+ # @api private
285
+ # @return Aws::EventEmitter
286
+ attr_reader :event_emitter
287
+
288
+ end
289
+ class OptimizedPromptStream
290
+
291
+ def initialize
292
+ @event_emitter = Aws::EventEmitter.new
293
+ end
294
+
295
+ def on_access_denied_exception_event(&block)
296
+ @event_emitter.on(:access_denied_exception, block) if block_given?
297
+ end
298
+
299
+ def on_analyze_prompt_event_event(&block)
300
+ @event_emitter.on(:analyze_prompt_event, block) if block_given?
301
+ end
302
+
303
+ def on_bad_gateway_exception_event(&block)
304
+ @event_emitter.on(:bad_gateway_exception, block) if block_given?
305
+ end
306
+
307
+ def on_dependency_failed_exception_event(&block)
308
+ @event_emitter.on(:dependency_failed_exception, block) if block_given?
309
+ end
310
+
311
+ def on_internal_server_exception_event(&block)
312
+ @event_emitter.on(:internal_server_exception, block) if block_given?
313
+ end
314
+
315
+ def on_optimized_prompt_event_event(&block)
316
+ @event_emitter.on(:optimized_prompt_event, block) if block_given?
317
+ end
318
+
319
+ def on_throttling_exception_event(&block)
320
+ @event_emitter.on(:throttling_exception, block) if block_given?
321
+ end
322
+
323
+ def on_validation_exception_event(&block)
324
+ @event_emitter.on(:validation_exception, block) if block_given?
325
+ end
326
+
327
+ def on_error_event(&block)
328
+ @event_emitter.on(:error, block) if block_given?
329
+ end
330
+
331
+ def on_initial_response_event(&block)
332
+ @event_emitter.on(:initial_response, block) if block_given?
333
+ end
334
+
335
+ def on_unknown_event(&block)
336
+ @event_emitter.on(:unknown_event, block) if block_given?
337
+ end
338
+
339
+ def on_event(&block)
340
+ on_access_denied_exception_event(&block)
341
+ on_analyze_prompt_event_event(&block)
342
+ on_bad_gateway_exception_event(&block)
343
+ on_dependency_failed_exception_event(&block)
344
+ on_internal_server_exception_event(&block)
345
+ on_optimized_prompt_event_event(&block)
346
+ on_throttling_exception_event(&block)
347
+ on_validation_exception_event(&block)
348
+ on_error_event(&block)
349
+ on_initial_response_event(&block)
350
+ on_unknown_event(&block)
351
+ end
352
+
353
+ # @api private
354
+ # @return Aws::EventEmitter
355
+ attr_reader :event_emitter
356
+
357
+ end
195
358
 
196
359
  end
197
360
  end