Skip to content

Commit 1d108d2

Browse files
committed
chore: dont emit execute tool call for confirmation
1 parent 3e7f29c commit 1d108d2

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/uipath_langchain/chat/hitl.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,13 @@ def request_approval(
127127
"""
128128
tool_call_id: str = tool_args.pop("tool_call_id")
129129

130-
# If this is a server-side tool (not client-side), execution follows immediately
131-
# after confirmation — mark this as the execution trigger so the bridge emits
132-
# executingToolCall. For client-side tools, the execution interrupt sets this instead.
133-
is_execution_trigger = not (tool.metadata or {}).get(
134-
IS_CONVERSATIONAL_CLIENT_SIDE_TOOL, False
135-
)
136-
137130
@durable_interrupt
138131
def ask_confirmation():
139132
return {
140133
"tool_call_id": tool_call_id,
141134
"tool_name": tool.name,
142135
"input": tool_args,
143-
"is_execution_phase": is_execution_trigger,
136+
"is_execution_phase": False,
144137
}
145138

146139
response = ask_confirmation()

0 commit comments

Comments
 (0)