Skip to content

feat(retry): consume uipath-llm-client 1.17.0 and raise default max retries to 5#995

Merged
vldcmp-uipath merged 4 commits into
mainfrom
feat/retry-parity-max-retries-5
Jul 17, 2026
Merged

feat(retry): consume uipath-llm-client 1.17.0 and raise default max retries to 5#995
vldcmp-uipath merged 4 commits into
mainfrom
feat/retry-parity-max-retries-5

Conversation

@vldcmp-uipath

@vldcmp-uipath vldcmp-uipath commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion to UiPath/uipath-llm-client-python#107 (merged, released as 1.17.0). That PR restored retry parity between the shared LLM-client transports and the legacy in-repo chat-client retryers (BedrockRetryer/VertexRetryer):

  • 5-attempt budget with 5s/10s/20s/40s backoff capped at 120s (~75s absorption window vs ~6s before)
  • Retry-After honored on any error status (wait hint + forced retry, matching legacy)
  • HTTP 524 retryable again (UiPathOriginTimeoutError)
  • Connection-level failures retried: httpx.TimeoutException (incl. PoolTimeout under high concurrency), ConnectError, RemoteProtocolError

This PR consumes those releases and removes the last override that kept agent runs on the old budget: chat_model_factory passes max_retries explicitly on the new-clients path, so its DEFAULT_MAX_RETRIES = 3 silently defeated the new client defaults for every low-code agent run (uipath-agents doesn't pass max_retries, so this factory default is what agents get).

Changes

  • uipath-llm-client >=1.17.0,<1.18.0
  • uipath-langchain-client (all 7 extras lines) >=1.17.0,<1.18.0
  • DEFAULT_MAX_RETRIES 3 → 5 in chat_model_factory (legacy-retryer parity)
  • uipath-langchain 0.14.9 → 0.14.10, lockfile refreshed

🤖 Generated with Claude Code

…etries to 5

uipath-llm-client / uipath-langchain-client 1.17.0 restore retry parity with
the legacy in-repo chat-client retryers (5-attempt budget, 5s/120s backoff
window, Retry-After honored on any status, HTTP 524, and connection-level
failures). This bump consumes them and removes the last override that kept
agent runs on the old budget: chat_model_factory passed max_retries=3
explicitly on the new-clients path, defeating the new defaults.

- uipath-llm-client >=1.17.0,<1.18.0
- uipath-langchain-client (all extras) >=1.17.0,<1.18.0
- DEFAULT_MAX_RETRIES 3 -> 5 (parity with legacy BedrockRetryer/VertexRetryer)
- uipath-langchain 0.14.10

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 17, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates uipath-langchain to consume uipath-llm-client / uipath-langchain-client 1.17.0 and aligns the SDK’s default chat retry budget with the restored transport defaults/legacy behavior.

Changes:

  • Bump dependencies to uipath-llm-client>=1.17.0,<1.18.0 and uipath-langchain-client>=1.17.0,<1.18.0 (including extras).
  • Raise DEFAULT_MAX_RETRIES in chat_model_factory from 3 → 5 and update the docstring accordingly.
  • Bump package version 0.14.90.14.10 and refresh uv.lock.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
uv.lock Lockfile refresh to pick up uipath-llm-client / uipath-langchain-client 1.17.0 and the local version bump.
src/uipath_langchain/chat/chat_model_factory.py Increases the factory default retry budget to 5 and updates documentation around the default.
pyproject.toml Updates project version and dependency constraints to the 1.17.0 client releases.

Comment thread src/uipath_langchain/chat/chat_model_factory.py Outdated
its own default or use no limit).
timeout: Request timeout in seconds. Defaults to 895 seconds.
max_retries: Max retry count. Defaults to 3.
max_retries: Max retry count. Defaults to 5.
Comment thread src/uipath_langchain/chat/chat_model_factory.py
vldcmp-uipath and others added 3 commits July 17, 2026 14:11
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…h (Copilot review)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…factory (Copilot review)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@vldcmp-uipath
vldcmp-uipath merged commit 10f0007 into main Jul 17, 2026
44 checks passed
@vldcmp-uipath
vldcmp-uipath deleted the feat/retry-parity-max-retries-5 branch July 17, 2026 13:03
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.

3 participants