@@ -201,9 +201,9 @@ def check_missing_scorer_data(results: List[ScoringResult]) -> List[ScoringResul
201
201
)
202
202
return results
203
203
204
- def check_experiment_type (eval_name : str , project_name : str , judgment_api_key : str , organization_id : str , is_sequence : bool ) -> None :
204
+ def check_experiment_type (eval_name : str , project_name : str , judgment_api_key : str , organization_id : str , is_trace : bool ) -> None :
205
205
"""
206
- Checks if the current experiment, if one exists, has the same type (examples of sequences )
206
+ Checks if the current experiment, if one exists, has the same type (examples of traces )
207
207
"""
208
208
try :
209
209
response = requests .post (
@@ -217,7 +217,7 @@ def check_experiment_type(eval_name: str, project_name: str, judgment_api_key: s
217
217
"eval_name" : eval_name ,
218
218
"project_name" : project_name ,
219
219
"judgment_api_key" : judgment_api_key ,
220
- "is_sequence " : is_sequence
220
+ "is_trace " : is_trace
221
221
},
222
222
verify = True
223
223
)
@@ -379,7 +379,7 @@ def run_trace_eval(trace_run: TraceRun, override: bool = False, ignore_errors: b
379
379
)
380
380
381
381
if trace_run .append :
382
- # Check that the current experiment, if one exists, has the same type (examples of sequences )
382
+ # Check that the current experiment, if one exists, has the same type (examples or traces )
383
383
check_experiment_type (
384
384
trace_run .eval_name ,
385
385
trace_run .project_name ,
@@ -462,7 +462,7 @@ def run_eval(evaluation_run: EvaluationRun, override: bool = False, ignore_error
462
462
)
463
463
464
464
if evaluation_run .append :
465
- # Check that the current experiment, if one exists, has the same type (examples of sequences )
465
+ # Check that the current experiment, if one exists, has the same type (examples of traces )
466
466
check_experiment_type (
467
467
evaluation_run .eval_name ,
468
468
evaluation_run .project_name ,
0 commit comments