Skip to content

Commit 16850be

Browse files
authored
fix: exclude none conversational fields in output (#631)
1 parent 486b9fc commit 16850be

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.7.3"
3+
version = "0.7.4"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath>=2.9.8, <2.10.0",
8+
"uipath>=2.9.10, <2.10.0",
99
"uipath-core>=0.5.2, <0.6.0",
1010
"uipath-platform>=0.0.1, < 0.1.0",
1111
"uipath-runtime>=0.9.1, <0.10.0",

src/uipath_langchain/agent/react/terminate_node.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def _handle_end_conversational(
7676
]
7777
}
7878
validated = response_schema.model_validate(output)
79-
return validated.model_dump(by_alias=True)
79+
80+
# Dump with exclude_none to prevent UiPathConversation... fields with None values from being outputted (e.g. UiPathConversationContentPartData.isTranscript).
81+
# May need to revisit if other output fields are added for conversational agents, where we want nulls outputted.
82+
return validated.model_dump(by_alias=True, exclude_none=True)
8083

8184

8285
def create_terminate_node(

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)