uipath 2.0.77__py3-none-any.whl → 2.0.78__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.
- uipath/_services/attachments_service.py +1 -1
- uipath/tracing/_otel_exporters.py +8 -4
- uipath/utils/_endpoints_manager.py +3 -1
- {uipath-2.0.77.dist-info → uipath-2.0.78.dist-info}/METADATA +1 -1
- {uipath-2.0.77.dist-info → uipath-2.0.78.dist-info}/RECORD +8 -8
- {uipath-2.0.77.dist-info → uipath-2.0.78.dist-info}/WHEEL +0 -0
- {uipath-2.0.77.dist-info → uipath-2.0.78.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.77.dist-info → uipath-2.0.78.dist-info}/licenses/LICENSE +0 -0
@@ -240,7 +240,7 @@ class AttachmentsService(FolderContext, BaseService):
|
|
240
240
|
async for chunk in response.aiter_bytes(chunk_size=8192):
|
241
241
|
file.write(chunk)
|
242
242
|
else:
|
243
|
-
async with httpx.AsyncClient() as client:
|
243
|
+
async with httpx.AsyncClient(**get_httpx_client_kwargs()) as client:
|
244
244
|
async with client.stream(
|
245
245
|
"GET", download_uri, headers=headers
|
246
246
|
) as response:
|
@@ -4,13 +4,15 @@ import os
|
|
4
4
|
import time
|
5
5
|
from typing import Any, Dict, Sequence
|
6
6
|
|
7
|
-
|
7
|
+
import httpx
|
8
8
|
from opentelemetry.sdk.trace import ReadableSpan
|
9
9
|
from opentelemetry.sdk.trace.export import (
|
10
10
|
SpanExporter,
|
11
11
|
SpanExportResult,
|
12
12
|
)
|
13
13
|
|
14
|
+
from uipath._utils._ssl_context import get_httpx_client_kwargs
|
15
|
+
|
14
16
|
from ._utils import _SpanUtils
|
15
17
|
|
16
18
|
logger = logging.getLogger(__name__)
|
@@ -19,9 +21,9 @@ logger = logging.getLogger(__name__)
|
|
19
21
|
class LlmOpsHttpExporter(SpanExporter):
|
20
22
|
"""An OpenTelemetry span exporter that sends spans to UiPath LLM Ops."""
|
21
23
|
|
22
|
-
def __init__(self, **
|
24
|
+
def __init__(self, **client_kwargs):
|
23
25
|
"""Initialize the exporter with the base URL and authentication token."""
|
24
|
-
super().__init__(**
|
26
|
+
super().__init__(**client_kwargs)
|
25
27
|
self.base_url = self._get_base_url()
|
26
28
|
self.auth_token = os.environ.get("UIPATH_ACCESS_TOKEN")
|
27
29
|
self.headers = {
|
@@ -29,7 +31,9 @@ class LlmOpsHttpExporter(SpanExporter):
|
|
29
31
|
"Authorization": f"Bearer {self.auth_token}",
|
30
32
|
}
|
31
33
|
|
32
|
-
|
34
|
+
client_kwargs = get_httpx_client_kwargs()
|
35
|
+
|
36
|
+
self.http_client = httpx.Client(**client_kwargs, headers=self.headers)
|
33
37
|
|
34
38
|
def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult:
|
35
39
|
"""Export spans to UiPath LLM Ops."""
|
@@ -5,6 +5,8 @@ from typing import Optional
|
|
5
5
|
|
6
6
|
import httpx
|
7
7
|
|
8
|
+
from uipath._utils._ssl_context import get_httpx_client_kwargs
|
9
|
+
|
8
10
|
loggger = logging.getLogger(__name__)
|
9
11
|
|
10
12
|
|
@@ -56,7 +58,7 @@ class EndpointManager:
|
|
56
58
|
def _check_agenthub(cls) -> bool:
|
57
59
|
"""Perform the actual check for AgentHub capabilities."""
|
58
60
|
try:
|
59
|
-
with httpx.Client() as http_client:
|
61
|
+
with httpx.Client(**get_httpx_client_kwargs()) as http_client:
|
60
62
|
base_url = os.getenv("UIPATH_URL", "")
|
61
63
|
capabilities_url = f"{base_url.rstrip('/')}/{UiPathEndpoints.AH_CAPABILITIES_ENDPOINT.value}"
|
62
64
|
loggger.debug(f"Checking AgentHub capabilities at {capabilities_url}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: uipath
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.78
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
@@ -50,7 +50,7 @@ uipath/_services/_base_service.py,sha256=7ZZDMC1TQkVk7pp-1T4a4sJOBI6O98_y9QrHN5y
|
|
50
50
|
uipath/_services/actions_service.py,sha256=LYKvG4VxNGQgZ46AzGK9kI1Txb-YmVvZj5ScPOue8Ls,15989
|
51
51
|
uipath/_services/api_client.py,sha256=hcof0EMa4-phEHD1WlO7Tdfzq6aL18Sbi2aBE7lJm1w,1821
|
52
52
|
uipath/_services/assets_service.py,sha256=acqWogfhZiSO1eeVYqFxmqWGSTmrW46QxI1J0bJe3jo,11918
|
53
|
-
uipath/_services/attachments_service.py,sha256=
|
53
|
+
uipath/_services/attachments_service.py,sha256=NPQYK7CGjfBaNT_1S5vEAfODmOChTbQZforllFM2ofU,26678
|
54
54
|
uipath/_services/buckets_service.py,sha256=5s8tuivd7GUZYj774DDUYTa0axxlUuesc4EBY1V5sdk,18496
|
55
55
|
uipath/_services/connections_service.py,sha256=qh-HNL_GJsyPUD0wSJZRF8ZdrTE9l4HrIilmXGK6dDk,4581
|
56
56
|
uipath/_services/context_grounding_service.py,sha256=EBf7lIIYz_s1ubf_07OAZXQHjS8kpZ2vqxo4mI3VL-A,25009
|
@@ -90,13 +90,13 @@ uipath/telemetry/__init__.py,sha256=Wna32UFzZR66D-RzTKlPWlvji9i2HJb82NhHjCCXRjY,
|
|
90
90
|
uipath/telemetry/_constants.py,sha256=z7taKsKM3CrMEa6gXBgK8otumT2dIXrw7WXc0XE9zYA,680
|
91
91
|
uipath/telemetry/_track.py,sha256=v0e3hgwtetMsUco4yosBzNU00Ek5SI9RxUTumrTTNyo,3872
|
92
92
|
uipath/tracing/__init__.py,sha256=GKRINyWdHVrDsI-8mrZDLdf0oey6GHGlNZTOADK-kgc,224
|
93
|
-
uipath/tracing/_otel_exporters.py,sha256=
|
93
|
+
uipath/tracing/_otel_exporters.py,sha256=X7cnuGqvxGbACZuFD2XYTWXwIse8pokOEAjeTPE6DCQ,3158
|
94
94
|
uipath/tracing/_traced.py,sha256=qeVDrds2OUnpdUIA0RhtF0kg2dlAZhyC1RRkI-qivTM,18528
|
95
95
|
uipath/tracing/_utils.py,sha256=ZeensQexnw69jVcsVrGyED7mPlAU-L1agDGm6_1A3oc,10388
|
96
96
|
uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
|
97
|
-
uipath/utils/_endpoints_manager.py,sha256=
|
98
|
-
uipath-2.0.
|
99
|
-
uipath-2.0.
|
100
|
-
uipath-2.0.
|
101
|
-
uipath-2.0.
|
102
|
-
uipath-2.0.
|
97
|
+
uipath/utils/_endpoints_manager.py,sha256=7k3DQUrN-TE7MqPVcASqg_f-Nuu9FrxNzv0wD0LXr0Q,3861
|
98
|
+
uipath-2.0.78.dist-info/METADATA,sha256=EL02EWvU6BKRXMSPQ2YAdA28c8zkYckJoo0-K953-1E,6462
|
99
|
+
uipath-2.0.78.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
100
|
+
uipath-2.0.78.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
101
|
+
uipath-2.0.78.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
102
|
+
uipath-2.0.78.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|