Skip to content

docs: document recipient type for agent HITL actions#900

Merged
apetraru-uipath merged 1 commit into
mainfrom
docs/hitl-agent-recipient-types
Jun 10, 2026
Merged

docs: document recipient type for agent HITL actions#900
apetraru-uipath merged 1 commit into
mainfrom
docs/hitl-agent-recipient-types

Conversation

@apetraru-uipath

Copy link
Copy Markdown
Contributor

What changed?

The Human-in-the-Loop docs (docs/human_in_the_loop.md) only documented the legacy assignee string and never mentioned the structured recipient field, even though it has shipped on the agent HITL interrupt models since uipath PRs #1161 and #1274. A doc edit made after those PRs (#789) still missed it.

This corrects that mismatch:

  • Documents the recipient (Optional[TaskRecipient]) attribute on CreateTask, CreateEscalation, WaitTask, and WaitEscalation.
  • Adds an "Assigning the action to a user or group" section describing the TaskRecipient model (type, value, display_name), its import path (uipath.platform.action_center.tasks), and the TaskRecipientType values: EMAIL, USER_ID, GROUP_NAME, GROUP_ID.
  • Documents that recipient takes precedence over assignee when both are set.
  • Adds runnable examples assigning to a user (by email) and to a group (by name).

Scope is agent HITL only — guardrails escalation docs are untouched.

How has this been tested?

Docs-only change (no code). Every documented fact was verified against the installed uipath SDK (v2.10.79):

  • recipient: TaskRecipient | None exists on CreateTask/CreateEscalation/WaitTask/WaitEscalation (interrupt_models.py).
  • TaskRecipient(type=..., value=...) constructs from uipath.platform.action_center.tasks; enum values confirmed (UserId/GroupId/UserEmail/GroupName).
  • Precedence confirmed in _tasks_service.py (_assign_task_spec: if task_recipient: ... elif assignee:).

Are there any breaking changes?

  • None

The HITL docs covered only the `assignee` string and omitted the
`recipient` (TaskRecipient) field that ships on CreateTask /
CreateEscalation / WaitTask / WaitEscalation. Document the structured
recipient model, the TaskRecipientType values (EMAIL, USER_ID,
GROUP_NAME, GROUP_ID), the import path, and that `recipient` takes
precedence over `assignee`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 11:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Human-in-the-Loop guide to document the structured recipient: Optional[TaskRecipient] assignment mechanism for agent HITL interrupt models, clarifying how to target users/groups and how it interacts with the legacy assignee field.

Changes:

  • Documented recipient on CreateTask, WaitTask, CreateEscalation, and WaitEscalation, including precedence over assignee.
  • Added a dedicated “Assigning the action to a user or group” section describing TaskRecipient / TaskRecipientType.
  • Added runnable examples assigning actions to a user (email) and to a group (name).

@sonarqubecloud

Copy link
Copy Markdown

@apetraru-uipath apetraru-uipath merged commit 0fee6a9 into main Jun 10, 2026
50 checks passed
@apetraru-uipath apetraru-uipath deleted the docs/hitl-agent-recipient-types branch June 10, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants