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

Function _write_jsonl

tests/tool_tests/test_trace_replay.py:8–12  ·  view source on GitHub ↗
(path: Path, events: list[dict])

Source from the content-addressed store, hash-verified

6
7
8def _write_jsonl(path: Path, events: list[dict]) -> None:
9 path.parent.mkdir(parents=True, exist_ok=True)
10 with path.open("w", encoding="utf-8") as f:
11 for ev in events:
12 f.write(json.dumps(ev, ensure_ascii=False) + "\n")
13
14
15def test_mcpclient_replay_applies_fs_write_side_effect(tmp_path: Path):

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected