32 lines
699 B
Python
32 lines
699 B
Python
from dataclasses import dataclass, field
|
|
from typing import List
|
|
|
|
@dataclass
|
|
class Ticket:
|
|
"""
|
|
Represents a discrete unit of work within a track.
|
|
"""
|
|
id: str
|
|
description: str
|
|
status: str
|
|
assigned_to: str
|
|
depends_on: List[str] = field(default_factory=list)
|
|
|
|
@dataclass
|
|
class Track:
|
|
"""
|
|
Represents a collection of tickets that together form an architectural track or epic.
|
|
"""
|
|
id: str
|
|
description: str
|
|
tickets: List[Ticket] = field(default_factory=list)
|
|
|
|
@dataclass
|
|
class WorkerContext:
|
|
"""
|
|
Represents the context provided to a Tier 3 Worker for a specific ticket.
|
|
"""
|
|
ticket_id: str
|
|
model_name: str
|
|
messages: List[dict]
|