Coverage for lintro / ai / models / result.py: 100%
10 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""AI enhancement result dataclass."""
3from __future__ import annotations
5from dataclasses import dataclass
8@dataclass
9class AIResult:
10 """Structured result of an AI enhancement run.
12 Returned by ``run_ai_enhancement`` so callers can influence
13 the process exit code based on AI outcomes.
15 Attributes:
16 fixes_applied: Number of AI fixes successfully applied.
17 fixes_failed: Number of AI fixes that failed to apply.
18 unfixed_issues: Number of issues that remain unfixed after AI.
19 budget_exceeded: Whether the cost budget was exceeded.
20 error: Whether an AI error occurred during the run.
21 message: Human-readable error or status message.
22 """
24 fixes_applied: int = 0
25 fixes_failed: int = 0
26 unfixed_issues: int = 0
27 budget_exceeded: bool = False
28 error: bool = False
29 message: str = ""