Skip to content

feat: adopt uipath-llm-client 1.18.0 coded-playground agenthub_config default - #1035

Draft
al3xanndru wants to merge 1 commit into
mainfrom
feat/coded-agents-playground-agenthub-config
Draft

feat: adopt uipath-llm-client 1.18.0 coded-playground agenthub_config default#1035
al3xanndru wants to merge 1 commit into
mainfrom
feat/coded-agents-playground-agenthub-config

Conversation

@al3xanndru

Copy link
Copy Markdown
Contributor

What

Adopts the uipath-llm-client 1.18.0 behavior so coded LangGraph agents meter design-time LLM calls as CodedAgents.Playground:

  • Bumps uipath-llm-client and all uipath-langchain-client[...] extras from >=1.17.1,<1.18.0 to >=1.18.0,<1.19.0.
  • Bumps uipath-langchain 0.15.3 → 0.15.4.
  • Updates tests/chat/test_agenthub_config_default.py to the new default contract.

With 1.18.0, directly-constructed clients (UiPathChatAnthropicBedrock, etc.) default client_settings.agenthub_config to codedagentsplayground at design time (local / Studio Web / debug) and to None when 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 old None default) is replaced by context-aware cases, parametrized over all eight client classes:

Test Context Expect
test_default_is_coded_playground_at_design_time no job key agenthub_config == "codedagentsplayground"
test_default_is_none_when_deployed UIPATH_JOB_KEY set None
test_coded_playground_header_on_inner_http_client_at_design_time design-time header = codedagentsplayground
test_no_agenthub_header_on_inner_http_client_when_deployed deployed header omitted
test_env_var_is_honored / ..._on_inner_http_client explicit env env value wins

⚠️ Stacked on an unpublished dependency

This is blocked on uipath-llm-client-python #125, which introduces and publishes 1.18.0. Until that merges and publishes to PyPI, uv sync cannot resolve the bumped pins, so CI will be red and I could not run the suite locally. The reviewer can validate early against a build:dev TestPyPI build of 1.18.0 via the repo's custom-version test workflow. Merge order: #125 first, then this.

Related

🤖 Generated with Claude Code

… 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>
Copilot AI lite review requested due to automatic review settings August 13, 2026 07:22

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 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-langchain version to 0.15.4 and update uipath-llm-client / uipath-langchain-client[...] dependency ranges to >=1.18.0,<1.19.0.
  • Update tests/chat/test_agenthub_config_default.py to 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
al3xanndru marked this pull request as draft August 13, 2026 14:00
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.

2 participants