fix: support uipath 2.12 (WorkloadExecution rename) and bump to 0.0.82#109
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
uipath 2.12.0renamed the eval framework'sAgentExecution→WorkloadExecution(migration notes).uipath-devpinsuipath>=2.11.7, <2.12.0, which now conflicts withuipath-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: bumpuipathpin to>=2.12.0, <2.13.0; version0.0.81→0.0.82evaluators.py(custom evaluator scaffold template): migrate to v2.12 eval API —AgentExecution→WorkloadExecution,agent_executionparam →workload_execution,.agent_output→.workload_outputevaluators.py: fix scaffold justification type —BaseEvaluator[..., None]raisedUiPathEvaluationError: Must be str or subclass of BaseEvaluatorJustificationon instantiation (pre-existing bug, reproduced on 2.11.7 too); scaffolded evaluators now usestruv.lock: regenerated (resolves touipath 2.12.4)Not changed (intentionally):
eval_service.py'sevent.agent_output/event.agent_execution_time—EvalRunUpdatedEventfields are explicitly unchanged in the 2.12 migration.Verification
evaluate()/validate_and_evaluate_criteria()againstuipath 2.12.4ruff check,ruff format --check,mypy src/all cleanAfter merge,
uipath-dev 0.0.82needs a PyPI release to unblock the uipath-python PRs.🤖 Generated with Claude Code