Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath"
version = "2.7.9"
version = "2.7.10"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/uipath/eval/evaluators/llm_as_judge_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LLMJudgeMixin(BaseEvaluator[T, C, str]):
"""Mixin that provides common LLM judge functionality."""

system_prompt: str = LLMJudgePromptTemplates.LLM_JUDGE_SYSTEM_PROMPT
output_schema: type[BaseModel] = LLMJudgeOutputSchema
output_schema: type[BaseModel] = Field(default=LLMJudgeOutputSchema, exclude=True)
actual_output_placeholder: str = "{{ActualOutput}}"
expected_output_placeholder: str = "{{ExpectedOutput}}"
llm_service: Callable[..., Any] | None = Field(
Expand Down
8 changes: 5 additions & 3 deletions src/uipath/eval/evaluators/llm_judge_output_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TypeVar

from pydantic import BaseModel
from pydantic import BaseModel, Field

from uipath.eval.models import EvaluatorType

Expand Down Expand Up @@ -85,7 +85,7 @@ class LLMJudgeOutputEvaluator(BaseLLMOutputEvaluator[LLMJudgeOutputEvaluatorConf
"""

system_prompt: str = LLMJudgePromptTemplates.LLM_JUDGE_SYSTEM_PROMPT
output_schema: type[BaseModel] = LLMJudgeOutputSchema
output_schema: type[BaseModel] = Field(default=LLMJudgeOutputSchema, exclude=True)

@classmethod
def get_evaluator_id(cls) -> str:
Expand All @@ -105,7 +105,9 @@ class LLMJudgeStrictJSONSimilarityOutputEvaluator(
system_prompt: str = (
LLMJudgePromptTemplates.LLM_JUDGE_STRICT_JSON_SIMILARITY_SYSTEM_PROMPT
)
output_schema: type[BaseModel] = LLMJudgeStrictJSONSimilarityOutputSchema
output_schema: type[BaseModel] = Field(
default=LLMJudgeStrictJSONSimilarityOutputSchema, exclude=True
)

@classmethod
def get_evaluator_id(cls) -> str:
Expand Down
6 changes: 4 additions & 2 deletions src/uipath/eval/evaluators/llm_judge_trajectory_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Any, TypeVar

from pydantic import BaseModel
from pydantic import BaseModel, Field

from .._helpers.evaluators_helpers import trace_to_str
from ..models import (
Expand Down Expand Up @@ -57,7 +57,9 @@ class BaseLLMTrajectoryEvaluator(LLMJudgeMixin[TrajectoryEvaluationCriteria, TC]
including output extraction, prompt formatting, and evaluation criteria handling.
"""

output_schema: type[BaseModel] = LLMJudgeTrajectoryOutputSchema
output_schema: type[BaseModel] = Field(
default=LLMJudgeTrajectoryOutputSchema, exclude=True
)
actual_output_placeholder: str = "{{AgentRunHistory}}"
expected_output_placeholder: str = "{{ExpectedAgentBehavior}}"
user_input_placeholder: str = "{{UserOrSyntheticInput}}"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading