From 308bd52fb8f20cfb03819c0a4f84fddfcb7e3aaf Mon Sep 17 00:00:00 2001 From: GabrielVasilescu04 Date: Thu, 8 Jan 2026 10:34:37 +0200 Subject: [PATCH 1/2] chore: test well-known interrupt model for chat --- src/uipath/_cli/_chat/_bridge.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/uipath/_cli/_chat/_bridge.py b/src/uipath/_cli/_chat/_bridge.py index 2dfb95c58..fe2174890 100644 --- a/src/uipath/_cli/_chat/_bridge.py +++ b/src/uipath/_cli/_chat/_bridge.py @@ -211,6 +211,13 @@ async def emit_interrupt_event(self, runtime_result: UiPathRuntimeResult): try: self._interrupt_id = str(uuid.uuid4()) + value = { + "toolCallId": str(uuid.uuid4()), + "toolName": "test-tool", + "inputSchema": {"type": "object", "properties": {"test-property": {"type":"string"}}}, + "inputValue": {"test-property": "test-input-value"}, + } + interrupt_event = UiPathConversationEvent( conversation_id=self.conversation_id, exchange=UiPathConversationExchangeEvent( @@ -220,8 +227,8 @@ async def emit_interrupt_event(self, runtime_result: UiPathRuntimeResult): interrupt=UiPathConversationInterruptEvent( interrupt_id=self._interrupt_id, start=UiPathConversationInterruptStartEvent( - type="coded-agent-interrupt", - value=runtime_result.output, + type="uipath_cas_tool_call_confirmation", + value=value, ), ), ), From cb7e2814e14b482de4a2c8cd383c728bc92e66bb Mon Sep 17 00:00:00 2001 From: GabrielVasilescu04 Date: Mon, 12 Jan 2026 11:18:55 +0200 Subject: [PATCH 2/2] mock wait_for_resume mock wait_for_resume --- pyproject.toml | 2 +- src/uipath/_cli/_chat/_bridge.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cd11a5ad6..de35a8941 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath" -version = "2.4.10" +version = "2.4.100" description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools." readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath/_cli/_chat/_bridge.py b/src/uipath/_cli/_chat/_bridge.py index fe2174890..e9bbeb9e9 100644 --- a/src/uipath/_cli/_chat/_bridge.py +++ b/src/uipath/_cli/_chat/_bridge.py @@ -247,7 +247,7 @@ async def wait_for_resume(self) -> dict[str, Any]: Returns: Resume data from the interrupt end event """ - return {} + return {"decisions": [{"type": "approve"}]} @property def is_connected(self) -> bool: