Skip to content

fix: support uipath 2.12 (WorkloadExecution rename) and bump to 0.0.82#109

Merged
mjnovice merged 1 commit into
mainfrom
fix/uipath-2.12-compat
Jul 1, 2026
Merged

fix: support uipath 2.12 (WorkloadExecution rename) and bump to 0.0.82#109
mjnovice merged 1 commit into
mainfrom
fix/uipath-2.12-compat

Conversation

@mjnovice

@mjnovice mjnovice commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Why

uipath 2.12.0 renamed the eval framework's AgentExecutionWorkloadExecution (migration notes). uipath-dev pins uipath>=2.11.7, <2.12.0, which now conflicts with uipath-langchain>=0.13.16 (uipath>=2.12.1) — cross-langchain CI on uipath-python PRs fails at dependency resolution (example run).

Slack context: https://uipath-product.slack.com/archives/C07BTKVLVC3/p1782902385666139?thread_ts=1782860141.222669&cid=C07BTKVLVC3

Changes

  • pyproject.toml: bump uipath pin to >=2.12.0, <2.13.0; version 0.0.810.0.82
  • evaluators.py (custom evaluator scaffold template): migrate to v2.12 eval API — AgentExecutionWorkloadExecution, agent_execution param → workload_execution, .agent_output.workload_output
  • evaluators.py: fix scaffold justification type — BaseEvaluator[..., None] raised UiPathEvaluationError: Must be str or subclass of BaseEvaluatorJustification on instantiation (pre-existing bug, reproduced on 2.11.7 too); scaffolded evaluators now use str
  • uv.lock: regenerated (resolves to uipath 2.12.4)

Not changed (intentionally): eval_service.py's event.agent_output / event.agent_execution_timeEvalRunUpdatedEvent fields are explicitly unchanged in the 2.12 migration.

Verification

  • Scaffolded evaluator instantiates and runs evaluate() / validate_and_evaluate_criteria() against uipath 2.12.4
  • Full test suite: 21 passed
  • ruff check, ruff format --check, mypy src/ all clean

After merge, uipath-dev 0.0.82 needs a PyPI release to unblock the uipath-python PRs.

🤖 Generated with Claude Code

- Bump uipath pin to >=2.12.0, <2.13.0 (unblocks uipath-langchain cross-repo
  CI, which requires uipath>=2.12.1 and could no longer resolve alongside
  uipath-dev's <2.12.0 pin)
- Update custom evaluator scaffold template for the v2.12 eval rename:
  AgentExecution -> WorkloadExecution, agent_execution -> workload_execution,
  .agent_output -> .workload_output
- Fix scaffold template justification type: BaseEvaluator[..., None] raised
  UiPathEvaluationError on instantiation (pre-existing, also broken on
  2.11.7); use str instead
- Bump version to 0.0.82

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mjnovice mjnovice merged commit cdb14a3 into main Jul 1, 2026
11 checks passed
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