Schema for the `TaskProgressLine` type.
| 8339 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 8340 | @dataclass |
| 8341 | class TaskProgressLine: |
| 8342 | """Schema for the `TaskProgressLine` type.""" |
| 8343 | |
| 8344 | message: str |
| 8345 | """Display message, e.g., "▸ bash", "✓ edit src/foo.ts\"""" |
| 8346 | |
| 8347 | timestamp: datetime |
| 8348 | """ISO 8601 timestamp when this event occurred""" |
| 8349 | |
| 8350 | @staticmethod |
| 8351 | def from_dict(obj: Any) -> 'TaskProgressLine': |
| 8352 | assert isinstance(obj, dict) |
| 8353 | message = from_str(obj.get("message")) |
| 8354 | timestamp = from_datetime(obj.get("timestamp")) |
| 8355 | return TaskProgressLine(message, timestamp) |
| 8356 | |
| 8357 | def to_dict(self) -> dict: |
| 8358 | result: dict = {} |
| 8359 | result["message"] = from_str(self.message) |
| 8360 | result["timestamp"] = self.timestamp.isoformat() |
| 8361 | return result |
| 8362 | |
| 8363 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 8364 | class TaskShellInfoAttachmentMode(Enum): |
no outgoing calls
no test coverage detected
searching dependent graphs…