Class: AgUiProtocol::Core::Events::ThinkingStartEvent
- Inherits:
-
BaseEvent
- Object
- Types::Model
- BaseEvent
- AgUiProtocol::Core::Events::ThinkingStartEvent
- Defined in:
- lib/ag_ui_protocol/core/events.rb
Overview
Event indicating the start of a thinking step event.
“‘ruby event = AgUiProtocol::Core::Events::ThinkingStartEvent.new(title: “step”) “`
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(title: nil, timestamp: nil, raw_event: nil) ⇒ ThinkingStartEvent
constructor
A new instance of ThinkingStartEvent.
- #to_h ⇒ Object
Methods inherited from Types::Model
Constructor Details
#initialize(title: nil, timestamp: nil, raw_event: nil) ⇒ ThinkingStartEvent
Returns a new instance of ThinkingStartEvent.
561 562 563 564 |
# File 'lib/ag_ui_protocol/core/events.rb', line 561 def initialize(title: nil, timestamp: nil, raw_event: nil) super(type: EventType::THINKING_START, timestamp: , raw_event: raw_event) @title = title end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
555 556 557 |
# File 'lib/ag_ui_protocol/core/events.rb', line 555 def title @title end |
Instance Method Details
#to_h ⇒ Object
567 568 569 |
# File 'lib/ag_ui_protocol/core/events.rb', line 567 def to_h super.merge(title: @title) end |