diff --git a/pyproject.toml b/pyproject.toml index 78c7f3b4..396af54c 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/src/uipath_langchain/agent/react/terminate_node.py b/src/uipath_langchain/agent/react/terminate_node.py index dfcba352..c2aa1d46 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 6fb6072d..a49b8393 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" },