Spaces:
Running
Running
File size: 1,040 Bytes
04dc214 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from pydantic import BaseModel
from typing import List, Optional
from datetime import datetime
class EdgeDevice(BaseModel):
"""
Represents a physical AI device or humanoid robot connected to the edge kit.
Attributes:
id: Unique identifier for the device
name: Display name for the device
type: Type/model of the device
status: Current status of the device (online, offline, error, maintenance)
connectionInfo: Connection information (IP, port, protocol)
safetyParameters: Safety settings and parameters for the device
lastSeen: Timestamp of last communication with the device
capabilities: List of capabilities the device supports
"""
id: str
name: str
type: str
status: str # online, offline, error, maintenance
connectionInfo: dict # IP address, port, communication protocol
safetyParameters: dict # speed limits, operational boundaries, emergency settings
lastSeen: Optional[datetime] = None
capabilities: List[str] = [] |