feat(agent): map EXECUTION_DEADLINE_EXCEEDED to a clear runtime error (PC-4871) - #1043
Draft
vldcmp-uipath wants to merge 1 commit into
Draft
feat(agent): map EXECUTION_DEADLINE_EXCEEDED to a clear runtime error (PC-4871)#1043vldcmp-uipath wants to merge 1 commit into
vldcmp-uipath wants to merge 1 commit into
Conversation
… (PC-4871) When an LLM call fails with uipath-llm-client's UiPathExecutionDeadlineError (the run's execution deadline has passed), the agent now surfaces a dedicated AGENT_RUNTIME.EXECUTION_DEADLINE_EXCEEDED error with the original detail instead of the generic unexpected-error message (should_wrap=False). Requires uipath-llm-client >= 1.18.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vldcmp-uipath
force-pushed
the
feat/pc-4871-execution-deadline-error-mapping
branch
from
August 19, 2026 13:00
7761973 to
d1b0008
Compare
|
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.


Description
When an LLM call fails with
uipath-llm-client'sUiPathExecutionDeadlineError(the run's execution deadline has passed — UiPath/uipath-llm-client-python#124),raise_for_llm_client_errornow surfaces a dedicatedAGENT_RUNTIME.EXECUTION_DEADLINE_EXCEEDEDerror carrying the original detail, instead of falling through to the generic "unexpected error, contact your Administrator" message (should_wrap=False, category SYSTEM).Depends on
uipath-llm-client >= 1.18.0— must merge together with (or after) the dependency bump; the new enum member does not exist in the currently locked 1.17.x, so CI stays red until then. Tests were verified locally against the llm-client feature branch.Part of the PC-4871 chain: llm-client deadline mechanism (UiPath/uipath-llm-client-python#124) → AgentHub header pass-through (UiPath/AgentHubService#1632, merged path) → runtime wiring (UiPath/uipath-agents-python#693) → this error surfacing.
Testing
test_execution_deadline_maps_to_agent_runtime_error— code, SYSTEM category, unwrapped detail, cause chaining.test_unknown_error_code_does_not_raise— unknown codes still fall through.Jira
PC-4871
🤖 Generated with Claude Code