Skip to content

Commit c2308d0

Browse files
authored
fix: exclude none for conversational eval expected output type (#1374)
1 parent a508dd5 commit c2308d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.9.9"
3+
version = "2.9.10"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/eval/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def migrate_evaluation_item(
152152
evaluation.conversational_inputs
153153
)
154154
evaluation.inputs["messages"] = [
155-
message.model_dump(by_alias=True)
155+
message.model_dump(by_alias=True, exclude_none=True)
156156
for message in conversational_messages_input
157157
]
158158

@@ -163,7 +163,7 @@ def migrate_evaluation_item(
163163
evaluation.expected_output[
164164
"uipath__agent_response_messages"
165165
] = [
166-
message.model_dump(by_alias=True)
166+
message.model_dump(by_alias=True, exclude_none=True)
167167
for message in conversational_messages_expected_output
168168
]
169169

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)