Class: Events::SubagentEvicted
- Inherits:
-
Object
- Object
- Events::SubagentEvicted
- Defined in:
- lib/events/subagent_evicted.rb
Overview
Emitted when Mneme::Runner advances the boundary past every remaining trace of a sub-agent — the spawn pair plus every from_{nickname} phantom pair. Subscribers broadcast the removal so clients drop the entry from the HUD panel.
session_id is the parent session (HUD owner), child_id is the sub-agent session whose traces just aged out.
Constant Summary collapse
- TYPE =
"subagent.evicted"
Instance Attribute Summary collapse
-
#child_id ⇒ Object
readonly
Returns the value of attribute child_id.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Instance Method Summary collapse
- #event_name ⇒ Object
-
#initialize(session_id:, child_id:) ⇒ SubagentEvicted
constructor
A new instance of SubagentEvicted.
- #to_h ⇒ Object
Constructor Details
#initialize(session_id:, child_id:) ⇒ SubagentEvicted
Returns a new instance of SubagentEvicted.
18 19 20 21 |
# File 'lib/events/subagent_evicted.rb', line 18 def initialize(session_id:, child_id:) @session_id = session_id @child_id = child_id end |
Instance Attribute Details
#child_id ⇒ Object (readonly)
Returns the value of attribute child_id.
14 15 16 |
# File 'lib/events/subagent_evicted.rb', line 14 def child_id @child_id end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
14 15 16 |
# File 'lib/events/subagent_evicted.rb', line 14 def session_id @session_id end |