Skip to content

Conversation

giuliastf
Copy link
Collaborator

@giuliastf giuliastf commented Oct 14, 2025

Description
Add return_all_action flag to support full action object retrieval in HITL scenarios

Problem
Some applications require access to the complete action object (including status, metadata, and user decisions) when processing Human-In-The-Loop (HITL) responses, but the current implementation only returns action.data. This limitation prevents applications from accessing critical fields like the action status field that indicates user decisions (e.g., "Reject", "Approve").

Jira: PRODEV-237

@giuliastf giuliastf self-assigned this Oct 14, 2025
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Oct 14, 2025
@radu-mocanu
Copy link
Contributor

@radu-mocanu
Copy link
Contributor

I think we should do the same for InvokeProcess.
wdyt?

Copy link

@Copilot 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 return_all_action flag to support returning the complete action object (including status, metadata, and user decisions) in Human-In-The-Loop scenarios, instead of only returning action.data.

  • Added return_all_action boolean field to CreateAction model with default value of False
  • Updated HITL reader logic to check the flag and return serialized full action object when enabled
  • Added comprehensive test coverage for the new functionality

Reviewed Changes

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

File Description
src/uipath/models/interrupt_models.py Added return_all_action boolean field to CreateAction model
src/uipath/_cli/_runtime/_hitl.py Updated HITL reader to parse flag from payload and return full action object when enabled
tests/cli/test_hitl.py Added test case to verify full action object is returned when flag is true
pyproject.toml Updated version number and simplified include configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@giuliastf giuliastf force-pushed the feat/action_flag branch 6 times, most recently from 7c450ed to 53b900c Compare October 14, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants