feat: emit new executing tool call event after any tool confirmation #115
Merged
norman-le merged 6 commits intoMay 29, 2026
Merged
Conversation
e378623 to
9cbd2a8
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the chat runtime/bridge contract to support a new executingToolCall event emitted after a tool-call confirmation resumes, enabling clients to reliably run client-side tools with the final confirmed input.
Changes:
- Adds
emit_executing_tool_call(tool_call_id, tool_input)toUiPathChatProtocol. - Updates
UiPathChatRuntime.stream()to emitexecutingToolCallafter a resume payload indicates an approved tool-call confirmation. - Extracts the
tool_call_idand confirmed input from the API resume request/resume payload before resuming the underlying runtime.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/uipath/runtime/chat/runtime.py |
Emits executingToolCall after approved confirmations so clients can run client-side tools with final inputs. |
src/uipath/runtime/chat/protocol.py |
Extends the chat bridge protocol with emit_executing_tool_call to support the new event. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9cbd2a8 to
aa9841f
Compare
maxduu
reviewed
May 28, 2026
maxduu
reviewed
May 28, 2026
maxduu
reviewed
May 28, 2026
maxduu
approved these changes
May 28, 2026
Contributor
|
Oh also looks like SonarCloud failed, maybe you can generate some quick tests. Also needs pyproject/uv.lock bump as well |
maxduu
reviewed
May 28, 2026
JoshParkSJ
approved these changes
May 28, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Videos in CAS localhost (Agent Builder changes already published, but this will be the debug experience as well when the sdk is upgraded):
Without tool confirmation for client side tool:
Screen.Recording.2026-05-13.at.9.32.26.PM.mov
With tool confirmation for client side tool:
Screen.Recording.2026-05-13.at.9.27.56.PM.mov
URT Eval:

Related to changes in other PRs:
CAS: https://github.com/UiPath/AgentInterfaces/pull/949
uipath-langchain-python (message mapping and firing executing tool call if no confirmation): UiPath/uipath-langchain-python#856
uipath-python (definitions): UiPath/uipath-python#1638
uipath-agents-python (skipping for evals, so it can be mocked): https://github.com/UiPath/uipath-agents-python/pull/485
uipath-runtime-python (protocol changing to emit executing tool call event after confirmation): #115
Another Agents PR fixing some issues with debug: https://github.com/UiPath/Agents/pull/5250