15 lines
350 B
Python
15 lines
350 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class ButtonPressedEvent(BaseModel):
|
|
"""
|
|
Represents a button press event from the UI.
|
|
|
|
:ivar type: The type of event (e.g., 'speech', 'gesture', 'override').
|
|
:ivar context: Additional data associated with the event (e.g., speech text, gesture name,
|
|
or ID).
|
|
"""
|
|
|
|
type: str
|
|
context: str
|