An AI Agent that interacts with Windows OS at GUI level.
Python
from abc import ABC, abstractmethod
from dataclasses import asdict, dataclass
from typing import Any
@dataclass
class BaseTelemetryEvent(ABC):
@property
@abstractmethod
def event_name(self) -> str:
pass
@property
def properties(self) -> dict[str, Any]:
return {k: v for k, v in asdict(self).items()}
@dataclass
class AgentTelemetryEvent(BaseTelemetryEvent):
query: str
steps: int
max_steps: int
model: str
provider: str
use_vision: bool = False
answer: str | None = None
error: str | None = None
error_type: str | None = None
error_traceback: str | None = None
version: str | None = None
event_name: str = "agent_event"
is_success: bool = False