from __future__ import annotations

from dataclasses import dataclass, field


@dataclass(slots=True)
class SemanticRoleRecord:
    symbol_id: str
    symbol_name: str
    role: str
    confidence: float
    responsibilities: list[str] = field(default_factory=list)
    dataflow_participation: int = 0
    execution_trace_proximity: int = 0
    start_line: int = 1
    end_line: int = 1
