Class: Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput
- Inherits:
-
Object
- Object
- Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput
- Defined in:
- lib/aws-sdk-bedrockagentcore/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ InvokeHarnessStreamOutput
constructor
A new instance of InvokeHarnessStreamOutput.
- #on_content_block_delta_event(&block) ⇒ Object
- #on_content_block_start_event(&block) ⇒ Object
- #on_content_block_stop_event(&block) ⇒ Object
- #on_error_event(&block) ⇒ Object
- #on_event(&block) ⇒ Object
- #on_initial_response_event(&block) ⇒ Object
- #on_internal_server_exception_event(&block) ⇒ Object
- #on_message_start_event(&block) ⇒ Object
- #on_message_stop_event(&block) ⇒ Object
- #on_metadata_event(&block) ⇒ Object
- #on_runtime_client_error_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
- #on_validation_exception_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ InvokeHarnessStreamOutput
Returns a new instance of InvokeHarnessStreamOutput.
152 153 154 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 152 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.
221 222 223 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 221 def event_emitter @event_emitter end |
Instance Method Details
#on_content_block_delta_event(&block) ⇒ Object
164 165 166 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 164 def on_content_block_delta_event(&block) @event_emitter.on(:content_block_delta, block) if block_given? end |
#on_content_block_start_event(&block) ⇒ Object
160 161 162 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 160 def on_content_block_start_event(&block) @event_emitter.on(:content_block_start, block) if block_given? end |
#on_content_block_stop_event(&block) ⇒ Object
168 169 170 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 168 def on_content_block_stop_event(&block) @event_emitter.on(:content_block_stop, block) if block_given? end |
#on_error_event(&block) ⇒ Object
192 193 194 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 192 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 204 def on_event(&block) (&block) on_content_block_start_event(&block) on_content_block_delta_event(&block) on_content_block_stop_event(&block) (&block) (&block) on_internal_server_exception_event(&block) on_validation_exception_event(&block) on_runtime_client_error_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_initial_response_event(&block) ⇒ Object
196 197 198 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 196 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_server_exception_event(&block) ⇒ Object
180 181 182 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 180 def on_internal_server_exception_event(&block) @event_emitter.on(:internal_server_exception, block) if block_given? end |
#on_message_start_event(&block) ⇒ Object
156 157 158 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 156 def (&block) @event_emitter.on(:message_start, block) if block_given? end |
#on_message_stop_event(&block) ⇒ Object
172 173 174 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 172 def (&block) @event_emitter.on(:message_stop, block) if block_given? end |
#on_metadata_event(&block) ⇒ Object
176 177 178 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 176 def (&block) @event_emitter.on(:metadata, block) if block_given? end |
#on_runtime_client_error_event(&block) ⇒ Object
188 189 190 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 188 def on_runtime_client_error_event(&block) @event_emitter.on(:runtime_client_error, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
200 201 202 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 200 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_validation_exception_event(&block) ⇒ Object
184 185 186 |
# File 'lib/aws-sdk-bedrockagentcore/event_streams.rb', line 184 def on_validation_exception_event(&block) @event_emitter.on(:validation_exception, block) if block_given? end |