Skip to content

feat: resolve ArgumentEmail and ArgumentGroupName recipients at runtime#735

Open
dushyant-uipath wants to merge 1 commit intomainfrom
feat/escalation-argument-assignee
Open

feat: resolve ArgumentEmail and ArgumentGroupName recipients at runtime#735
dushyant-uipath wants to merge 1 commit intomainfrom
feat/escalation-argument-assignee

Conversation

@dushyant-uipath
Copy link
Copy Markdown

Summary

Updates resolve_recipient_value() in escalation_tool.py to handle the two new argument-driven recipient types. At runtime, each type's argument_name is looked up in the tool's input kwargs to produce a concrete TaskRecipient — the same pattern used for AssetRecipient resolution today.

Changed files

File Change
src/uipath_langchain/agent/tools/escalation_tool.py Added ArgumentEmailRecipient and ArgumentGroupNameRecipient handling; resolve_recipient_value accepts optional input_args; call site passes kwargs

Notes

  • Backward compatible — input_args defaults to None, all existing callers unaffected
  • Depends on UiPath/uipath-python companion PR shipping ArgumentEmailRecipient and ArgumentGroupNameRecipient

Related

Test plan

  • Configure an escalation with ArgumentEmail recipient, argument_name="myEmail", run with myEmail="test@example.com" — verify Action Center task created with correct assignee
  • Same for ArgumentGroupName
  • Verify existing recipient types resolve unchanged

🤖 Generated with Claude Code

Updates resolve_recipient_value() in escalation_tool to handle the two
new argument-driven recipient types. Each type carries an argument_name
that is looked up in the tool's runtime kwargs to produce a concrete
email or group-name TaskRecipient.

Follows the same pattern as AssetRecipient resolution. Backward
compatible -- input_args defaults to None.

Depends on uipath-python adding ArgumentEmailRecipient and
ArgumentGroupNameRecipient to uipath.agent.models.agent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant