create UserInterruptAgent with connection to UI

This commit is contained in:
Pim Hutting
2025-12-22 13:56:02 +00:00
committed by Luijkx,S.O.H. (Storm)
parent 3e7f2ef574
commit 0501a9fba3
15 changed files with 371 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class ButtonPressedEvent(BaseModel):
type: str
context: str

View File

@@ -38,6 +38,7 @@ class SpeechCommand(RIMessage):
endpoint: RIEndpoint = RIEndpoint(RIEndpoint.SPEECH)
data: str
is_priority: bool = False
class GestureCommand(RIMessage):
@@ -52,6 +53,7 @@ class GestureCommand(RIMessage):
RIEndpoint.GESTURE_SINGLE, RIEndpoint.GESTURE_TAG
]
data: str
is_priority: bool = False
@model_validator(mode="after")
def check_endpoint(self):