uipath-langchain 0.0.91__py3-none-any.whl → 0.0.93__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/tracers/__init__.py +5 -1
- uipath_langchain/tracers/_instrument_traceable.py +20 -14
- {uipath_langchain-0.0.91.dist-info → uipath_langchain-0.0.93.dist-info}/METADATA +2 -2
- {uipath_langchain-0.0.91.dist-info → uipath_langchain-0.0.93.dist-info}/RECORD +7 -7
- {uipath_langchain-0.0.91.dist-info → uipath_langchain-0.0.93.dist-info}/WHEEL +0 -0
- {uipath_langchain-0.0.91.dist-info → uipath_langchain-0.0.93.dist-info}/entry_points.txt +0 -0
- {uipath_langchain-0.0.91.dist-info → uipath_langchain-0.0.93.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,4 +2,8 @@ from ._instrument_traceable import _instrument_traceable_attributes
|
|
|
2
2
|
from .AsyncUiPathTracer import AsyncUiPathTracer
|
|
3
3
|
from .UiPathTracer import UiPathTracer
|
|
4
4
|
|
|
5
|
-
__all__ = [
|
|
5
|
+
__all__ = [
|
|
6
|
+
"AsyncUiPathTracer",
|
|
7
|
+
"UiPathTracer",
|
|
8
|
+
"_instrument_traceable_attributes",
|
|
9
|
+
]
|
|
@@ -7,7 +7,7 @@ import uuid
|
|
|
7
7
|
from typing import Any, Callable, Dict, List, Literal, Optional
|
|
8
8
|
|
|
9
9
|
from langchain_core.callbacks import dispatch_custom_event
|
|
10
|
-
from uipath.tracing import
|
|
10
|
+
from uipath.tracing import TracingManager
|
|
11
11
|
|
|
12
12
|
from ._events import CustomTraceEvents, FunctionCallEventData
|
|
13
13
|
|
|
@@ -32,19 +32,24 @@ def dispatch_trace_event(
|
|
|
32
32
|
metadata: Optional[Dict[str, Any]] = None,
|
|
33
33
|
):
|
|
34
34
|
"""Dispatch trace event to our server."""
|
|
35
|
+
try:
|
|
36
|
+
event_data = FunctionCallEventData(
|
|
37
|
+
function_name=func_name,
|
|
38
|
+
event_type=event_type,
|
|
39
|
+
inputs=inputs,
|
|
40
|
+
call_uuid=call_uuid,
|
|
41
|
+
output=result,
|
|
42
|
+
error=str(exception) if exception else None,
|
|
43
|
+
run_type=run_type,
|
|
44
|
+
tags=tags,
|
|
45
|
+
metadata=metadata,
|
|
46
|
+
)
|
|
35
47
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
output=result,
|
|
42
|
-
error=str(exception) if exception else None,
|
|
43
|
-
run_type=run_type,
|
|
44
|
-
tags=tags,
|
|
45
|
-
metadata=metadata,
|
|
46
|
-
)
|
|
47
|
-
dispatch_custom_event(CustomTraceEvents.UIPATH_TRACE_FUNCTION_CALL, event_data)
|
|
48
|
+
dispatch_custom_event(CustomTraceEvents.UIPATH_TRACE_FUNCTION_CALL, event_data)
|
|
49
|
+
except Exception as e:
|
|
50
|
+
logger.debug(
|
|
51
|
+
f"Error dispatching trace event: {e}. Function name: {func_name} Event type: {event_type}"
|
|
52
|
+
)
|
|
48
53
|
|
|
49
54
|
|
|
50
55
|
def format_args_for_trace(
|
|
@@ -373,7 +378,8 @@ def patched_traceable(*decorator_args, **decorator_kwargs):
|
|
|
373
378
|
# Register the UIPath traced decorator
|
|
374
379
|
def register_uipath_tracing():
|
|
375
380
|
"""Register the UIPath tracing decorator with TracedDecoratorRegistry."""
|
|
376
|
-
|
|
381
|
+
# Reapply to all previously decorated functions
|
|
382
|
+
TracingManager.reapply_traced_decorator(_uipath_traced)
|
|
377
383
|
|
|
378
384
|
|
|
379
385
|
# Apply the patch
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath-langchain
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.93
|
|
4
4
|
Summary: UiPath Langchain
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
|
|
@@ -25,7 +25,7 @@ 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<2.1.0,>=2.0.
|
|
28
|
+
Requires-Dist: uipath<2.1.0,>=2.0.14
|
|
29
29
|
Provides-Extra: langchain
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
|
|
@@ -24,17 +24,17 @@ uipath_langchain/retrievers/__init__.py,sha256=rOn7PyyHgZ4pMnXWPkGqmuBmx8eGuo-Oy
|
|
|
24
24
|
uipath_langchain/retrievers/context_grounding_retriever.py,sha256=CeVSMEz5xTQIladkzDLeQXGC1_ycW72gb0RB41JZeYA,2000
|
|
25
25
|
uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=8eGWZ56iJcmhtRQU4cHuZYt6aJXqc8RB2OL_BCMp-Ow,10463
|
|
26
26
|
uipath_langchain/tracers/UiPathTracer.py,sha256=V5g1nlB0TI1wYvUIkfCEcAdhy4thqeMBmjflWtxc-_M,5601
|
|
27
|
-
uipath_langchain/tracers/__init__.py,sha256=
|
|
27
|
+
uipath_langchain/tracers/__init__.py,sha256=MwrQh6iuPXMS72S5EX0JdCAX0TKe-l7fIPGV3EG0Ssk,256
|
|
28
28
|
uipath_langchain/tracers/_events.py,sha256=CJri76SSdu7rGJIkXurJ2C5sQahfSK4E5UWwWYdEAtE,922
|
|
29
|
-
uipath_langchain/tracers/_instrument_traceable.py,sha256=
|
|
29
|
+
uipath_langchain/tracers/_instrument_traceable.py,sha256=DR1r-b1Vso7uA6V5six1NxTmLQWb_-qTWdbIicrbBcM,13401
|
|
30
30
|
uipath_langchain/tracers/_utils.py,sha256=JOT1tKMdvqjMDtj2WbmbOWMeMlTXBWavxWpogX7KlRA,1543
|
|
31
31
|
uipath_langchain/utils/__init__.py,sha256=-w-4TD9ZnJDCpj4VIPXhJciukrmDJJbmnOFnhAkAaEU,81
|
|
32
32
|
uipath_langchain/utils/_request_mixin.py,sha256=WFyTDyAthSci1DRwUwS21I3hLntD7HdVzYc0ZPoi3ys,18296
|
|
33
33
|
uipath_langchain/utils/_settings.py,sha256=MhwEVj4gVRSar0RBf2w2hTjO-5Qm-HpCuufqN3gSWjA,3390
|
|
34
34
|
uipath_langchain/utils/_sleep_policy.py,sha256=e9pHdjmcCj4CVoFM1jMyZFelH11YatsgWfpyrfXzKBQ,1251
|
|
35
35
|
uipath_langchain/vectorstores/context_grounding_vectorstore.py,sha256=eTa5sX43-ydB1pj9VNHUPbB-hC36fZK_CGrNe5U2Nrw,9393
|
|
36
|
-
uipath_langchain-0.0.
|
|
37
|
-
uipath_langchain-0.0.
|
|
38
|
-
uipath_langchain-0.0.
|
|
39
|
-
uipath_langchain-0.0.
|
|
40
|
-
uipath_langchain-0.0.
|
|
36
|
+
uipath_langchain-0.0.93.dist-info/METADATA,sha256=Y5aA_gbI1TOko5HOHMIFspfJsnSWni2TjSYMucUxVfw,3819
|
|
37
|
+
uipath_langchain-0.0.93.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
38
|
+
uipath_langchain-0.0.93.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
|
|
39
|
+
uipath_langchain-0.0.93.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
|
|
40
|
+
uipath_langchain-0.0.93.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|