uipath 2.1.42__py3-none-any.whl → 2.1.44__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/_cli/_evals/_models/_agent_execution_output.py +14 -0
- uipath/_cli/_evals/_runtime.py +172 -0
- uipath/_cli/_runtime/_contracts.py +135 -6
- uipath/_cli/_utils/_eval_set.py +84 -0
- uipath/_cli/cli_eval.py +73 -42
- uipath/_cli/cli_run.py +10 -36
- uipath/_cli/middlewares.py +1 -0
- uipath/_utils/constants.py +3 -0
- uipath/eval/_helpers/__init__.py +3 -0
- uipath/eval/_helpers/helpers.py +47 -0
- uipath/models/errors.py +2 -2
- {uipath-2.1.42.dist-info → uipath-2.1.44.dist-info}/METADATA +1 -1
- {uipath-2.1.42.dist-info → uipath-2.1.44.dist-info}/RECORD +16 -12
- uipath/_cli/_evals/evaluation_service.py +0 -582
- {uipath-2.1.42.dist-info → uipath-2.1.44.dist-info}/WHEEL +0 -0
- {uipath-2.1.42.dist-info → uipath-2.1.44.dist-info}/entry_points.txt +0 -0
- {uipath-2.1.42.dist-info → uipath-2.1.44.dist-info}/licenses/LICENSE +0 -0
uipath/_utils/constants.py
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
import json
|
2
|
+
import os
|
3
|
+
|
4
|
+
import click
|
5
|
+
|
6
|
+
from uipath._cli._utils._console import ConsoleLogger
|
7
|
+
from uipath._utils.constants import UIPATH_CONFIG_FILE
|
8
|
+
|
9
|
+
|
10
|
+
def auto_discover_entrypoint() -> str:
|
11
|
+
"""Auto-discover entrypoint from config file.
|
12
|
+
|
13
|
+
Returns:
|
14
|
+
Path to the entrypoint
|
15
|
+
|
16
|
+
Raises:
|
17
|
+
ValueError: If no entrypoint found or multiple entrypoints exist
|
18
|
+
"""
|
19
|
+
console = ConsoleLogger()
|
20
|
+
|
21
|
+
if not os.path.isfile(UIPATH_CONFIG_FILE):
|
22
|
+
raise ValueError(
|
23
|
+
f"File '{UIPATH_CONFIG_FILE}' not found. Please run 'uipath init'."
|
24
|
+
)
|
25
|
+
|
26
|
+
with open(UIPATH_CONFIG_FILE, "r", encoding="utf-8") as f:
|
27
|
+
uipath_config = json.loads(f.read())
|
28
|
+
|
29
|
+
entrypoints = uipath_config.get("entryPoints", [])
|
30
|
+
|
31
|
+
if not entrypoints:
|
32
|
+
raise ValueError(
|
33
|
+
f"No entrypoints found in {UIPATH_CONFIG_FILE}. Please run 'uipath init'."
|
34
|
+
)
|
35
|
+
|
36
|
+
if len(entrypoints) > 1:
|
37
|
+
entrypoint_paths = [ep.get("filePath") for ep in entrypoints]
|
38
|
+
raise ValueError(
|
39
|
+
f"Multiple entrypoints found: {entrypoint_paths}. "
|
40
|
+
f"Please specify which entrypoint to use."
|
41
|
+
)
|
42
|
+
|
43
|
+
entrypoint = entrypoints[0].get("filePath")
|
44
|
+
console.info(
|
45
|
+
f"Auto-discovered agent entrypoint: {click.style(entrypoint, fg='cyan')}"
|
46
|
+
)
|
47
|
+
return entrypoint
|
uipath/models/errors.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class BaseUrlMissingError(Exception):
|
2
2
|
def __init__(
|
3
3
|
self,
|
4
|
-
message="Authentication required. Please run \033[1muipath auth\033[22m.",
|
4
|
+
message="Authentication required. Please run \033[1muipath auth\033[22m or set the base URL via the UIPATH_URL environment variable.",
|
5
5
|
):
|
6
6
|
self.message = message
|
7
7
|
super().__init__(self.message)
|
@@ -10,7 +10,7 @@ class BaseUrlMissingError(Exception):
|
|
10
10
|
class SecretMissingError(Exception):
|
11
11
|
def __init__(
|
12
12
|
self,
|
13
|
-
message="Authentication required. Please run \033[1muipath auth\033[22m.",
|
13
|
+
message="Authentication required. Please run \033[1muipath auth\033[22m or set the UIPATH_ACCESS_TOKEN environment variable to a valid access token.",
|
14
14
|
):
|
15
15
|
self.message = message
|
16
16
|
super().__init__(self.message)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: uipath
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.44
|
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
|
@@ -9,7 +9,7 @@ uipath/_cli/__init__.py,sha256=kf4GINkunFGMZkTk2Z4f1Q3-OsxpNnV6u_9BsBt1i0E,2229
|
|
9
9
|
uipath/_cli/cli_auth.py,sha256=i3ykLlCg68xgPXHHaa0agHwGFIiLiTLzOiF6Su8XaEo,2436
|
10
10
|
uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
|
11
11
|
uipath/_cli/cli_dev.py,sha256=JRzXrAUM_sj6FCVG-VveYADTwR8yQ330SgYs3LgbvJc,2104
|
12
|
-
uipath/_cli/cli_eval.py,sha256=
|
12
|
+
uipath/_cli/cli_eval.py,sha256=ZXCwjNBgp-aROIA9hcl2w5eqsrxWJAteAPmWs4hEwKQ,4525
|
13
13
|
uipath/_cli/cli_init.py,sha256=ls577uNm2zWccknIhtVFS3ah2ds0QSy2_TgMp6z7Wt4,6049
|
14
14
|
uipath/_cli/cli_invoke.py,sha256=4jyhqcy7tPrpxvaUhW-9gut6ddsCGMdJJcpOXXmIe8g,4348
|
15
15
|
uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
|
@@ -17,8 +17,8 @@ uipath/_cli/cli_pack.py,sha256=NmwZTfwZ2fURiHyiX1BM0juAtBOjPB1Jmcpu-rD7p-4,11025
|
|
17
17
|
uipath/_cli/cli_publish.py,sha256=FmBCdeh4zFaESOLfzTTPxGcOwUtsQ_WkvF_fjHEdU8s,6448
|
18
18
|
uipath/_cli/cli_pull.py,sha256=vwS0KMX6O2L6RaPy8tw_qzXe4dC7kf_G6nbLm0I62eI,6831
|
19
19
|
uipath/_cli/cli_push.py,sha256=-j-gDIbT8GyU2SybLQqFl5L8KI9nu3CDijVtltDgX20,3132
|
20
|
-
uipath/_cli/cli_run.py,sha256=
|
21
|
-
uipath/_cli/middlewares.py,sha256=
|
20
|
+
uipath/_cli/cli_run.py,sha256=C0V7Tt_kYAk2vbQO7hVE6DRUqZW1Xo35LgqhnQhF3Ng,6539
|
21
|
+
uipath/_cli/middlewares.py,sha256=GvMhDnx1BmA7rIe12s6Uqv1JdqNZhvraU0a91oqGag4,4976
|
22
22
|
uipath/_cli/spinner.py,sha256=bS-U_HA5yne11ejUERu7CQoXmWdabUD2bm62EfEdV8M,1107
|
23
23
|
uipath/_cli/_auth/_auth_server.py,sha256=22km0F1NFNXgyLbvtAx3ssiQlVGHroLdtDCWEqiCiMg,7106
|
24
24
|
uipath/_cli/_auth/_auth_service.py,sha256=tX8YuHlgUn2qUDQ_hrbabs7kMTD3K1u3EgqGYj92KRM,6106
|
@@ -44,7 +44,7 @@ uipath/_cli/_dev/_terminal/_styles/terminal.tcss,sha256=ktVpKwXIXw2VZp8KIZD6fO9i
|
|
44
44
|
uipath/_cli/_dev/_terminal/_utils/_chat.py,sha256=YUZxYVdmEManwHDuZsczJT1dWIYE1dVBgABlurwMFcE,8493
|
45
45
|
uipath/_cli/_dev/_terminal/_utils/_exporter.py,sha256=oI6D_eMwrh_2aqDYUh4GrJg8VLGrLYhDahR-_o0uJns,4144
|
46
46
|
uipath/_cli/_dev/_terminal/_utils/_logger.py,sha256=jeNShEED27cNIHTe_NNx-2kUiXpSLTmi0onM6tVkqRM,888
|
47
|
-
uipath/_cli/_evals/
|
47
|
+
uipath/_cli/_evals/_runtime.py,sha256=PEMaW7EOHyyIgqDVMEdSKmGbRAO15HtZpzV4Jgmjuq0,5948
|
48
48
|
uipath/_cli/_evals/progress_reporter.py,sha256=m1Dio1vG-04nFTFz5ijM_j1dhudlgOzQukmTkkg6wS4,11490
|
49
49
|
uipath/_cli/_evals/_evaluators/__init__.py,sha256=jD7KNLjbsUpsESFXX11eW2MEPXDNuPp2-t-IPB-inlM,734
|
50
50
|
uipath/_cli/_evals/_evaluators/_deterministic_evaluator_base.py,sha256=BTl0puBjp9iCsU3YFfYWqk4TOz4iE19O3q1-dK6qUOI,1723
|
@@ -55,10 +55,11 @@ uipath/_cli/_evals/_evaluators/_json_similarity_evaluator.py,sha256=HpmkvuwU4Az3
|
|
55
55
|
uipath/_cli/_evals/_evaluators/_llm_as_judge_evaluator.py,sha256=nSLZ29xWqALEI53ifr79JPXjyx0T4sr7p-4NygwgAio,6594
|
56
56
|
uipath/_cli/_evals/_evaluators/_trajectory_evaluator.py,sha256=dnogQTOskpI4_cNF0Ge3hBceJJocvOgxBWAwaCWnzB0,1595
|
57
57
|
uipath/_cli/_evals/_models/__init__.py,sha256=Ewjp3u2YeTH2MmzY9LWf7EIbAoIf_nW9fMYbj7pGlPs,420
|
58
|
+
uipath/_cli/_evals/_models/_agent_execution_output.py,sha256=llvApU4JkTnNgQ5DvHPt8ee3bnV6cCANyeiebWKE07E,401
|
58
59
|
uipath/_cli/_evals/_models/_evaluation_set.py,sha256=tVHykSget-G3sOCs9bSchMYUTpFqzXVlYYbY8L9SI0c,1518
|
59
60
|
uipath/_cli/_evals/_models/_evaluators.py,sha256=l57NEVyYmzSKuoIXuGkE94Br01hAMg35fiS2MlTkaQM,2115
|
60
61
|
uipath/_cli/_push/sw_file_handler.py,sha256=AX4TKM-q6CNGw3JyBW02M8ktPZuFMcAU9LN3Ii0Q2QI,18202
|
61
|
-
uipath/_cli/_runtime/_contracts.py,sha256=
|
62
|
+
uipath/_cli/_runtime/_contracts.py,sha256=C1zocpvNWgq6FUhWJZpVvoWrH2GBS3xA229PcMovYdY,25975
|
62
63
|
uipath/_cli/_runtime/_escalation.py,sha256=x3vI98qsfRA-fL_tNkRVTFXioM5Gv2w0GFcXJJ5eQtg,7981
|
63
64
|
uipath/_cli/_runtime/_hitl.py,sha256=VKbM021nVg1HEDnTfucSLJ0LsDn83CKyUtVzofS2qTU,11369
|
64
65
|
uipath/_cli/_runtime/_logging.py,sha256=MGklGKPjYKjs7J5Jy9eplA9zCDsdtEbkZdCbTwgut_4,8311
|
@@ -72,6 +73,7 @@ uipath/_cli/_utils/_common.py,sha256=CzhhkIRfCuQ1-5HLDtjzOyt8KFs1jm6wzrBeU_v2B7c
|
|
72
73
|
uipath/_cli/_utils/_console.py,sha256=scvnrrFoFX6CE451K-PXKV7UN0DUkInbOtDZ5jAdPP0,10070
|
73
74
|
uipath/_cli/_utils/_constants.py,sha256=rS8lQ5Nzull8ytajK6lBsz398qiCp1REoAwlHtyBwF0,1415
|
74
75
|
uipath/_cli/_utils/_debug.py,sha256=zamzIR4VgbdKADAE4gbmjxDsbgF7wvdr7C5Dqp744Oc,1739
|
76
|
+
uipath/_cli/_utils/_eval_set.py,sha256=z0sTEj4lGkLZXfj9vUpMwFPL6LNMs1MSCZ43Efzoc6A,2750
|
75
77
|
uipath/_cli/_utils/_folders.py,sha256=UVJcKPfPAVR5HF4AP6EXdlNVcfEF1v5pwGCpoAgBY34,1155
|
76
78
|
uipath/_cli/_utils/_input_args.py,sha256=3LGNqVpJItvof75VGm-ZNTUMUH9-c7-YgleM5b2YgRg,5088
|
77
79
|
uipath/_cli/_utils/_parse_ast.py,sha256=8Iohz58s6bYQ7rgWtOTjrEInLJ-ETikmOMZzZdIY2Co,20072
|
@@ -104,7 +106,7 @@ uipath/_utils/_request_spec.py,sha256=iCtBLqtbWUpFG5g1wtIZBzSupKsfaRLiQFoFc_4B70
|
|
104
106
|
uipath/_utils/_ssl_context.py,sha256=xSYitos0eJc9cPHzNtHISX9PBvL6D2vas5G_GiBdLp8,1783
|
105
107
|
uipath/_utils/_url.py,sha256=-4eluSrIZCUlnQ3qU17WPJkgaC2KwF9W5NeqGnTNGGo,2512
|
106
108
|
uipath/_utils/_user_agent.py,sha256=pVJkFYacGwaQBomfwWVAvBQgdBUo62e4n3-fLIajWUU,563
|
107
|
-
uipath/_utils/constants.py,sha256=
|
109
|
+
uipath/_utils/constants.py,sha256=defPi1_4sLojgKVsbdIjkfME8O8n-iLmJnj_-n4Ox8s,1108
|
108
110
|
uipath/agent/conversation/__init__.py,sha256=5hK-Iz131mnd9m6ANnpZZffxXZLVFDQ9GTg5z9ik1oQ,5265
|
109
111
|
uipath/agent/conversation/async_stream.py,sha256=BA_8uU1DgE3VpU2KkJj0rkI3bAHLk_ZJKsajR0ipMpo,2055
|
110
112
|
uipath/agent/conversation/citation.py,sha256=42dGv-wiYx3Lt7MPuPCFTkjAlSADFSzjyNXuZHdxqvo,2253
|
@@ -115,6 +117,8 @@ uipath/agent/conversation/exchange.py,sha256=nuk1tEMBHc_skrraT17d8U6AtyJ3h07ExGQ
|
|
115
117
|
uipath/agent/conversation/message.py,sha256=1ZkEs146s79TrOAWCQwzBAEJvjAu4lQBpJ64tKXDgGE,2142
|
116
118
|
uipath/agent/conversation/meta.py,sha256=3t0eS9UHoAPHre97QTUeVbjDhnMX4zj4-qG6ju0B8wY,315
|
117
119
|
uipath/agent/conversation/tool.py,sha256=ol8XI8AVd-QNn5auXNBPcCzOkh9PPFtL7hTK3kqInkU,2191
|
120
|
+
uipath/eval/_helpers/__init__.py,sha256=GSmZMryjuO3Wo_zdxZdrHCRRsgOxsVFYkYgJ15YNC3E,86
|
121
|
+
uipath/eval/_helpers/helpers.py,sha256=iE2HHdMiAdAMLqxHkPKHpfecEtAuN5BTBqvKFTI8ciE,1315
|
118
122
|
uipath/models/__init__.py,sha256=d_DkK1AtRUetM1t2NrH5UKgvJOBiynzaKnK5pMY7aIc,1289
|
119
123
|
uipath/models/action_schema.py,sha256=lKDhP7Eix23fFvfQrqqNmSOiPyyNF6tiRpUu0VZIn_M,714
|
120
124
|
uipath/models/actions.py,sha256=ekSH4YUQR4KPOH-heBm9yOgOfirndx0In4_S4VYWeEU,2993
|
@@ -124,7 +128,7 @@ uipath/models/buckets.py,sha256=N3Lj_dVCv709-ywhOOdyCSvsuLn41eGuAfSiik6Q6F8,1285
|
|
124
128
|
uipath/models/connections.py,sha256=Kej_t2mH-JOomf8pDXPWW1SrvOd8OraOjOH0nKBrVlU,2598
|
125
129
|
uipath/models/context_grounding.py,sha256=S9PeOlFlw7VxzzJVR_Fs28OObW3MLHUPCFqNgkEz24k,1315
|
126
130
|
uipath/models/context_grounding_index.py,sha256=0ADlH8fC10qIbakgwU89pRVawzJ36TiSDKIqOhUdhuA,2580
|
127
|
-
uipath/models/errors.py,sha256=
|
131
|
+
uipath/models/errors.py,sha256=WCxxHBlLzLF17YxjqsFkkyBLwEQM_dc6fFU5qmBjD4A,597
|
128
132
|
uipath/models/exceptions.py,sha256=F0ITAhJsl6Agvmnv4nxvgY5oC_lrYIlxWTLs0yx859M,1636
|
129
133
|
uipath/models/interrupt_models.py,sha256=UzuVTMVesI204YQ4qFQFaN-gN3kksddkrujofcaC7zQ,881
|
130
134
|
uipath/models/job.py,sha256=wH6Nw01NPEGn_pkQFSPID74Oabv0u48P6KW6laO4FoU,3243
|
@@ -140,8 +144,8 @@ uipath/tracing/_traced.py,sha256=qeVDrds2OUnpdUIA0RhtF0kg2dlAZhyC1RRkI-qivTM,185
|
|
140
144
|
uipath/tracing/_utils.py,sha256=wJRELaPu69iY0AhV432Dk5QYf_N_ViRU4kAUG1BI1ew,10384
|
141
145
|
uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
|
142
146
|
uipath/utils/_endpoints_manager.py,sha256=iRTl5Q0XAm_YgcnMcJOXtj-8052sr6jpWuPNz6CgT0Q,8408
|
143
|
-
uipath-2.1.
|
144
|
-
uipath-2.1.
|
145
|
-
uipath-2.1.
|
146
|
-
uipath-2.1.
|
147
|
-
uipath-2.1.
|
147
|
+
uipath-2.1.44.dist-info/METADATA,sha256=63AwBAFGwMtIvk-7t6s5vuZ6YZoSG1vPyX-JIYtVkUo,6482
|
148
|
+
uipath-2.1.44.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
149
|
+
uipath-2.1.44.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
150
|
+
uipath-2.1.44.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
151
|
+
uipath-2.1.44.dist-info/RECORD,,
|