feat: commit before I can merge new changes

ref: N25B-400
This commit is contained in:
Pim Hutting
2026-01-07 22:41:59 +01:00
parent be6bbbb849
commit 365d449666
3 changed files with 40 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ class UserInterruptAgent(BaseAgent):
self.pub_socket.connect(settings.zmq_settings.internal_pub_address)
self.add_behavior(self._receive_button_event())
self.add_behavior(self.test_sending_behaviour())
# self.add_behavior(self.test_sending_behaviour())
async def _receive_button_event(self):
"""
@@ -99,6 +99,23 @@ class UserInterruptAgent(BaseAgent):
event_context,
)
async def handle_message(self, msg: InternalMessage):
"""
Handle commands received from other internal Python agents.
"""
match msg.thread:
case "transition_phase":
new_phase_id = msg.body
self.logger.info(f"Phase transition detected: {new_phase_id}")
payload = {"type": "phase_update", "phase_id": new_phase_id}
await self._send_experiment_update(payload)
case _:
self.logger.debug(f"Received internal message on unhandled thread: {msg.thread}")
# moet weg!!!!!
async def test_sending_behaviour(self):
self.logger.info("Starting simple test sending behaviour...")