From b4dae016c42ce5b135b308cc4cfa485d604e471e Mon Sep 17 00:00:00 2001 From: radu-mocanu Date: Fri, 8 May 2026 14:51:39 +0300 Subject: [PATCH] feat!: flip PlatformSettings.agenthub_config default to None --- CHANGELOG.md | 5 +++++ README.md | 4 ++-- packages/uipath_langchain_client/CHANGELOG.md | 7 ++++++- packages/uipath_langchain_client/pyproject.toml | 2 +- .../src/uipath_langchain_client/__version__.py | 2 +- src/uipath/llm_client/__version__.py | 2 +- src/uipath/llm_client/settings/platform/settings.py | 4 +--- tests/core/features/settings/test_platform.py | 8 +++++--- 8 files changed, 22 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6854f5d..c988594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `uipath_llm_client` (core package) will be documented in this file. +## [1.11.0] - 2026-05-08 + +### Changed +- **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. + ## [1.10.0] - 2026-04-23 ### Added diff --git a/README.md b/README.md index 9334412..848e045 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ export UIPATH_ORGANIZATION_ID="your-org-id" export UIPATH_TENANT_ID="your-tenant-id" export UIPATH_ACCESS_TOKEN="your-access-token" -# Optional: AgentHub configuration for discovery (default: "agentsruntime") +# Optional: AgentHub configuration for discovery (default: None, header omitted when unset) export UIPATH_AGENTHUB_CONFIG="agentsruntime" # Optional: tracing @@ -190,7 +190,7 @@ export UIPATH_JOB_KEY="your-job-key" | `base_url` | `UIPATH_URL` | `str \| None` | `None` | Base URL of the UiPath Platform API | | `tenant_id` | `UIPATH_TENANT_ID` | `str \| None` | `None` | Tenant ID for request routing | | `organization_id` | `UIPATH_ORGANIZATION_ID` | `str \| None` | `None` | Organization ID for request routing | -| `agenthub_config` | `UIPATH_AGENTHUB_CONFIG` | `str \| None` | `"agentsruntime"` | AgentHub configuration for discovery | +| `agenthub_config` | `UIPATH_AGENTHUB_CONFIG` | `str \| None` | `None` | AgentHub configuration for discovery (header omitted when unset) | | `process_key` | `UIPATH_PROCESS_KEY` | `str \| None` | `None` | Process key for tracing | | `job_key` | `UIPATH_JOB_KEY` | `str \| None` | `None` | Job key for tracing | diff --git a/packages/uipath_langchain_client/CHANGELOG.md b/packages/uipath_langchain_client/CHANGELOG.md index 12fafbb..a9e0cb3 100644 --- a/packages/uipath_langchain_client/CHANGELOG.md +++ b/packages/uipath_langchain_client/CHANGELOG.md @@ -2,10 +2,15 @@ All notable changes to `uipath_langchain_client` will be documented in this file. +## [1.11.0] - 2026-05-08 + +### Changed +- Bumped `uipath-llm-client` floor to `>=1.11.0` to match the core release that flips `PlatformSettings.agenthub_config` default from `"agentsruntime"` to `None`. + ## [1.10.1] - 2026-05-08 ### Added -- `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. +- `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). ## [1.10.0] - 2026-04-23 diff --git a/packages/uipath_langchain_client/pyproject.toml b/packages/uipath_langchain_client/pyproject.toml index 056c4ef..1f57b4d 100644 --- a/packages/uipath_langchain_client/pyproject.toml +++ b/packages/uipath_langchain_client/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" requires-python = ">=3.11" dependencies = [ "langchain>=1.2.15,<2.0.0", - "uipath-llm-client>=1.10.0,<2.0.0", + "uipath-llm-client>=1.11.0,<2.0.0", ] [project.optional-dependencies] diff --git a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py index cce9163..ba2c515 100644 --- a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py +++ b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py @@ -1,3 +1,3 @@ __title__ = "UiPath LangChain Client" __description__ = "A Python client for interacting with UiPath's LLM services via LangChain." -__version__ = "1.10.1" +__version__ = "1.11.0" diff --git a/src/uipath/llm_client/__version__.py b/src/uipath/llm_client/__version__.py index e4a0dca..cf80ec7 100644 --- a/src/uipath/llm_client/__version__.py +++ b/src/uipath/llm_client/__version__.py @@ -1,3 +1,3 @@ __title__ = "UiPath LLM Client" __description__ = "A Python client for interacting with UiPath's LLM services." -__version__ = "1.10.0" +__version__ = "1.11.0" diff --git a/src/uipath/llm_client/settings/platform/settings.py b/src/uipath/llm_client/settings/platform/settings.py index a56ab2c..eaed4f8 100644 --- a/src/uipath/llm_client/settings/platform/settings.py +++ b/src/uipath/llm_client/settings/platform/settings.py @@ -64,9 +64,7 @@ class PlatformBaseSettings(UiPathBaseSettings): refresh_token: SecretStr | None = Field(default=None, validation_alias="UIPATH_REFRESH_TOKEN") # AgentHub configuration (used for discovery) - agenthub_config: str | None = Field( - default="agentsruntime", validation_alias="UIPATH_AGENTHUB_CONFIG" - ) + agenthub_config: str | None = Field(default=None, validation_alias="UIPATH_AGENTHUB_CONFIG") # Tracing configuration process_key: str | None = Field(default=None, validation_alias=ENV_PROCESS_KEY) diff --git a/tests/core/features/settings/test_platform.py b/tests/core/features/settings/test_platform.py index b1477e8..c837d51 100644 --- a/tests/core/features/settings/test_platform.py +++ b/tests/core/features/settings/test_platform.py @@ -57,15 +57,17 @@ def test_build_base_url_normalized( ) assert "agenthub_/llm/api/chat/completions" in url - def test_build_auth_headers_has_default_config(self, platform_env_vars, mock_platform_auth): - """Test build_auth_headers includes default agenthub_config.""" + def test_build_auth_headers_omits_agenthub_config_by_default( + self, platform_env_vars, mock_platform_auth + ): + """``agenthub_config`` defaults to None and the header is omitted unless + the caller (or ``UIPATH_AGENTHUB_CONFIG``) sets it explicitly.""" with patch.dict(os.environ, platform_env_vars, clear=True): settings = PlatformSettings() headers = settings.build_auth_headers() assert headers == { "x-uipath-internal-accountid": "test-org-id", "x-uipath-internal-tenantid": "test-tenant-id", - "x-uipath-agenthub-config": "agentsruntime", } def test_build_auth_headers_with_tracing(self, platform_env_vars, mock_platform_auth):