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

@@ -263,6 +263,9 @@ class LangGraphOutputProcessor:
263
263
  app_version=self.interrupt_value.app_version
264
264
  if self.interrupt_value.app_version
265
265
  else 1,
266
+ assignee=self.interrupt_value.assignee
267
+ if self.interrupt_value.assignee
268
+ else "",
266
269
  data=self.interrupt_value.data,
267
270
  )
268
271
  if action:
@@ -13,13 +13,15 @@ from langchain_core.tracers.base import AsyncBaseTracer
13
13
  from langchain_core.tracers.schemas import Run
14
14
  from pydantic import PydanticDeprecationWarning
15
15
 
16
+ from ._utils import _simple_serialize_defaults
17
+
16
18
  logger = logging.getLogger(__name__)
17
19
 
18
20
 
19
21
  class Status:
20
22
  SUCCESS = 1
21
23
  ERROR = 2
22
- INTERRUPTED = 1 # intentional equal to SUCCESS
24
+ INTERRUPTED = 3
23
25
 
24
26
 
25
27
  class AsyncUiPathTracer(AsyncBaseTracer):
@@ -235,7 +237,7 @@ class AsyncUiPathTracer(AsyncBaseTracer):
235
237
 
236
238
  def _safe_json_dump(self, obj) -> str:
237
239
  try:
238
- json_str = json.dumps(obj, default=str)
240
+ json_str = json.dumps(obj, default=_simple_serialize_defaults)
239
241
  return json_str
240
242
  except Exception as e:
241
243
  logger.warning(e)
@@ -11,6 +11,8 @@ from langchain_core.tracers.base import BaseTracer
11
11
  from langchain_core.tracers.schemas import Run
12
12
  from pydantic import PydanticDeprecationWarning
13
13
 
14
+ from ._utils import _simple_serialize_defaults
15
+
14
16
  logger = logging.getLogger(__name__)
15
17
 
16
18
 
@@ -142,7 +144,7 @@ class UiPathTracer(BaseTracer):
142
144
 
143
145
  def _safe_json_dump(self, obj) -> str:
144
146
  try:
145
- json_str = json.dumps(obj, default=str)
147
+ json_str = json.dumps(obj, default=_simple_serialize_defaults)
146
148
  return json_str
147
149
  except Exception as e:
148
150
  logger.warning(e)
@@ -0,0 +1,24 @@
1
+ import datetime
2
+ from zoneinfo import ZoneInfo
3
+
4
+
5
+ def _simple_serialize_defaults(obj):
6
+ if hasattr(obj, "model_dump"):
7
+ return obj.model_dump(exclude_none=True, mode="json")
8
+ if hasattr(obj, "dict"):
9
+ return obj.dict()
10
+ if hasattr(obj, "to_dict"):
11
+ return obj.to_dict()
12
+
13
+ if isinstance(obj, (set, tuple)):
14
+ if hasattr(obj, "_asdict") and callable(obj._asdict):
15
+ return obj._asdict()
16
+ return list(obj)
17
+
18
+ if isinstance(obj, datetime.datetime):
19
+ return obj.isoformat()
20
+
21
+ if isinstance(obj, (datetime.timezone, ZoneInfo)):
22
+ return obj.tzname(None)
23
+
24
+ return str(obj)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.77
3
+ Version: 0.0.79
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.106
28
+ Requires-Dist: uipath-sdk>=0.0.109
29
29
  Provides-Extra: langchain
@@ -7,7 +7,7 @@ uipath_langchain/_cli/_runtime/_context.py,sha256=tp95ilAu2PwtjfzUNcM0nxvNdtzoWd
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
9
  uipath_langchain/_cli/_runtime/_input.py,sha256=pZ_5F34UmadJ5vlvJ7ZfNxqif8AlkooVwRMh8GyY8FY,5391
10
- uipath_langchain/_cli/_runtime/_output.py,sha256=ZessNR_Tx0wEtAFDmRI0L0mlZHd5sbpAhu-57h9YSrs,13392
10
+ uipath_langchain/_cli/_runtime/_output.py,sha256=i1fccVV0EgywV7QYNb_VXk-5OiV3ywro67PbElm5QjE,13581
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
@@ -25,10 +25,11 @@ uipath_langchain/embeddings/__init__.py,sha256=QICtYB58ZyqFfDQrEaO8lTEgAU5NuEKlR
25
25
  uipath_langchain/embeddings/embeddings.py,sha256=gntzTfwO1pHbgnXiPdfETJaaurvQWqxVUCH75VMah54,4274
26
26
  uipath_langchain/retrievers/__init__.py,sha256=rOn7PyyHgZ4pMnXWPkGqmuBmx8eGuo-Oyndo7Wm9IUU,108
27
27
  uipath_langchain/retrievers/context_grounding_retriever.py,sha256=iOR97_qNSxYtaMfRV1QsJhdvE3CVan3Uff72QC9Wkuo,1174
28
- uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=k-cwv4_5JZZqYR3ng8EBVXiWAwRl6WJpndAiqAnqqPY,8498
29
- uipath_langchain/tracers/UiPathTracer.py,sha256=PPZKRREkA-GNk1naqtkeEBr9brEEwaO_X8Lb26AHQQM,5529
28
+ uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=S1BRgLBdjsqADNhG-Tq6AEs9ttdMvETsdtXeCmCtIpA,8537
29
+ uipath_langchain/tracers/UiPathTracer.py,sha256=BpkbDbJEYYy61Qf3_O4qk51t6cxbjBXdDeVSCXUq_dU,5600
30
30
  uipath_langchain/tracers/__init__.py,sha256=wH-enSqPsMo70cTExRhavWooDFZ1Yfa36CKQdYUspXs,137
31
- uipath_langchain-0.0.77.dist-info/METADATA,sha256=tMDAHWP9RScv7ZVGi1TlT-46lBC4GrXSXDV78uJz8vw,1182
32
- uipath_langchain-0.0.77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
33
- uipath_langchain-0.0.77.dist-info/entry_points.txt,sha256=vB4ttaYft0qEsoCQ8qAoQGLmOYysY42x8p_rM-c_jF4,85
34
- uipath_langchain-0.0.77.dist-info/RECORD,,
31
+ uipath_langchain/tracers/_utils.py,sha256=W37jXVmB1K4sgqr5nwWlku243VTijq2rUPYhm7ZqLHs,665
32
+ uipath_langchain-0.0.79.dist-info/METADATA,sha256=AGre6Nr1820nTQzIbz7H9N-DFz2pxEqhgyyYDhDWSms,1182
33
+ uipath_langchain-0.0.79.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ uipath_langchain-0.0.79.dist-info/entry_points.txt,sha256=vB4ttaYft0qEsoCQ8qAoQGLmOYysY42x8p_rM-c_jF4,85
35
+ uipath_langchain-0.0.79.dist-info/RECORD,,