Class: Pikuri::Agent::Event::UserTurn
- Inherits:
-
Data
- Object
- Data
- Pikuri::Agent::Event::UserTurn
- Defined in:
- lib/pikuri/agent/event.rb
Overview
User input for a turn (+mid_loop: false+, the default) or a host
injection delivered mid-loop (+mid_loop: true+, drained from
Control::Interloper). The flag lets a listener treating
UserTurn as a turn boundary tell a fresh turn from an in-loop
injection. Emitted by Pikuri::Agent#run_loop at turn start, and when an
interloper item drains in after a tool batch.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#mid_loop ⇒ Object
readonly
Returns the value of attribute mid_loop.
Instance Method Summary collapse
-
#initialize(content:, mid_loop: false) ⇒ UserTurn
constructor
A new instance of UserTurn.
Constructor Details
#initialize(content:, mid_loop: false) ⇒ UserTurn
Returns a new instance of UserTurn.
26 27 28 |
# File 'lib/pikuri/agent/event.rb', line 26 def initialize(content:, mid_loop: false) super end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
22 23 24 |
# File 'lib/pikuri/agent/event.rb', line 22 def content @content end |
#mid_loop ⇒ Object (readonly)
Returns the value of attribute mid_loop
22 23 24 |
# File 'lib/pikuri/agent/event.rb', line 22 def mid_loop @mid_loop end |