Class: Events::StartMelete
- Inherits:
-
Object
- Object
- Events::StartMelete
- Defined in:
- lib/events/start_melete.rb
Overview
Emitted when a user_message PendingMessage lands on an idle session. Melete subscribes via Events::Subscribers::MeleteKickoff and runs its enrichment loop — activating skills, reading workflows, refining goals, renaming the session — then either:
-
emits StartMneme when a goal changed during the run, so Mneme can recall against the fresh goal set, or
-
emits StartProcessing when goals were untouched, skipping Mneme entirely (no new search seed to recall against).
First stage of the start_melete → (start_mneme) → start_processing chain that orchestrates context enrichment before the LLM is called.
Constant Summary collapse
- TYPE =
"session.start_melete"
Instance Attribute Summary collapse
-
#pending_message_id ⇒ Object
readonly
Returns the value of attribute pending_message_id.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Instance Method Summary collapse
- #event_name ⇒ Object
-
#initialize(session_id:, pending_message_id: nil) ⇒ StartMelete
constructor
A new instance of StartMelete.
- #to_h ⇒ Object
Constructor Details
#initialize(session_id:, pending_message_id: nil) ⇒ StartMelete
Returns a new instance of StartMelete.
23 24 25 26 |
# File 'lib/events/start_melete.rb', line 23 def initialize(session_id:, pending_message_id: nil) @session_id = session_id @pending_message_id = end |
Instance Attribute Details
#pending_message_id ⇒ Object (readonly)
Returns the value of attribute pending_message_id.
19 20 21 |
# File 'lib/events/start_melete.rb', line 19 def @pending_message_id end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
19 20 21 |
# File 'lib/events/start_melete.rb', line 19 def session_id @session_id end |