Skip to content

feat(agent): map EXECUTION_DEADLINE_EXCEEDED to a clear runtime error (PC-4871) - #1043

Draft
vldcmp-uipath wants to merge 1 commit into
mainfrom
feat/pc-4871-execution-deadline-error-mapping
Draft

feat(agent): map EXECUTION_DEADLINE_EXCEEDED to a clear runtime error (PC-4871)#1043
vldcmp-uipath wants to merge 1 commit into
mainfrom
feat/pc-4871-execution-deadline-error-mapping

Conversation

@vldcmp-uipath

@vldcmp-uipath vldcmp-uipath commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Description

When an LLM call fails with uipath-llm-client's UiPathExecutionDeadlineError (the run's execution deadline has passed — UiPath/uipath-llm-client-python#124), raise_for_llm_client_error now surfaces a dedicated AGENT_RUNTIME.EXECUTION_DEADLINE_EXCEEDED error 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.
  • Existing exception suites (28 tests) green against the new llm-client.

Jira

PC-4871

🤖 Generated with Claude Code

… (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
vldcmp-uipath force-pushed the feat/pc-4871-execution-deadline-error-mapping branch from 7761973 to d1b0008 Compare August 19, 2026 13:00
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube Cloud

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