Class: Events::GoalCreated
- Inherits:
-
Object
- Object
- Events::GoalCreated
- Defined in:
- lib/events/goal_created.rb
Overview
Emitted after a Goal record is committed for the first time. The drain pipeline’s MeleteEnrichmentJob subscribes for the duration of one Melete run so a fresh goal triggers Mneme recall against the updated goal set before the user’s message reaches the LLM.
Constant Summary collapse
- TYPE =
"goal.created"
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:) ⇒ GoalCreated
constructor
A new instance of GoalCreated.
- #to_h ⇒ Object
Constructor Details
#initialize(session_id:, goal_id:) ⇒ GoalCreated
Returns a new instance of GoalCreated.
15 16 17 18 |
# File 'lib/events/goal_created.rb', line 15 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.
11 12 13 |
# File 'lib/events/goal_created.rb', line 11 def goal_id @goal_id end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
11 12 13 |
# File 'lib/events/goal_created.rb', line 11 def session_id @session_id end |