This commit is contained in:
2026-09-17 01:16:30 +03:00
parent 018be076b9
commit 063f89758f
8 changed files with 389 additions and 840 deletions

View File

@@ -1,10 +1,10 @@
from dataclasses import dataclass
from typing import Literal, Any
from pydantic import BaseModel
import subprocess
@dataclass
class Event:
class Event(BaseModel):
"""Event within the timeline"""
id: int
@@ -25,8 +25,7 @@ class Event:
payload: str | None
"""Payload of the event. `None` for `voice`, image path for `vis`, OCR result for `ocr`"""
@dataclass
class Timeline:
class Timeline(BaseModel):
"""Timeline of events"""
events: list[Event]