"""
Sentinel Brain analysis result.
"""

from dataclasses import dataclass, field

from sentinel.brain.findings import Finding


@dataclass
class AnalysisResult:
    """
    Complete result returned by Sentinel Brain.
    """

    health_score: float
    status: str
    analysis: str
    recommendation: str
    confidence: float

    prediction_horizon_days: int | None = None

    thermal_score: float | None = None
    electrical_score: float | None = None
    cooling_score: float | None = None
    sensor_score: float | None = None

    root_cause_code: str | None = None
    root_cause: str | None = None
    root_cause_confidence: float | None = None
    root_cause_explanation: str | None = None

    risk_index: float | None = None
    failure_probability_30d: float | None = None
    prediction_confidence: float | None = None
    prediction_explanation: str | None = None

    findings: list[Finding] = field(default_factory=list)
