Class: Aws::BedrockAgentRuntime::EventStreams::InlineAgentResponseStream
- Inherits:
-
Object
- Object
- Aws::BedrockAgentRuntime::EventStreams::InlineAgentResponseStream
- Defined in:
- lib/aws-sdk-bedrockagentruntime/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ InlineAgentResponseStream
constructor
A new instance of InlineAgentResponseStream.
- #on_access_denied_exception_event(&block) ⇒ Object
- #on_bad_gateway_exception_event(&block) ⇒ Object
- #on_chunk_event(&block) ⇒ Object
- #on_conflict_exception_event(&block) ⇒ Object
- #on_dependency_failed_exception_event(&block) ⇒ Object
- #on_error_event(&block) ⇒ Object
- #on_event(&block) ⇒ Object
- #on_files_event(&block) ⇒ Object
- #on_initial_response_event(&block) ⇒ Object
- #on_internal_server_exception_event(&block) ⇒ Object
- #on_resource_not_found_exception_event(&block) ⇒ Object
- #on_return_control_event(&block) ⇒ Object
- #on_service_quota_exceeded_exception_event(&block) ⇒ Object
- #on_throttling_exception_event(&block) ⇒ Object
- #on_trace_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
- #on_validation_exception_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ InlineAgentResponseStream
Returns a new instance of InlineAgentResponseStream.
296 297 298 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 296 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Attribute Details
#event_emitter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Aws::EventEmitter.
385 386 387 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 385 def event_emitter @event_emitter end |
Instance Method Details
#on_access_denied_exception_event(&block) ⇒ Object
300 301 302 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 300 def on_access_denied_exception_event(&block) @event_emitter.on(:access_denied_exception, block) if block_given? end |
#on_bad_gateway_exception_event(&block) ⇒ Object
304 305 306 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 304 def on_bad_gateway_exception_event(&block) @event_emitter.on(:bad_gateway_exception, block) if block_given? end |
#on_chunk_event(&block) ⇒ Object
308 309 310 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 308 def on_chunk_event(&block) @event_emitter.on(:chunk, block) if block_given? end |
#on_conflict_exception_event(&block) ⇒ Object
312 313 314 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 312 def on_conflict_exception_event(&block) @event_emitter.on(:conflict_exception, block) if block_given? end |
#on_dependency_failed_exception_event(&block) ⇒ Object
316 317 318 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 316 def on_dependency_failed_exception_event(&block) @event_emitter.on(:dependency_failed_exception, block) if block_given? end |
#on_error_event(&block) ⇒ Object
352 353 354 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 352 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 364 def on_event(&block) on_access_denied_exception_event(&block) on_bad_gateway_exception_event(&block) on_chunk_event(&block) on_conflict_exception_event(&block) on_dependency_failed_exception_event(&block) on_files_event(&block) on_internal_server_exception_event(&block) on_resource_not_found_exception_event(&block) on_return_control_event(&block) on_service_quota_exceeded_exception_event(&block) on_throttling_exception_event(&block) on_trace_event(&block) on_validation_exception_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_files_event(&block) ⇒ Object
320 321 322 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 320 def on_files_event(&block) @event_emitter.on(:files, block) if block_given? end |
#on_initial_response_event(&block) ⇒ Object
356 357 358 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 356 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_server_exception_event(&block) ⇒ Object
324 325 326 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 324 def on_internal_server_exception_event(&block) @event_emitter.on(:internal_server_exception, block) if block_given? end |
#on_resource_not_found_exception_event(&block) ⇒ Object
328 329 330 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 328 def on_resource_not_found_exception_event(&block) @event_emitter.on(:resource_not_found_exception, block) if block_given? end |
#on_return_control_event(&block) ⇒ Object
332 333 334 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 332 def on_return_control_event(&block) @event_emitter.on(:return_control, block) if block_given? end |
#on_service_quota_exceeded_exception_event(&block) ⇒ Object
336 337 338 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 336 def on_service_quota_exceeded_exception_event(&block) @event_emitter.on(:service_quota_exceeded_exception, block) if block_given? end |
#on_throttling_exception_event(&block) ⇒ Object
340 341 342 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 340 def on_throttling_exception_event(&block) @event_emitter.on(:throttling_exception, block) if block_given? end |
#on_trace_event(&block) ⇒ Object
344 345 346 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 344 def on_trace_event(&block) @event_emitter.on(:trace, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
360 361 362 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 360 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_validation_exception_event(&block) ⇒ Object
348 349 350 |
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 348 def on_validation_exception_event(&block) @event_emitter.on(:validation_exception, block) if block_given? end |