uipath-langchain 0.0.80__tar.gz → 0.0.82__tar.gz
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-0.0.80 → uipath_langchain-0.0.82}/.gitignore +1 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/PKG-INFO +2 -2
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/pyproject.toml +2 -2
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_input.py +7 -5
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_output.py +1 -5
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/retrievers/context_grounding_retriever.py +3 -3
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/README.md +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_context.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_escalation.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_exception.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_runtime.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_utils/_graph.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/cli_init.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/cli_run.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/_settings.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-large5034ec3c-85c9-54b8-ac89-5e0cbcf99e3b +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-largec48857ed-1302-5954-9e24-69fa9b45e457 +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/tests/tests_uipath_cache.db +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/chat/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/chat/models.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/chat/utils/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/chat/utils/_chat_types.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/embeddings/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/embeddings/embeddings.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/middlewares.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/retrievers/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/UiPathTracer.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath-langchain
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.82
|
|
4
4
|
Summary: UiPath Langchain
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -25,5 +25,5 @@ Requires-Dist: pydantic-settings>=2.6.0
|
|
|
25
25
|
Requires-Dist: python-dotenv>=1.0.1
|
|
26
26
|
Requires-Dist: requests>=2.23.3
|
|
27
27
|
Requires-Dist: types-requests>=2.32.0.20241016
|
|
28
|
-
Requires-Dist: uipath-sdk
|
|
28
|
+
Requires-Dist: uipath-sdk==0.0.112
|
|
29
29
|
Provides-Extra: langchain
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath-langchain"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.82"
|
|
4
4
|
description = "UiPath Langchain"
|
|
5
5
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
6
6
|
requires-python = ">=3.9"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"uipath-sdk
|
|
8
|
+
"uipath-sdk==0.0.112",
|
|
9
9
|
"langgraph>=0.2.70",
|
|
10
10
|
"langchain-core>=0.3.34",
|
|
11
11
|
"langgraph-checkpoint-sqlite>=2.0.3",
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_input.py
RENAMED
|
@@ -76,21 +76,23 @@ class LangGraphInputProcessor:
|
|
|
76
76
|
elif type == UiPathResumeTriggerType.JOB.value and key:
|
|
77
77
|
job = await self.uipath.jobs.retrieve_async(key)
|
|
78
78
|
if (
|
|
79
|
-
job.
|
|
80
|
-
and not job.
|
|
79
|
+
job.state
|
|
80
|
+
and not job.state.lower()
|
|
81
81
|
== UiPathRuntimeStatus.SUCCESSFUL.value.lower()
|
|
82
82
|
):
|
|
83
83
|
error_code = "INVOKED_PROCESS_FAILURE"
|
|
84
84
|
error_title = "Invoked process did not finish successfully."
|
|
85
|
-
error_detail = try_convert_to_json_format(
|
|
85
|
+
error_detail = try_convert_to_json_format(
|
|
86
|
+
str(job.job_error or job.info)
|
|
87
|
+
)
|
|
86
88
|
raise LangGraphRuntimeError(
|
|
87
89
|
error_code,
|
|
88
90
|
error_title,
|
|
89
91
|
error_detail,
|
|
90
92
|
UiPathErrorCategory.USER,
|
|
91
93
|
)
|
|
92
|
-
if job.
|
|
93
|
-
return Command(resume=try_convert_to_json_format(job.
|
|
94
|
+
if job.output_arguments:
|
|
95
|
+
return Command(resume=try_convert_to_json_format(job.output_arguments))
|
|
94
96
|
return Command(resume=self.context.input_json)
|
|
95
97
|
|
|
96
98
|
async def _get_latest_trigger(self) -> Optional[tuple[str, str]]:
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_output.py
RENAMED
|
@@ -248,7 +248,7 @@ class LangGraphOutputProcessor:
|
|
|
248
248
|
elif isinstance(self.interrupt_value, WaitJob):
|
|
249
249
|
self._resume_trigger = UiPathResumeTrigger(
|
|
250
250
|
triggerType=UiPathResumeTriggerType.JOB,
|
|
251
|
-
itemKey=self.interrupt_value.job.
|
|
251
|
+
itemKey=self.interrupt_value.job.key,
|
|
252
252
|
)
|
|
253
253
|
elif self.interrupt_info.type is UiPathResumeTriggerType.ACTION:
|
|
254
254
|
if isinstance(self.interrupt_value, CreateAction):
|
|
@@ -278,10 +278,6 @@ class LangGraphOutputProcessor:
|
|
|
278
278
|
triggerType=UiPathResumeTriggerType.ACTION,
|
|
279
279
|
itemKey=self.interrupt_value.action.key,
|
|
280
280
|
)
|
|
281
|
-
elif not isinstance(self.interrupt_value, str):
|
|
282
|
-
raise Exception(
|
|
283
|
-
f"Unknown interrupt value type {type(self.interrupt_value)}"
|
|
284
|
-
)
|
|
285
281
|
|
|
286
282
|
except Exception as e:
|
|
287
283
|
raise LangGraphRuntimeError(
|
|
@@ -25,10 +25,10 @@ class ContextGroundingRetriever(BaseRetriever):
|
|
|
25
25
|
|
|
26
26
|
return [
|
|
27
27
|
Document(
|
|
28
|
-
page_content=x
|
|
28
|
+
page_content=x.content,
|
|
29
29
|
metadata={
|
|
30
|
-
"source": x
|
|
31
|
-
"page_number": x
|
|
30
|
+
"source": x.source,
|
|
31
|
+
"page_number": x.page_number,
|
|
32
32
|
},
|
|
33
33
|
)
|
|
34
34
|
for x in results
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_context.py
RENAMED
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_escalation.py
RENAMED
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_exception.py
RENAMED
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_cli/_runtime/_runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/_request_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/_utils/_sleep_policy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/chat/utils/_chat_types.py
RENAMED
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/embeddings/embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/AsyncUiPathTracer.py
RENAMED
|
File without changes
|
{uipath_langchain-0.0.80 → uipath_langchain-0.0.82}/uipath_langchain/tracers/UiPathTracer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|