Skip to content

Commit ff34854

Browse files
committed
feat!: flip PlatformSettings.agenthub_config default to None
1 parent fe920c9 commit ff34854

8 files changed

Lines changed: 26 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_llm_client` (core package) will be documented in this file.
44

5+
## [1.11.0] - 2026-05-08
6+
7+
### Changed
8+
- **Behavior change**: `PlatformSettings.agenthub_config` field default flipped from `"agentsruntime"` to `None`. Callers (low-code agent runtimes, eval frameworks, etc.) are now responsible for supplying the correct value per execution mode (`agentsruntime`, `agentsplayground`, `agentsevals`, …). When unset, the `X-UiPath-AgentHub-Config` header is omitted from outgoing requests rather than implicitly billed against the runtime quota. The `UIPATH_AGENTHUB_CONFIG` environment variable still wins when set. Pair with `uipath-langchain-client>=1.10.1` and pass `agenthub_config=` to `get_chat_model` / `get_embedding_model`.
9+
510
## [1.10.0] - 2026-04-23
611

712
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export UIPATH_ORGANIZATION_ID="your-org-id"
155155
export UIPATH_TENANT_ID="your-tenant-id"
156156
export UIPATH_ACCESS_TOKEN="your-access-token"
157157

158-
# Optional: AgentHub configuration for discovery (default: "agentsruntime")
158+
# Optional: AgentHub configuration for discovery (default: None — header is omitted
159+
# unless set; pass per-call via the factory ``agenthub_config`` kwarg or this env var)
159160
export UIPATH_AGENTHUB_CONFIG="agentsruntime"
160161

161162
# Optional: tracing
@@ -190,7 +191,7 @@ export UIPATH_JOB_KEY="your-job-key"
190191
| `base_url` | `UIPATH_URL` | `str \| None` | `None` | Base URL of the UiPath Platform API |
191192
| `tenant_id` | `UIPATH_TENANT_ID` | `str \| None` | `None` | Tenant ID for request routing |
192193
| `organization_id` | `UIPATH_ORGANIZATION_ID` | `str \| None` | `None` | Organization ID for request routing |
193-
| `agenthub_config` | `UIPATH_AGENTHUB_CONFIG` | `str \| None` | `"agentsruntime"` | AgentHub configuration for discovery |
194+
| `agenthub_config` | `UIPATH_AGENTHUB_CONFIG` | `str \| None` | `None` | AgentHub configuration for discovery (header omitted when unset) |
194195
| `process_key` | `UIPATH_PROCESS_KEY` | `str \| None` | `None` | Process key for tracing |
195196
| `job_key` | `UIPATH_JOB_KEY` | `str \| None` | `None` | Job key for tracing |
196197

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_langchain_client` will be documented in this file.
44

5+
## [1.11.0] - 2026-05-08
6+
7+
### Changed
8+
- Bumped `uipath-llm-client` floor to `>=1.11.0` to match the core release that flips `PlatformSettings.agenthub_config` default from `"agentsruntime"` to `None`. Callers should now pass `agenthub_config=` to `get_chat_model` / `get_embedding_model` (added in 1.10.1) per execution mode instead of relying on the implicit default.
9+
510
## [1.10.1] - 2026-05-08
611

712
### Added

packages/uipath_langchain_client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
88
"langchain>=1.2.15,<2.0.0",
9-
"uipath-llm-client>=1.10.0,<2.0.0",
9+
"uipath-llm-client>=1.11.0,<2.0.0",
1010
]
1111

1212
[project.optional-dependencies]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LangChain Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services via LangChain."
3-
__version__ = "1.10.1"
3+
__version__ = "1.11.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LLM Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services."
3-
__version__ = "1.10.0"
3+
__version__ = "1.11.0"

src/uipath/llm_client/settings/platform/settings.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ class PlatformBaseSettings(UiPathBaseSettings):
6464
refresh_token: SecretStr | None = Field(default=None, validation_alias="UIPATH_REFRESH_TOKEN")
6565

6666
# AgentHub configuration (used for discovery)
67-
agenthub_config: str | None = Field(
68-
default="agentsruntime", validation_alias="UIPATH_AGENTHUB_CONFIG"
69-
)
67+
# Default is None: callers (low-code agent runtimes, eval frameworks, etc.) are
68+
# responsible for supplying the correct value per execution mode (e.g.
69+
# ``agentsruntime``, ``agentsplayground``, ``agentsevals``). When unset, the
70+
# ``X-UiPath-AgentHub-Config`` header is omitted from outgoing requests.
71+
agenthub_config: str | None = Field(default=None, validation_alias="UIPATH_AGENTHUB_CONFIG")
7072

7173
# Tracing configuration
7274
process_key: str | None = Field(default=None, validation_alias=ENV_PROCESS_KEY)

tests/core/features/settings/test_platform.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,17 @@ def test_build_base_url_normalized(
5757
)
5858
assert "agenthub_/llm/api/chat/completions" in url
5959

60-
def test_build_auth_headers_has_default_config(self, platform_env_vars, mock_platform_auth):
61-
"""Test build_auth_headers includes default agenthub_config."""
60+
def test_build_auth_headers_omits_agenthub_config_by_default(
61+
self, platform_env_vars, mock_platform_auth
62+
):
63+
"""``agenthub_config`` defaults to None and the header is omitted unless
64+
the caller (or ``UIPATH_AGENTHUB_CONFIG``) sets it explicitly."""
6265
with patch.dict(os.environ, platform_env_vars, clear=True):
6366
settings = PlatformSettings()
6467
headers = settings.build_auth_headers()
6568
assert headers == {
6669
"x-uipath-internal-accountid": "test-org-id",
6770
"x-uipath-internal-tenantid": "test-tenant-id",
68-
"x-uipath-agenthub-config": "agentsruntime",
6971
}
7072

7173
def test_build_auth_headers_with_tracing(self, platform_env_vars, mock_platform_auth):

0 commit comments

Comments
 (0)