Skip to content

Commit 5e6097c

Browse files
authored
docs(experiments): evaluation value cannot be None (#1446)
1 parent 608c64a commit 5e6097c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

langfuse/experiment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class Evaluation:
107107
- Numeric (int/float): For quantitative metrics like accuracy (0.85), BLEU (0.42)
108108
- String: For categorical results like "positive", "negative", "neutral"
109109
- Boolean: For binary assessments like "passes_safety_check"
110-
- None: When evaluation cannot be computed (missing data, API errors, etc.)
111110
comment: Optional human-readable explanation of the evaluation result.
112111
Useful for providing context, explaining scoring rationale, or noting
113112
special conditions. Displayed in Langfuse UI for interpretability.
@@ -186,7 +185,7 @@ def __init__(
186185
self,
187186
*,
188187
name: str,
189-
value: Union[int, float, str, bool, None],
188+
value: Union[int, float, str, bool],
190189
comment: Optional[str] = None,
191190
metadata: Optional[Dict[str, Any]] = None,
192191
data_type: Optional[ScoreDataType] = None,

0 commit comments

Comments
 (0)