uipath-langchain 0.0.121__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.
- uipath_langchain/_cli/_utils/_graph.py +6 -0
- uipath_langchain/_utils/_request_mixin.py +15 -0
- {uipath_langchain-0.0.121.dist-info → uipath_langchain-0.0.123.dist-info}/METADATA +1 -1
- {uipath_langchain-0.0.121.dist-info → uipath_langchain-0.0.123.dist-info}/RECORD +7 -7
- {uipath_langchain-0.0.121.dist-info → uipath_langchain-0.0.123.dist-info}/WHEEL +0 -0
- {uipath_langchain-0.0.121.dist-info → uipath_langchain-0.0.123.dist-info}/entry_points.txt +0 -0
- {uipath_langchain-0.0.121.dist-info → uipath_langchain-0.0.123.dist-info}/licenses/LICENSE +0 -0
|
@@ -49,6 +49,12 @@ class GraphConfig:
|
|
|
49
49
|
if cwd not in sys.path:
|
|
50
50
|
sys.path.insert(0, cwd)
|
|
51
51
|
|
|
52
|
+
# For src-layout projects, add src directory to sys.path
|
|
53
|
+
# This mimics an editable/dev install
|
|
54
|
+
src_dir = os.path.join(cwd, "src")
|
|
55
|
+
if os.path.isdir(src_dir) and src_dir not in sys.path:
|
|
56
|
+
sys.path.insert(0, src_dir)
|
|
57
|
+
|
|
52
58
|
module_name = Path(abs_file_path).stem
|
|
53
59
|
spec = importlib.util.spec_from_file_location(module_name, abs_file_path)
|
|
54
60
|
|
|
@@ -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:
|
|
@@ -11,9 +11,9 @@ uipath_langchain/_cli/_runtime/_output.py,sha256=yJOZPWv2FRUJWv1NRs9JmpB4QMTDXu8
|
|
|
11
11
|
uipath_langchain/_cli/_runtime/_runtime.py,sha256=XTlPaMuHyv-4DjQMoEh76D2Z18M3S5wm4tDP-UAiE5Y,14505
|
|
12
12
|
uipath_langchain/_cli/_templates/langgraph.json.template,sha256=eeh391Gta_hoRgaNaZ58nW1LNvCVXA7hlAH6l7Veous,107
|
|
13
13
|
uipath_langchain/_cli/_templates/main.py.template,sha256=nMJQIYPlRk90iANfNVpkJ2EQX20Dxsyq92-BucEz_UM,1189
|
|
14
|
-
uipath_langchain/_cli/_utils/_graph.py,sha256=
|
|
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=
|
|
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.
|
|
33
|
-
uipath_langchain-0.0.
|
|
34
|
-
uipath_langchain-0.0.
|
|
35
|
-
uipath_langchain-0.0.
|
|
36
|
-
uipath_langchain-0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|