From c3d2536fabaa58b4d710d456b0365fa5026bc546 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:25:51 -0600 Subject: [PATCH 1/3] fix: exclude none conversational fields in output --- pyproject.toml | 2 +- src/uipath_langchain/agent/react/terminate_node.py | 5 ++++- uv.lock | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 74c355f53..78c7f3b49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-langchain" -version = "0.7.2" +version = "0.7.3" description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath_langchain/agent/react/terminate_node.py b/src/uipath_langchain/agent/react/terminate_node.py index dfcba3528..c2aa1d46a 100644 --- a/src/uipath_langchain/agent/react/terminate_node.py +++ b/src/uipath_langchain/agent/react/terminate_node.py @@ -76,7 +76,10 @@ def _handle_end_conversational( ] } validated = response_schema.model_validate(output) - return validated.model_dump(by_alias=True) + + # Dump with exclude_none to prevent UiPathConversation... fields with None values from being outputted (e.g. UiPathConversationContentPartData.isTranscript). + # May need to revisit if other output fields are added for conversational agents, where we want nulls outputted. + return validated.model_dump(by_alias=True, exclude_none=True) def create_terminate_node( diff --git a/uv.lock b/uv.lock index fa116eaeb..6fb6072de 100644 --- a/uv.lock +++ b/uv.lock @@ -3324,7 +3324,7 @@ wheels = [ [[package]] name = "uipath-langchain" -version = "0.7.2" +version = "0.7.3" source = { editable = "." } dependencies = [ { name = "httpx" }, From 98bdbd73a493212e70f3261d5d353dbbe24e4a06 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:25:51 -0600 Subject: [PATCH 2/3] fix: exclude none conversational fields in output --- src/uipath_langchain/agent/react/terminate_node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uipath_langchain/agent/react/terminate_node.py b/src/uipath_langchain/agent/react/terminate_node.py index dfcba3528..c2aa1d46a 100644 --- a/src/uipath_langchain/agent/react/terminate_node.py +++ b/src/uipath_langchain/agent/react/terminate_node.py @@ -76,7 +76,10 @@ def _handle_end_conversational( ] } validated = response_schema.model_validate(output) - return validated.model_dump(by_alias=True) + + # Dump with exclude_none to prevent UiPathConversation... fields with None values from being outputted (e.g. UiPathConversationContentPartData.isTranscript). + # May need to revisit if other output fields are added for conversational agents, where we want nulls outputted. + return validated.model_dump(by_alias=True, exclude_none=True) def create_terminate_node( From 6715ae0b6b8d6a4e3f1dfa9d0496be210438d366 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Thu, 26 Feb 2026 00:04:36 -0600 Subject: [PATCH 3/3] chore: upgrade versions --- pyproject.toml | 4 ++-- uv.lock | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 78c7f3b49..396af54c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "uipath-langchain" -version = "0.7.3" +version = "0.7.4" description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" dependencies = [ - "uipath>=2.9.8, <2.10.0", + "uipath>=2.9.10, <2.10.0", "uipath-core>=0.5.2, <0.6.0", "uipath-platform>=0.0.1, < 0.1.0", "uipath-runtime>=0.9.1, <0.10.0", diff --git a/uv.lock b/uv.lock index 6fb6072de..a49b83935 100644 --- a/uv.lock +++ b/uv.lock @@ -3280,7 +3280,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.9.8" +version = "2.9.10" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "applicationinsights" }, @@ -3303,9 +3303,9 @@ dependencies = [ { name = "uipath-platform" }, { name = "uipath-runtime" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/93/8c/38ba7bb7833526b157dae1307a3374bb0bb67506c9a88f5a75d2e6f41687/uipath-2.9.8.tar.gz", hash = "sha256:f3772aacc24cfb7da684eebcae1aaf5e4d70460631d5654a3f17745b56cc7596", size = 2444752, upload-time = "2026-02-25T15:30:11.75Z" } +sdist = { url = "https://files.pythonhosted.org/packages/4d/37/8b3620075ba519377829849947f17f321f9a6ae8bc79a9fb9762faf23b45/uipath-2.9.10.tar.gz", hash = "sha256:b0d9ea5765e72ea0559cea8d9aae16c4edba4b8aa520a6481dc0467393ac2cb2", size = 2445685, upload-time = "2026-02-25T23:29:27.003Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/2f/69/fe735727ea88745eb172bf51e54f586c5ee1e063af320774d36a3776ed7a/uipath-2.9.8-py3-none-any.whl", hash = "sha256:898cb117c9aca38b27c8af87673259372cd959898f4da3acd34fac87a9aa9157", size = 350372, upload-time = "2026-02-25T15:30:09.787Z" }, + { url = "https://files.pythonhosted.org/packages/10/1f/109d8a483416fe4c27c35c5fcda4426a6e2e342842d570fe3fa7a1c97fc8/uipath-2.9.10-py3-none-any.whl", hash = "sha256:e07e5c5a3e74d2aa0c9688a0c890135c19003c8cde919e894c21bd10ed105a4d", size = 350656, upload-time = "2026-02-25T23:29:24.197Z" }, ] [[package]] @@ -3324,7 +3324,7 @@ wheels = [ [[package]] name = "uipath-langchain" -version = "0.7.3" +version = "0.7.4" source = { editable = "." } dependencies = [ { name = "httpx" }, @@ -3391,7 +3391,7 @@ requires-dist = [ { name = "openinference-instrumentation-langchain", specifier = ">=0.1.56" }, { name = "pydantic-settings", specifier = ">=2.6.0" }, { name = "python-dotenv", specifier = ">=1.0.1" }, - { name = "uipath", specifier = ">=2.9.8,<2.10.0" }, + { name = "uipath", specifier = ">=2.9.10,<2.10.0" }, { name = "uipath-core", specifier = ">=0.5.2,<0.6.0" }, { name = "uipath-platform", specifier = ">=0.0.1,<0.1.0" }, { name = "uipath-runtime", specifier = ">=0.9.1,<0.10.0" },