Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |

Expand Down
7 changes: 6 additions & 1 deletion packages/uipath_langchain_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath_langchain_client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion src/uipath/llm_client/__version__.py
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 1 addition & 3 deletions src/uipath/llm_client/settings/platform/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions tests/core/features/settings/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down