Skip to content

Commit 64ced54

Browse files
committed
fix: send missing node state updates events
1 parent 0858768 commit 64ced54

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

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-langchain"
3-
version = "0.5.49"
3+
version = "0.5.50"
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"

src/uipath_langchain/runtime/runtime.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ async def stream(
167167
for node_name, agent_data in data.items():
168168
if node_name in ("__metadata__",):
169169
continue
170-
if isinstance(agent_data, dict):
171-
state_event = UiPathRuntimeStateEvent(
172-
payload=serialize_output(agent_data),
173-
node_name=node_name,
174-
)
175-
yield state_event
170+
state_event = UiPathRuntimeStateEvent(
171+
payload=serialize_output(agent_data)
172+
if isinstance(agent_data, dict)
173+
else {},
174+
node_name=node_name,
175+
)
176+
yield state_event
176177

177178
# Extract output from final chunk
178179
graph_output = self._extract_graph_result(final_chunk)

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)