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

@@ -13,10 +13,12 @@ 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
16
+ from ._utils import _setup_tracer_httpx_logging, _simple_serialize_defaults
17
17
 
18
18
  logger = logging.getLogger(__name__)
19
19
 
20
+ _setup_tracer_httpx_logging("/llmops_/api/Agent/trace/")
21
+
20
22
 
21
23
  class Status:
22
24
  SUCCESS = 1
@@ -1,7 +1,35 @@
1
1
  import datetime
2
+ import logging
2
3
  from zoneinfo import ZoneInfo
3
4
 
4
5
 
6
+ class IgnoreSpecificUrl(logging.Filter):
7
+ def __init__(self, url_to_ignore):
8
+ super().__init__()
9
+ self.url_to_ignore = url_to_ignore
10
+
11
+ def filter(self, record):
12
+ try:
13
+ if record.msg == 'HTTP Request: %s %s "%s %d %s"':
14
+ # Ignore the log if the URL matches the one we want to ignore
15
+ method = record.args[0]
16
+ url = record.args[1]
17
+
18
+ if method == "POST" and url.path.endswith(self.url_to_ignore):
19
+ # Check if the URL contains the specific path we want to ignore
20
+ return True
21
+ return False
22
+
23
+ except Exception:
24
+ return False
25
+
26
+
27
+ def _setup_tracer_httpx_logging(url: str):
28
+ # Create a custom logger for httpx
29
+ # Add the custom filter to the root logger
30
+ logging.getLogger("httpx").addFilter(IgnoreSpecificUrl(url))
31
+
32
+
5
33
  def _simple_serialize_defaults(obj):
6
34
  if hasattr(obj, "model_dump"):
7
35
  return obj.model_dump(exclude_none=True, mode="json")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.82
3
+ Version: 0.0.83
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,11 +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=lPn8mkIwgsPbEGw937vqSb3rPrvhGWA-GQJclzIUkSw,1165
28
- uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=S1BRgLBdjsqADNhG-Tq6AEs9ttdMvETsdtXeCmCtIpA,8537
28
+ uipath_langchain/tracers/AsyncUiPathTracer.py,sha256=wQFO6WSbrlSKePN_0UgCPZm9GnZJMdc5nyGLzIuIr5g,8624
29
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/tracers/_utils.py,sha256=W37jXVmB1K4sgqr5nwWlku243VTijq2rUPYhm7ZqLHs,665
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,,
31
+ uipath_langchain/tracers/_utils.py,sha256=j16MEhuCkG81JN4viUx43QxwRXtOcL7oKPFW0JphDwo,1595
32
+ uipath_langchain-0.0.83.dist-info/METADATA,sha256=EK-RvEgG6Wc_R4AKJy-f5vOpGsvoJlC2xUioD0k8DAI,1182
33
+ uipath_langchain-0.0.83.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ uipath_langchain-0.0.83.dist-info/entry_points.txt,sha256=vB4ttaYft0qEsoCQ8qAoQGLmOYysY42x8p_rM-c_jF4,85
35
+ uipath_langchain-0.0.83.dist-info/RECORD,,