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

Function _validate_threshold

scripts/jev_evaluation_runner.py:560–566  ·  view source on GitHub ↗
(name: str, value: float)

Source from the content-addressed store, hash-verified

558
559
560def _validate_threshold(name: str, value: float) -> None:
561 try:
562 _THRESHOLD.validate_python(value)
563 except ValidationError as e:
564 raise ValueError(
565 f"{name} must be a finite number in [0, 1], got {value!r}"
566 ) from e
567
568
569def _rate(numerator: int, denominator: int) -> float | None:

Callers 1

evaluateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected