Skip to content

Commit 157a1e7

Browse files
feat: improve isolation uipath (#1440)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0a4309b commit 157a1e7

6 files changed

Lines changed: 19 additions & 5 deletions

File tree

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/chat/llm_throttle.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ def set_llm_concurrency(limit: int) -> None:
4747
_llm_concurrency_limit = limit
4848
_llm_semaphore = None
4949
_llm_semaphore_loop = None
50+
51+
52+
def reset_llm_concurrency() -> None:
53+
"""Reset LLM concurrency limit and semaphore to defaults."""
54+
global _llm_concurrency_limit, _llm_semaphore, _llm_semaphore_loop
55+
_llm_concurrency_limit = DEFAULT_LLM_CONCURRENCY
56+
_llm_semaphore = None
57+
_llm_semaphore_loop = None

packages/uipath-platform/src/uipath/platform/common/_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ def is_tracing_enabled(self) -> bool:
177177

178178
return os.getenv(ENV_TRACING_ENABLED, "true").lower() == "true"
179179

180+
def reset(self) -> None:
181+
"""Reset mutable cached state to defaults."""
182+
self.studio_solution_id = None
183+
# Invalidate cached_property by removing from instance __dict__
184+
self.__dict__.pop("_internal_arguments", None)
185+
180186
def _read_internal_argument(self, key: str) -> str | None:
181187
internal_args = self._internal_arguments
182188
return internal_args.get(key) if internal_args else None

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.10.26"
3+
version = "2.10.27"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)