Class: Events::GoalUpdated
- Inherits:
-
Object
- Object
- Events::GoalUpdated
- Defined in:
- lib/events/goal_updated.rb
Overview
Emitted after a Goal‘s description is changed and the change is committed. Status-only updates (finish_goal, cascade completion, mark_goal_completed) do not emit — a completed goal carries no new search seed for Mneme.
The drain pipeline’s MeleteEnrichmentJob subscribes for the duration of one Melete run so a refined goal triggers Mneme recall against the updated wording before the user’s message reaches the LLM.
Constant Summary collapse
- TYPE =
"goal.updated"
Instance Attribute Summary collapse
-
#goal_id ⇒ Object
readonly
Returns the value of attribute goal_id.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Instance Method Summary collapse
- #event_name ⇒ Object
-
#initialize(session_id:, goal_id:) ⇒ GoalUpdated
constructor
A new instance of GoalUpdated.
- #to_h ⇒ Object
Constructor Details
#initialize(session_id:, goal_id:) ⇒ GoalUpdated
Returns a new instance of GoalUpdated.
19 20 21 22 |
# File 'lib/events/goal_updated.rb', line 19 def initialize(session_id:, goal_id:) @session_id = session_id @goal_id = goal_id end |
Instance Attribute Details
#goal_id ⇒ Object (readonly)
Returns the value of attribute goal_id.
15 16 17 |
# File 'lib/events/goal_updated.rb', line 15 def goal_id @goal_id end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
15 16 17 |
# File 'lib/events/goal_updated.rb', line 15 def session_id @session_id end |