Skip to content

Commit 7ead35a

Browse files
committed
fix(error_code): add UiPathErrorCode
1 parent c6996db commit 7ead35a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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-langchain"
3-
version = "0.0.147"
3+
version = "0.0.148"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_langchain/_utils/_request_mixin.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
stop_after_attempt,
1818
wait_exponential_jitter,
1919
)
20-
from uipath._cli._runtime._contracts import UiPathErrorCategory, UiPathRuntimeError
20+
from uipath._cli._runtime._contracts import (
21+
UiPathErrorCategory,
22+
UiPathErrorCode,
23+
UiPathRuntimeError,
24+
)
2125
from uipath._utils._ssl_context import get_httpx_client_kwargs
2226

2327
from uipath_langchain._cli._runtime._exception import (
@@ -59,7 +63,7 @@ def _get_access_token(data):
5963
return get_uipath_token_header(settings)
6064
except ValidationError:
6165
raise UiPathRuntimeError(
62-
code="AUTHENTICATION_REQUIRED",
66+
UiPathErrorCode.AUTHENTICATION_REQUIRED,
6367
title="Authorization required",
6468
detail="Authorization required. Please run uipath auth",
6569
category=UiPathErrorCategory.USER,
@@ -532,3 +536,7 @@ def _get_llm_string(self, stop: Optional[list[str]] = None, **kwargs: Any) -> st
532536
@property
533537
def is_normalized(self) -> bool:
534538
return False
539+
540+
@property
541+
def is_normalized(self) -> bool:
542+
return False

0 commit comments

Comments
 (0)