petter2025 commited on
Commit
1862ca1
·
verified ·
1 Parent(s): c2e178b

Create iot_event.py

Browse files
Files changed (1) hide show
  1. iot_event.py +12 -0
iot_event.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from agentic_reliability_framework.core.models.event import ReliabilityEvent
2
+ from pydantic import Field
3
+
4
+ class IoTEvent(ReliabilityEvent):
5
+ """
6
+ Event type for IoT / robotics sensor data.
7
+ Extends ReliabilityEvent with specific sensor fields.
8
+ """
9
+ temperature: float = Field(ge=0, description="Temperature reading in Celsius")
10
+ vibration: float = Field(ge=0, description="Vibration amplitude")
11
+ motor_current: float = Field(ge=0, description="Motor current in amperes")
12
+ position_error: float = Field(ge=0, description="Position tracking error")