Skip to content

feat: emit new event during interrupt trigger#111

Open
norman-le wants to merge 1 commit intomainfrom
feat/jar-9629-client-side-tools-cas-urt
Open

feat: emit new event during interrupt trigger#111
norman-le wants to merge 1 commit intomainfrom
feat/jar-9629-client-side-tools-cas-urt

Conversation

@norman-le
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 1, 2026 21:17
@norman-le norman-le requested a review from a team as a code owner May 1, 2026 21:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new chat-bridge event to be emitted during API-trigger interrupt handling so clients can be notified that a tool call is about to execute.

Changes:

  • Emit a new executingToolCall-style event during API-trigger suspension handling in UiPathChatRuntime.
  • Extend UiPathChatProtocol with emit_executing_tool_call_event(...).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/uipath/runtime/chat/runtime.py Emits the new “executing tool call” event alongside existing interrupt handling before waiting for resume.
src/uipath/runtime/chat/protocol.py Adds the new protocol method and documents its intended usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 105 to +110
await self.chat_bridge.emit_interrupt_event(trigger)
await (
self.chat_bridge.emit_executing_tool_call_event(
trigger
)
)
Comment on lines +106 to +109
await (
self.chat_bridge.emit_executing_tool_call_event(
trigger
)
Comment on lines 105 to +110
await self.chat_bridge.emit_interrupt_event(trigger)
await (
self.chat_bridge.emit_executing_tool_call_event(
trigger
)
)
Comment on lines +51 to +53
Called for every durable interrupt (Paths 2/3/4) right before
wait_for_resume(). The bridge extracts tool info from the trigger
and emits the event to the client.
@@ -103,6 +103,11 @@ async def stream(

for trigger in api_triggers:
await self.chat_bridge.emit_interrupt_event(trigger)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@norman-le we already have emit_interrupt_event...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants