Skip to content

Commit e7c4b7d

Browse files
cristipufuclaude
andcommitted
refactor: move conversational utils from cli to eval module
Move LegacyEvalChatMessagesMapper and related models from uipath._cli._evals._conversational_utils to uipath.eval.models._conversational_utils so the eval module has no dependency on the cli namespace. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9c4a0a2 commit e7c4b7d

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/uipath/eval/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
import click
99
from pydantic import ValidationError
1010

11-
from uipath._cli._evals._conversational_utils import UiPathLegacyEvalChatMessagesMapper
12-
1311
from .evaluators.base_evaluator import GenericBaseEvaluator
1412
from .evaluators.evaluator_factory import EvaluatorFactory
1513
from .mocks._types import InputMockingStrategy, LLMMockingStrategy
14+
from .models._conversational_utils import UiPathLegacyEvalChatMessagesMapper
1615
from .models.evaluation_set import (
1716
EvaluationItem,
1817
EvaluationSet,
File renamed without changes.

src/uipath/eval/models/evaluation_set.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
from pydantic import BaseModel, ConfigDict, Field
66
from pydantic.alias_generators import to_camel
77

8-
from uipath._cli._evals._conversational_utils import (
9-
LegacyConversationalEvalInput,
10-
LegacyConversationalEvalOutput,
11-
)
12-
138
from ..mocks._types import (
149
InputMockingStrategy,
1510
MockingStrategy,
1611
ToolSimulation,
1712
)
13+
from ._conversational_utils import (
14+
LegacyConversationalEvalInput,
15+
LegacyConversationalEvalOutput,
16+
)
1817

1918

2019
class EvaluatorReference(BaseModel):

tests/cli/eval/test_conversational_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for conversational eval utilities."""
22

3-
from uipath._cli._evals._conversational_utils import (
3+
from uipath.core.chat import UiPathInlineValue
4+
from uipath.eval.models._conversational_utils import (
45
LegacyConversationalEvalInput,
56
LegacyConversationalEvalInputAgentMessage,
67
LegacyConversationalEvalInputToolCall,
@@ -11,7 +12,6 @@
1112
LegacyConversationalEvalUserMessage,
1213
UiPathLegacyEvalChatMessagesMapper,
1314
)
14-
from uipath.core.chat import UiPathInlineValue
1515

1616

1717
class TestLegacyConversationalEvalInputToUiPathMessages:

0 commit comments

Comments
 (0)