(path: Path)
| 17 | |
| 18 | |
| 19 | def iter_jsonl(path: Path) -> Iterator[Dict[str, Any]]: |
| 20 | with Path(path).open("r", encoding="utf-8") as f: |
| 21 | for raw in f: |
| 22 | raw = raw.strip() |
| 23 | if not raw: |
| 24 | continue |
| 25 | yield json.loads(raw) |
| 26 | |
| 27 | |
| 28 | @dataclass(frozen=True) |
no outgoing calls