Class: Aws::BedrockAgentRuntime::EventStreams::FlowResponseStream

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-bedrockagentruntime/event_streams.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFlowResponseStream

Returns a new instance of FlowResponseStream.



202
203
204
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 202

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Attribute Details

#event_emitterObject (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.

Returns:

  • Aws::EventEmitter



291
292
293
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 291

def event_emitter
  @event_emitter
end

Instance Method Details

#on_access_denied_exception_event(&block) ⇒ Object



206
207
208
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 206

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



210
211
212
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 210

def on_bad_gateway_exception_event(&block)
  @event_emitter.on(:bad_gateway_exception, block) if block_given?
end

#on_conflict_exception_event(&block) ⇒ Object



214
215
216
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 214

def on_conflict_exception_event(&block)
  @event_emitter.on(:conflict_exception, block) if block_given?
end

#on_dependency_failed_exception_event(&block) ⇒ Object



218
219
220
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 218

def on_dependency_failed_exception_event(&block)
  @event_emitter.on(:dependency_failed_exception, block) if block_given?
end

#on_error_event(&block) ⇒ Object



258
259
260
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 258

def on_error_event(&block)
  @event_emitter.on(:error, block) if block_given?
end

#on_event(&block) ⇒ Object



270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 270

def on_event(&block)
  on_access_denied_exception_event(&block)
  on_bad_gateway_exception_event(&block)
  on_conflict_exception_event(&block)
  on_dependency_failed_exception_event(&block)
  on_flow_completion_event_event(&block)
  on_flow_multi_turn_input_request_event_event(&block)
  on_flow_output_event_event(&block)
  on_flow_trace_event_event(&block)
  on_internal_server_exception_event(&block)
  on_resource_not_found_exception_event(&block)
  on_service_quota_exceeded_exception_event(&block)
  on_throttling_exception_event(&block)
  on_validation_exception_event(&block)
  on_error_event(&block)
  on_initial_response_event(&block)
  on_unknown_event(&block)
end

#on_flow_completion_event_event(&block) ⇒ Object



222
223
224
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 222

def on_flow_completion_event_event(&block)
  @event_emitter.on(:flow_completion_event, block) if block_given?
end

#on_flow_multi_turn_input_request_event_event(&block) ⇒ Object



226
227
228
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 226

def on_flow_multi_turn_input_request_event_event(&block)
  @event_emitter.on(:flow_multi_turn_input_request_event, block) if block_given?
end

#on_flow_output_event_event(&block) ⇒ Object



230
231
232
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 230

def on_flow_output_event_event(&block)
  @event_emitter.on(:flow_output_event, block) if block_given?
end

#on_flow_trace_event_event(&block) ⇒ Object



234
235
236
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 234

def on_flow_trace_event_event(&block)
  @event_emitter.on(:flow_trace_event, block) if block_given?
end

#on_initial_response_event(&block) ⇒ Object



262
263
264
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 262

def on_initial_response_event(&block)
  @event_emitter.on(:initial_response, block) if block_given?
end

#on_internal_server_exception_event(&block) ⇒ Object



238
239
240
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 238

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



242
243
244
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 242

def on_resource_not_found_exception_event(&block)
  @event_emitter.on(:resource_not_found_exception, block) if block_given?
end

#on_service_quota_exceeded_exception_event(&block) ⇒ Object



246
247
248
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 246

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



250
251
252
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 250

def on_throttling_exception_event(&block)
  @event_emitter.on(:throttling_exception, block) if block_given?
end

#on_unknown_event(&block) ⇒ Object



266
267
268
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 266

def on_unknown_event(&block)
  @event_emitter.on(:unknown_event, block) if block_given?
end

#on_validation_exception_event(&block) ⇒ Object



254
255
256
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 254

def on_validation_exception_event(&block)
  @event_emitter.on(:validation_exception, block) if block_given?
end