Skip to content

Commit 116332e

Browse files
chore: test well-known interrupt model for chat
1 parent 2a557c8 commit 116332e

2 files changed

Lines changed: 10 additions & 3 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"
3-
version = "2.4.3"
3+
version = "2.4.4"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/_cli/_chat/_bridge.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ async def emit_interrupt_event(self, runtime_result: UiPathRuntimeResult):
211211
try:
212212
self._interrupt_id = str(uuid.uuid4())
213213

214+
value = {
215+
"toolCallId": str(uuid.uuid4()),
216+
"toolName": "test-tool",
217+
"inputSchema": {"type": "string"},
218+
"inputValue": "test-input-value",
219+
}
220+
214221
interrupt_event = UiPathConversationEvent(
215222
conversation_id=self.conversation_id,
216223
exchange=UiPathConversationExchangeEvent(
@@ -220,8 +227,8 @@ async def emit_interrupt_event(self, runtime_result: UiPathRuntimeResult):
220227
interrupt=UiPathConversationInterruptEvent(
221228
interrupt_id=self._interrupt_id,
222229
start=UiPathConversationInterruptStartEvent(
223-
type="coded-agent-interrupt",
224-
value=runtime_result.output,
230+
type="uipath_cas_tool_call_confirmation",
231+
value=value,
225232
),
226233
),
227234
),

0 commit comments

Comments
 (0)