MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / iter_jsonl

Function iter_jsonl

src/harness/checkpoints/durable_execution.py:19–25  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

17
18
19def 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)

Callers 9

test_read_eventsMethod · 0.90
test_skip_empty_linesMethod · 0.90
test_empty_fileMethod · 0.90
runMethod · 0.85
from_fileMethod · 0.85
_load_replayMethod · 0.85

Calls

no outgoing calls

Tested by 6

test_read_eventsMethod · 0.72
test_skip_empty_linesMethod · 0.72
test_empty_fileMethod · 0.72