Status of the task running result.
| 21 | |
| 22 | @dataclass(frozen=True) |
| 23 | class Status: |
| 24 | """Status of the task running result.""" |
| 25 | |
| 26 | completed_runs: int |
| 27 | total_runs: int |
| 28 | metrics: List[Dict[str, float]] |
| 29 | # A list of metric dictionaries, where each dictionary is from a single run. |
| 30 | message: Optional[str] = None |
| 31 | |
| 32 | @property |
| 33 | def ok(self) -> bool: |
| 34 | return self.completed_runs == self.total_runs |
| 35 | |
| 36 | |
| 37 | @dataclass(frozen=True) |
no outgoing calls