uipath-langchain 0.0.122__py3-none-any.whl → 0.0.123__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath-langchain might be problematic. Click here for more details.

@@ -17,8 +17,10 @@ from tenacity import (
17
17
  stop_after_attempt,
18
18
  wait_exponential_jitter,
19
19
  )
20
+ from uipath._cli._runtime._contracts import UiPathErrorCategory
20
21
  from uipath._utils._ssl_context import get_httpx_client_kwargs
21
22
 
23
+ from uipath_langchain._cli._runtime._exception import LangGraphRuntimeError
22
24
  from uipath_langchain._utils._settings import (
23
25
  UiPathClientFactorySettings,
24
26
  UiPathClientSettings,
@@ -348,6 +350,19 @@ class UiPathRequestMixin(BaseModel):
348
350
  return openai.AuthenticationError(err_msg, response=response, body=data)
349
351
 
350
352
  if response.status_code == 403:
353
+ # Check if this is a license-specific error
354
+ if isinstance(body, dict):
355
+ title = body.get("title", "").lower()
356
+ if title == "license not available":
357
+ raise LangGraphRuntimeError(
358
+ code="LICENSE_NOT_AVAILABLE",
359
+ title=body.get("title", "License Not Available"),
360
+ detail=body.get(
361
+ "detail", "License not available for this service"
362
+ ),
363
+ category=UiPathErrorCategory.DEPLOYMENT,
364
+ )
365
+
351
366
  return openai.PermissionDeniedError(err_msg, response=response, body=data)
352
367
 
353
368
  if response.status_code == 404:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.122
3
+ Version: 0.0.123
4
4
  Summary: UiPath Langchain
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
@@ -13,7 +13,7 @@ uipath_langchain/_cli/_templates/langgraph.json.template,sha256=eeh391Gta_hoRgaN
13
13
  uipath_langchain/_cli/_templates/main.py.template,sha256=nMJQIYPlRk90iANfNVpkJ2EQX20Dxsyq92-BucEz_UM,1189
14
14
  uipath_langchain/_cli/_utils/_graph.py,sha256=JPShHNl0UQvl4AdjLIqLpNt_JAjpWH9WWF22Gs47Xew,7445
15
15
  uipath_langchain/_utils/__init__.py,sha256=WoY66enCygRXTh6v5B1UrRcFCnQYuPJ8oqDkwomXzLc,194
16
- uipath_langchain/_utils/_request_mixin.py,sha256=Bf8l43T0uqwUsucBE_2C1aeB9b0bmf11-3SyKr6RNpA,18926
16
+ uipath_langchain/_utils/_request_mixin.py,sha256=Tr57358_dwb7SQ1OU75XjdFVWEIr05-QJifeJfHHZgc,19680
17
17
  uipath_langchain/_utils/_settings.py,sha256=2fExMQJ88YptfldmzMfZIpsx-m1gfMkeYGf5t6KIe0A,3084
18
18
  uipath_langchain/_utils/_sleep_policy.py,sha256=e9pHdjmcCj4CVoFM1jMyZFelH11YatsgWfpyrfXzKBQ,1251
19
19
  uipath_langchain/chat/__init__.py,sha256=WDcvy91ixvZ3Mq7Ae94g5CjyQwXovDBnEv1NlD5SXBE,116
@@ -29,8 +29,8 @@ uipath_langchain/tracers/_instrument_traceable.py,sha256=0e841zVzcPWjOGtmBx0GeHb
29
29
  uipath_langchain/tracers/_utils.py,sha256=JOT1tKMdvqjMDtj2WbmbOWMeMlTXBWavxWpogX7KlRA,1543
30
30
  uipath_langchain/vectorstores/__init__.py,sha256=w8qs1P548ud1aIcVA_QhBgf_jZDrRMK5Lono78yA8cs,114
31
31
  uipath_langchain/vectorstores/context_grounding_vectorstore.py,sha256=TncIXG-YsUlO0R5ZYzWsM-Dj1SVCZbzmo2LraVxXelc,9559
32
- uipath_langchain-0.0.122.dist-info/METADATA,sha256=7OfcSeeI163hwKCDAyMUDhFeL7ivuqZLY-wexZZB7KQ,4172
33
- uipath_langchain-0.0.122.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- uipath_langchain-0.0.122.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
35
- uipath_langchain-0.0.122.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
36
- uipath_langchain-0.0.122.dist-info/RECORD,,
32
+ uipath_langchain-0.0.123.dist-info/METADATA,sha256=YfxavLE3bBdZlDjaKgBnX410AeHdIg6tEFZpQInaBjA,4172
33
+ uipath_langchain-0.0.123.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ uipath_langchain-0.0.123.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
35
+ uipath_langchain-0.0.123.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
36
+ uipath_langchain-0.0.123.dist-info/RECORD,,