Class: AgUiProtocol::Core::Events::ReasoningEndEvent
- Inherits:
-
BaseEvent
- Object
- Types::Model
- BaseEvent
- AgUiProtocol::Core::Events::ReasoningEndEvent
- Defined in:
- lib/ag_ui_protocol/core/events.rb
Overview
Signals the end of a reasoning block.
“‘ruby event = AgUiProtocol::Core::Events::ReasoningEndEvent.new(message_id: “reason_1”) “`
Instance Attribute Summary collapse
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(message_id:, timestamp: nil, raw_event: nil) ⇒ ReasoningEndEvent
constructor
A new instance of ReasoningEndEvent.
- #to_h ⇒ Object
Methods inherited from Types::Model
Constructor Details
#initialize(message_id:, timestamp: nil, raw_event: nil) ⇒ ReasoningEndEvent
Returns a new instance of ReasoningEndEvent.
1320 1321 1322 1323 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1320 def initialize(message_id:, timestamp: nil, raw_event: nil) super(type: EventType::REASONING_END, timestamp: , raw_event: raw_event) @message_id = end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
1314 1315 1316 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1314 def @message_id end |
Instance Method Details
#to_h ⇒ Object
1326 1327 1328 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1326 def to_h super.merge(message_id: @message_id) end |