Skip to content

Commit fe88cf5

Browse files
authored
feat!: flip PlatformSettings.agenthub_config default to None (#76)
1 parent fe920c9 commit fe88cf5

8 files changed

Lines changed: 22 additions & 12 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`. When unset, the `X-UiPath-AgentHub-Config` header is omitted from outgoing requests. The `UIPATH_AGENTHUB_CONFIG` environment variable still wins when set.
9+
510
## [1.10.0] - 2026-04-23
611

712
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ 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 omitted when unset)
159159
export UIPATH_AGENTHUB_CONFIG="agentsruntime"
160160

161161
# Optional: tracing
@@ -190,7 +190,7 @@ export UIPATH_JOB_KEY="your-job-key"
190190
| `base_url` | `UIPATH_URL` | `str \| None` | `None` | Base URL of the UiPath Platform API |
191191
| `tenant_id` | `UIPATH_TENANT_ID` | `str \| None` | `None` | Tenant ID for request routing |
192192
| `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 |
193+
| `agenthub_config` | `UIPATH_AGENTHUB_CONFIG` | `str \| None` | `None` | AgentHub configuration for discovery (header omitted when unset) |
194194
| `process_key` | `UIPATH_PROCESS_KEY` | `str \| None` | `None` | Process key for tracing |
195195
| `job_key` | `UIPATH_JOB_KEY` | `str \| None` | `None` | Job key for tracing |
196196

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
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`.
9+
510
## [1.10.1] - 2026-05-08
611

712
### Added
8-
- `agenthub_config` kwarg on `get_chat_model` and `get_embedding_model`. When set, overrides `client_settings.agenthub_config` for that call via `model_copy`, so the caller's settings instance is not mutated. Lets callers (e.g. low-code agent runtimes) pass the per-execution AgentHub config (`agentsruntime`, `agentsplayground`, `agentsevals`, …) without rebuilding settings.
13+
- `agenthub_config` kwarg on `get_chat_model` and `get_embedding_model`. When set, overrides `client_settings.agenthub_config` for that call via `model_copy` (the supplied settings instance is not mutated).
914

1015
## [1.10.0] - 2026-04-23
1116

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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ 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+
agenthub_config: str | None = Field(default=None, validation_alias="UIPATH_AGENTHUB_CONFIG")
7068

7169
# Tracing configuration
7270
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)