MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / _parse_jsonl

Function _parse_jsonl

scripts/jev_evaluation_runner.py:548–557  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

546
547
548def _parse_jsonl(text: str) -> list[tuple[str, Any]]:
549 items: list[tuple[str, Any]] = []
550 for number, line in enumerate(text.split("\n"), start=1):
551 if not line.strip():
552 continue
553 try:
554 items.append((f"line {number}", json.loads(line)))
555 except ValueError as e:
556 raise ValueError(f"Invalid JSONL at line {number}: {e}") from e
557 return items
558
559
560def _validate_threshold(name: str, value: float) -> None:

Callers 1

load_datasetFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected