Skip to content

Commit b8fbd1b

Browse files
rakesh-uipathclaude
andcommitted
fix(uipath): make OutputEvaluationCriteria a re-export from uipath-eval
Removes the local OutputEvaluationCriteria subclass and re-exports the canonical one from uipath_eval so isinstance checks across the hierarchy are consistent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bfc6fa0 commit b8fbd1b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/uipath/src/uipath/eval/evaluators/output_evaluator.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
extract_attachment_id,
1515
is_job_attachment_uri,
1616
)
17+
from uipath_eval.evaluators.output_evaluator import (
18+
OutputEvaluationCriteria as OutputEvaluationCriteria,
19+
)
20+
1721
from .base_evaluator import (
1822
BaseEvaluationCriteria,
1923
BaseEvaluator,
@@ -69,12 +73,6 @@ class LineByLineEvaluationResult(BaseModel):
6973
aggregation_method: AggregationMethod = AggregationMethod.AVERAGE
7074

7175

72-
class OutputEvaluationCriteria(BaseEvaluationCriteria):
73-
"""Base class for all output evaluation criteria."""
74-
75-
expected_output: dict[str, Any] | str = Field(..., alias="expectedOutput")
76-
77-
7876
T = TypeVar("T", bound=BaseEvaluationCriteria)
7977
T_OutputCriteria = TypeVar("T_OutputCriteria", bound=OutputEvaluationCriteria)
8078

0 commit comments

Comments
 (0)