From 324a63e5cc60437aa7cd9f868bfe30a381070614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Otgaar?= Date: Wed, 7 Jan 2026 14:45:42 +0100 Subject: [PATCH] chore: add styles to user_interrupt_agent --- .../user_interrupt/user_interrupt_agent.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/control_backend/agents/user_interrupt/user_interrupt_agent.py b/src/control_backend/agents/user_interrupt/user_interrupt_agent.py index b2efc41..8a4d2a2 100644 --- a/src/control_backend/agents/user_interrupt/user_interrupt_agent.py +++ b/src/control_backend/agents/user_interrupt/user_interrupt_agent.py @@ -71,6 +71,16 @@ class UserInterruptAgent(BaseAgent): "Forwarded button press (override) with context '%s' to BDIProgramManager.", event_context, ) + + elif event_type == "next_phase": + _ = 1 + + elif event_type == "reset_phase": + _ = 1 + + elif event_type == " reset_experiment": + _ = 1 + else: self.logger.warning( "Received button press with unknown type '%s' (context: '%s').", @@ -78,6 +88,15 @@ class UserInterruptAgent(BaseAgent): event_context, ) + async def _send_experiment_control_to_bdi_core(self, type): + out_msg = InternalMessage( + to=settings.agent_settings.bdi_core_name, + sender=self.name, + thread=type, + body="", + ) + await self.send(out_msg) + async def _send_to_speech_agent(self, text_to_say: str): """ method to send prioritized speech command to RobotSpeechAgent.