Skip to content

Commit a7ae98d

Browse files
author
Valentina Bojan
committed
fix: wrap the tool_calls in an object to be sent to the hitl application
1 parent 6fa3050 commit a7ae98d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uipath_langchain/agent/guardrails/actions/escalate_action.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ def _extract_llm_escalation_content(
558558
"args": tool_call.get("args"),
559559
}
560560
content_list.append(tool_call_data)
561-
return json.dumps(content_list)
561+
tool_calls_obj = {"tool_calls": content_list}
562+
return json.dumps(tool_calls_obj)
562563

563564
# Fallback for other message types
564565
return json.dumps(get_message_content(cast(AnyMessage, message)))

0 commit comments

Comments
 (0)