uipath-langchain 0.0.81__py3-none-any.whl → 0.0.82__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.

@@ -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.State
80
- and not job.State.lower()
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(str(job.JobError or job.Info))
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.OutputArguments:
93
- return Command(resume=try_convert_to_json_format(job.OutputArguments))
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]]:
@@ -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.Key,
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):
@@ -25,10 +25,10 @@ class ContextGroundingRetriever(BaseRetriever):
25
25
 
26
26
  return [
27
27
  Document(
28
- page_content=x["content"],
28
+ page_content=x.content,
29
29
  metadata={
30
- "source": x["source"],
31
- "page_number": x["page_number"],
30
+ "source": x.source,
31
+ "page_number": x.page_number,
32
32
  },
33
33
  )
34
34
  for x in results
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.81
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>=0.0.109
28
+ Requires-Dist: uipath-sdk==0.0.112
29
29
  Provides-Extra: langchain
@@ -6,8 +6,8 @@ uipath_langchain/_cli/cli_run.py,sha256=JduZXJMg7arD9Y6Nr-Sw7SxbaA68xR7f4NNo-raR
6
6
  uipath_langchain/_cli/_runtime/_context.py,sha256=tp95ilAu2PwtjfzUNcM0nxvNdtzoWdcyBMqOnTJEIzw,811
7
7
  uipath_langchain/_cli/_runtime/_escalation.py,sha256=Ii8FTRODQFuzZNRFU8F52QxDNWKuiw5xkNQaCEN2Clk,8070
8
8
  uipath_langchain/_cli/_runtime/_exception.py,sha256=0KKJh7wR54HapGW4BNQvEsGUWumvTuF_t0k3huVmn-g,550
9
- uipath_langchain/_cli/_runtime/_input.py,sha256=pZ_5F34UmadJ5vlvJ7ZfNxqif8AlkooVwRMh8GyY8FY,5391
10
- uipath_langchain/_cli/_runtime/_output.py,sha256=XwrOsl8AU053TLcPC4Lbw76uZJQ7-_K3zEykn6ST9KY,13383
9
+ uipath_langchain/_cli/_runtime/_input.py,sha256=77TdtrWYwa1NJSIPU3xTlq9KoqPcc__B-37pUDAMXhA,5432
10
+ uipath_langchain/_cli/_runtime/_output.py,sha256=W7vlpiVYAkfRkGRwEk8LkxlZv2MadkH87QK7peHOCQ0,13383
11
11
  uipath_langchain/_cli/_runtime/_runtime.py,sha256=PoPNVGaBfx6I--Cu1VXNYzozIaIfxv4iBSCKtKNnU0A,11015
12
12
  uipath_langchain/_cli/_utils/_graph.py,sha256=WLBSJfPc3_C07SqJhePRe17JIc5wcBvEqLviMcNOdTA,6950
13
13
  uipath_langchain/_utils/__init__.py,sha256=-w-4TD9ZnJDCpj4VIPXhJciukrmDJJbmnOFnhAkAaEU,81
@@ -24,12 +24,12 @@ uipath_langchain/chat/utils/_chat_types.py,sha256=iTUh4gY8ML2yLzTQ7H4ZFXChA8RbPz
24
24
  uipath_langchain/embeddings/__init__.py,sha256=QICtYB58ZyqFfDQrEaO8lTEgAU5NuEKlR7iIrS0OBtc,156
25
25
  uipath_langchain/embeddings/embeddings.py,sha256=gntzTfwO1pHbgnXiPdfETJaaurvQWqxVUCH75VMah54,4274
26
26
  uipath_langchain/retrievers/__init__.py,sha256=rOn7PyyHgZ4pMnXWPkGqmuBmx8eGuo-Oyndo7Wm9IUU,108
27
- uipath_langchain/retrievers/context_grounding_retriever.py,sha256=iOR97_qNSxYtaMfRV1QsJhdvE3CVan3Uff72QC9Wkuo,1174
27
+ uipath_langchain/retrievers/context_grounding_retriever.py,sha256=lPn8mkIwgsPbEGw937vqSb3rPrvhGWA-GQJclzIUkSw,1165
28
28
  uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=S1BRgLBdjsqADNhG-Tq6AEs9ttdMvETsdtXeCmCtIpA,8537
29
29
  uipath_langchain/tracers/UiPathTracer.py,sha256=BpkbDbJEYYy61Qf3_O4qk51t6cxbjBXdDeVSCXUq_dU,5600
30
30
  uipath_langchain/tracers/__init__.py,sha256=wH-enSqPsMo70cTExRhavWooDFZ1Yfa36CKQdYUspXs,137
31
31
  uipath_langchain/tracers/_utils.py,sha256=W37jXVmB1K4sgqr5nwWlku243VTijq2rUPYhm7ZqLHs,665
32
- uipath_langchain-0.0.81.dist-info/METADATA,sha256=e_A5oy_DCOpeuuPJxDPlj54tpjY5Lfx1PXjYD3dKikE,1182
33
- uipath_langchain-0.0.81.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- uipath_langchain-0.0.81.dist-info/entry_points.txt,sha256=vB4ttaYft0qEsoCQ8qAoQGLmOYysY42x8p_rM-c_jF4,85
35
- uipath_langchain-0.0.81.dist-info/RECORD,,
32
+ uipath_langchain-0.0.82.dist-info/METADATA,sha256=qwi5psCDmIgisfhlY6Ar_oztCrgOY429oM34kf0Bcm0,1182
33
+ uipath_langchain-0.0.82.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ uipath_langchain-0.0.82.dist-info/entry_points.txt,sha256=vB4ttaYft0qEsoCQ8qAoQGLmOYysY42x8p_rM-c_jF4,85
35
+ uipath_langchain-0.0.82.dist-info/RECORD,,