Conversation
Introduce a new event handler mechanism that allows users to hook into the message passing procedure via `Event`, `handle_event`, and `broadcast_event` functions. Events are broadcast before and after message rule calls, enabling debugging and monitoring capabilities. Key changes: - Add `event_handler.jl` with event types and handler interfaces - Extend `MessageMapping` to include an event handler parameter - Support both custom handler types and NamedTuple-based handlers - Add documentation for the events system - Include comprehensive tests for event handler functionality
🤖 Code FormattingYour PR still has some code formatting issues. I've updated PR #576 with the necessary formatting changes. You can merge that PR into this branch to fix the code style check. Alternatively, you can run |
🤖 Code FormattingYour PR still has some code formatting issues. I've updated PR #576 with the necessary formatting changes. You can merge that PR into this branch to fix the code style check. Alternatively, you can run |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #575 +/- ##
==========================================
+ Coverage 80.28% 80.33% +0.04%
==========================================
Files 211 212 +1
Lines 6265 6285 +20
==========================================
+ Hits 5030 5049 +19
- Misses 1235 1236 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🤖 Code FormattingYour PR still has some code formatting issues. I've updated PR #577 with the necessary formatting changes. You can merge that PR into this branch to fix the code style check. Alternatively, you can run |
🤖 Code FormattingYour PR still has some code formatting issues. I've updated PR #577 with the necessary formatting changes. You can merge that PR into this branch to fix the code style check. Alternatively, you can run |
🤖 Code FormattingYour PR still has some code formatting issues. I've updated PR #578 with the necessary formatting changes. You can merge that PR into this branch to fix the code style check. Alternatively, you can run |
This (draft) PR implements events and event handlers, which would be useful to observe the inference procedure inside ReactiveMP. Part of ReactiveBayes/RxInfer.jl#566