Class: AgUiProtocol::Core::Events::ReasoningMessageEndEvent
- Inherits:
-
BaseEvent
- Object
- Types::Model
- BaseEvent
- AgUiProtocol::Core::Events::ReasoningMessageEndEvent
- Defined in:
- lib/ag_ui_protocol/core/events.rb
Overview
Signals the end of a reasoning message.
“‘ruby event = AgUiProtocol::Core::Events::ReasoningMessageEndEvent.new(message_id: “reason_msg_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) ⇒ ReasoningMessageEndEvent
constructor
A new instance of ReasoningMessageEndEvent.
- #to_h ⇒ Object
Methods inherited from Types::Model
Constructor Details
#initialize(message_id:, timestamp: nil, raw_event: nil) ⇒ ReasoningMessageEndEvent
Returns a new instance of ReasoningMessageEndEvent.
1253 1254 1255 1256 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1253 def initialize(message_id:, timestamp: nil, raw_event: nil) super(type: EventType::REASONING_MESSAGE_END, timestamp: , raw_event: raw_event) @message_id = end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
1247 1248 1249 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1247 def @message_id end |
Instance Method Details
#to_h ⇒ Object
1259 1260 1261 |
# File 'lib/ag_ui_protocol/core/events.rb', line 1259 def to_h super.merge(message_id: @message_id) end |