feat: adopt uipath-llm-client 1.18.0 coded-playground agenthub_config default - #1035
Draft
al3xanndru wants to merge 1 commit into
Draft
feat: adopt uipath-llm-client 1.18.0 coded-playground agenthub_config default#1035al3xanndru wants to merge 1 commit into
al3xanndru wants to merge 1 commit into
Conversation
… default Bump uipath-llm-client / uipath-langchain-client pins to >=1.18.0,<1.19.0 so directly-constructed coded-agent chat clients default agenthub_config to "codedagentsplayground" at design time (local / Studio Web / debug) and to None when deployed (-> AgentHub.LLM). Update tests/chat/test_agenthub_config_default.py to the new contract: design-time -> codedagentsplayground (value + header); deployed (UIPATH_JOB_KEY, no project, no debug) -> None (header omitted); explicit UIPATH_AGENTHUB_CONFIG still wins. Bumps uipath-langchain 0.15.3 -> 0.15.4. Stacked on uipath-llm-client-python #125 (must publish 1.18.0 first). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates uipath-langchain to align with uipath-llm-client 1.18.0’s new default behavior for client_settings.agenthub_config, so directly-constructed (coded) LangGraph agents meter design-time LLM calls under CodedAgents.Playground by default while keeping deployed execution unmetered via that header.
Changes:
- Bump
uipath-langchainversion to0.15.4and updateuipath-llm-client/uipath-langchain-client[...]dependency ranges to>=1.18.0,<1.19.0. - Update
tests/chat/test_agenthub_config_default.pyto assert context-aware defaults (design-time vs deployed) and to verify header emission/omission accordingly.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/chat/test_agenthub_config_default.py |
Updates assertions to match 1.18.0’s context-sensitive agenthub_config default and corresponding header behavior. |
pyproject.toml |
Bumps package version and pins uipath-llm-client / uipath-langchain-client[...] ranges to the 1.18.x line. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
al3xanndru
marked this pull request as draft
August 13, 2026 14:00
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.
What
Adopts the
uipath-llm-client1.18.0 behavior so coded LangGraph agents meter design-time LLM calls asCodedAgents.Playground:uipath-llm-clientand alluipath-langchain-client[...]extras from>=1.17.1,<1.18.0to>=1.18.0,<1.19.0.uipath-langchain0.15.3 → 0.15.4.tests/chat/test_agenthub_config_default.pyto the new default contract.With 1.18.0, directly-constructed clients (
UiPathChatAnthropicBedrock, etc.) defaultclient_settings.agenthub_configtocodedagentsplaygroundat design time (local / Studio Web / debug) and toNonewhen deployed (→AgentHub.LLM). Coded user code constructs these clients directly, so this is what actually makes a coded agent send the header.Test changes
test_default_is_none(asserted the oldNonedefault) is replaced by context-aware cases, parametrized over all eight client classes:test_default_is_coded_playground_at_design_timeagenthub_config == "codedagentsplayground"test_default_is_none_when_deployedUIPATH_JOB_KEYsetNonetest_coded_playground_header_on_inner_http_client_at_design_timecodedagentsplaygroundtest_no_agenthub_header_on_inner_http_client_when_deployedtest_env_var_is_honored/..._on_inner_http_clientThis is blocked on uipath-llm-client-python #125, which introduces and publishes
1.18.0. Until that merges and publishes to PyPI,uv synccannot resolve the bumped pins, so CI will be red and I could not run the suite locally. The reviewer can validate early against abuild:devTestPyPI build of 1.18.0 via the repo's custom-version test workflow. Merge order: #125 first, then this.Related
🤖 Generated with Claude Code