uipath 2.1.133__py3-none-any.whl → 2.1.134__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 might be problematic. Click here for more details.
- uipath/_cli/_runtime/_contracts.py +3 -3
- uipath/_cli/_runtime/_runtime.py +5 -5
- uipath/_cli/_utils/_common.py +0 -1
- uipath/_cli/_utils/_parse_ast.py +20 -2
- uipath/_cli/cli_init.py +7 -6
- uipath/_cli/cli_pack.py +9 -1
- uipath/_cli/models/runtime_schema.py +3 -1
- uipath/_services/assets_service.py +5 -5
- uipath/_services/buckets_service.py +17 -17
- uipath/_services/connections_service.py +3 -3
- uipath/_services/context_grounding_service.py +9 -7
- uipath/_services/processes_service.py +3 -3
- uipath/_utils/__init__.py +2 -2
- uipath/_utils/_bindings.py +1 -1
- {uipath-2.1.133.dist-info → uipath-2.1.134.dist-info}/METADATA +1 -1
- {uipath-2.1.133.dist-info → uipath-2.1.134.dist-info}/RECORD +19 -19
- {uipath-2.1.133.dist-info → uipath-2.1.134.dist-info}/WHEEL +0 -0
- {uipath-2.1.133.dist-info → uipath-2.1.134.dist-info}/entry_points.txt +0 -0
- {uipath-2.1.133.dist-info → uipath-2.1.134.dist-info}/licenses/LICENSE +0 -0
|
@@ -39,7 +39,7 @@ from uipath._events._events import UiPathRuntimeEvent
|
|
|
39
39
|
from uipath.agent.conversation import UiPathConversationEvent, UiPathConversationMessage
|
|
40
40
|
from uipath.tracing import TracingManager
|
|
41
41
|
|
|
42
|
-
from ..models.runtime_schema import
|
|
42
|
+
from ..models.runtime_schema import Bindings, Entrypoint
|
|
43
43
|
from ._logging import LogsInterceptor
|
|
44
44
|
|
|
45
45
|
logger = logging.getLogger(__name__)
|
|
@@ -581,10 +581,10 @@ class UiPathBaseRuntime(ABC):
|
|
|
581
581
|
runtime = cls(context)
|
|
582
582
|
return runtime
|
|
583
583
|
|
|
584
|
-
async def
|
|
584
|
+
async def get_bindings(self) -> Bindings:
|
|
585
585
|
"""Get binding resources for this runtime.
|
|
586
586
|
|
|
587
|
-
Returns: A
|
|
587
|
+
Returns: A bindings object.
|
|
588
588
|
"""
|
|
589
589
|
raise NotImplementedError()
|
|
590
590
|
|
uipath/_cli/_runtime/_runtime.py
CHANGED
|
@@ -4,14 +4,14 @@ import logging
|
|
|
4
4
|
import os
|
|
5
5
|
import uuid
|
|
6
6
|
from pathlib import Path
|
|
7
|
-
from typing import Any, Awaitable, Callable,
|
|
7
|
+
from typing import Any, Awaitable, Callable, Optional, TypeVar
|
|
8
8
|
|
|
9
9
|
from typing_extensions import override
|
|
10
10
|
|
|
11
11
|
from .._utils._console import ConsoleLogger
|
|
12
12
|
from .._utils._input_args import generate_args
|
|
13
13
|
from .._utils._parse_ast import generate_bindings # type: ignore[attr-defined]
|
|
14
|
-
from ..models.runtime_schema import
|
|
14
|
+
from ..models.runtime_schema import Bindings, Entrypoint
|
|
15
15
|
from ._contracts import (
|
|
16
16
|
UiPathBaseRuntime,
|
|
17
17
|
UiPathErrorCategory,
|
|
@@ -116,15 +116,15 @@ class UiPathScriptRuntime(UiPathRuntime):
|
|
|
116
116
|
return UiPathScriptRuntime(context, context.entrypoint or "")
|
|
117
117
|
|
|
118
118
|
@override
|
|
119
|
-
async def
|
|
119
|
+
async def get_bindings(self) -> Bindings:
|
|
120
120
|
"""Get binding resources for script runtime.
|
|
121
121
|
|
|
122
|
-
Returns: A
|
|
122
|
+
Returns: A bindings object.
|
|
123
123
|
"""
|
|
124
124
|
working_dir = self.context.runtime_dir or os.getcwd()
|
|
125
125
|
script_path = get_user_script(working_dir, entrypoint=self.context.entrypoint)
|
|
126
126
|
bindings = generate_bindings(script_path)
|
|
127
|
-
return bindings
|
|
127
|
+
return bindings
|
|
128
128
|
|
|
129
129
|
@override
|
|
130
130
|
async def get_entrypoint(self) -> Entrypoint:
|
uipath/_cli/_utils/_common.py
CHANGED
|
@@ -141,7 +141,6 @@ async def read_resource_overwrites_from_file(
|
|
|
141
141
|
.get("internalArguments", {})
|
|
142
142
|
.get("resourceOverwrites", {})
|
|
143
143
|
)
|
|
144
|
-
|
|
145
144
|
for key, value in resource_overwrites.items():
|
|
146
145
|
overwrite = ResourceOverwrite.model_validate(value)
|
|
147
146
|
overwrites_dict[key] = overwrite
|
uipath/_cli/_utils/_parse_ast.py
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# type: ignore
|
|
2
2
|
|
|
3
3
|
import ast
|
|
4
|
+
import json
|
|
4
5
|
import os
|
|
5
6
|
from dataclasses import dataclass, field
|
|
6
7
|
from typing import Any, Dict, List, Optional, Tuple
|
|
7
8
|
|
|
9
|
+
from ..._config import UiPathConfig
|
|
8
10
|
from ..._services import (
|
|
9
11
|
AssetsService,
|
|
10
12
|
BucketsService,
|
|
@@ -481,7 +483,7 @@ def convert_to_bindings_format(sdk_usage_data) -> Bindings:
|
|
|
481
483
|
folder_path = folder_path.replace("EXPR$", "") if folder_path else None
|
|
482
484
|
key = name
|
|
483
485
|
if folder_path:
|
|
484
|
-
key = f"{
|
|
486
|
+
key = f"{name}.{folder_path}"
|
|
485
487
|
resource_entry = BindingResource(
|
|
486
488
|
resource=service_name_resource_mapping[resource_type],
|
|
487
489
|
key=key,
|
|
@@ -556,6 +558,22 @@ def generate_bindings(file_path: str) -> Bindings:
|
|
|
556
558
|
bindings = convert_to_bindings_format(sdk_usage)
|
|
557
559
|
|
|
558
560
|
return bindings
|
|
559
|
-
|
|
560
561
|
except Exception as e:
|
|
561
562
|
raise Exception(f"Error generating bindings JSON: {e}") from e
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
def write_bindings_file(bindings: Bindings) -> str:
|
|
566
|
+
"""Write bindings to a JSON file.
|
|
567
|
+
|
|
568
|
+
Args:
|
|
569
|
+
bindings: The Bindings object to write to file
|
|
570
|
+
|
|
571
|
+
Returns:
|
|
572
|
+
str: The path to the written bindings file
|
|
573
|
+
"""
|
|
574
|
+
bindings_file_path = UiPathConfig.bindings_file_path
|
|
575
|
+
with open(bindings_file_path, "w") as bindings_file:
|
|
576
|
+
json_object = bindings.model_dump(by_alias=True, exclude_unset=True)
|
|
577
|
+
json.dump(json_object, bindings_file, indent=4)
|
|
578
|
+
|
|
579
|
+
return bindings_file_path
|
uipath/_cli/cli_init.py
CHANGED
|
@@ -17,8 +17,9 @@ from ..telemetry._constants import _PROJECT_KEY, _TELEMETRY_CONFIG_FILE
|
|
|
17
17
|
from ._runtime._runtime import get_user_script
|
|
18
18
|
from ._runtime._runtime_factory import generate_runtime_factory
|
|
19
19
|
from ._utils._console import ConsoleLogger
|
|
20
|
+
from ._utils._parse_ast import write_bindings_file
|
|
20
21
|
from .middlewares import Middlewares
|
|
21
|
-
from .models.runtime_schema import
|
|
22
|
+
from .models.runtime_schema import RuntimeSchema
|
|
22
23
|
|
|
23
24
|
console = ConsoleLogger()
|
|
24
25
|
logger = logging.getLogger(__name__)
|
|
@@ -221,16 +222,16 @@ def init(entrypoint: str, infer_bindings: bool, no_agents_md_override: bool) ->
|
|
|
221
222
|
async def initialize() -> None:
|
|
222
223
|
try:
|
|
223
224
|
runtime = generate_runtime_factory().new_runtime(**context_args)
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
|
|
226
|
+
bindings = await runtime.get_bindings()
|
|
227
|
+
bindings_path = write_bindings_file(bindings)
|
|
228
|
+
|
|
228
229
|
config_data = RuntimeSchema(
|
|
229
230
|
entryPoints=[await runtime.get_entrypoint()],
|
|
230
|
-
bindings=bindings,
|
|
231
231
|
)
|
|
232
232
|
config_path = write_config_file(config_data)
|
|
233
233
|
console.success(f"Created '{config_path}' file.")
|
|
234
|
+
console.success(f"Created '{bindings_path}' file.")
|
|
234
235
|
except Exception as e:
|
|
235
236
|
console.error(f"Error creating configuration file:\n {str(e)}")
|
|
236
237
|
|
uipath/_cli/cli_pack.py
CHANGED
|
@@ -211,7 +211,6 @@ def pack_fn(
|
|
|
211
211
|
operate_file = generate_operate_file(entryPoints, dependencies)
|
|
212
212
|
entrypoints_file = generate_entrypoints_file(entryPoints)
|
|
213
213
|
|
|
214
|
-
# Get bindings from uipath.json if available
|
|
215
214
|
config_path = os.path.join(directory, "uipath.json")
|
|
216
215
|
if not os.path.exists(config_path):
|
|
217
216
|
console.error("uipath.json not found, please run `uipath init`.")
|
|
@@ -219,6 +218,15 @@ def pack_fn(
|
|
|
219
218
|
with open(config_path, "r") as f:
|
|
220
219
|
config_data = TypeAdapter(RuntimeSchema).validate_python(json.load(f))
|
|
221
220
|
|
|
221
|
+
# for backwards compatibility. should be removed
|
|
222
|
+
if not len(config_data.bindings.resources):
|
|
223
|
+
# try to read bindings from bindings.json
|
|
224
|
+
bindings_path = os.path.join(directory, str(UiPathConfig.bindings_file_path))
|
|
225
|
+
if os.path.exists(bindings_path):
|
|
226
|
+
with open(bindings_path, "r") as f:
|
|
227
|
+
bindings_data = TypeAdapter(Bindings).validate_python(json.load(f))
|
|
228
|
+
config_data.bindings = bindings_data
|
|
229
|
+
|
|
222
230
|
content_types_content = generate_content_types_content()
|
|
223
231
|
[psmdcp_file_name, psmdcp_content] = generate_psmdcp_content(
|
|
224
232
|
projectName, version, description, authors
|
|
@@ -63,7 +63,9 @@ class RuntimeArguments(BaseModel):
|
|
|
63
63
|
class RuntimeSchema(BaseModel):
|
|
64
64
|
runtime: Optional[RuntimeArguments] = Field(default=None, alias="runtime")
|
|
65
65
|
entrypoints: List[Entrypoint] = Field(..., alias="entryPoints")
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
# left for backward compatibility with uipath-langchain and uipath-llamaindex libraries. should be removed on major release
|
|
68
|
+
bindings: Optional[Bindings] = Field(
|
|
67
69
|
default=Bindings(version="2.0", resources=[]), alias="bindings"
|
|
68
70
|
)
|
|
69
71
|
settings: Optional[Dict[str, Any]] = Field(default=None, alias="setting")
|
|
@@ -5,7 +5,7 @@ from httpx import Response
|
|
|
5
5
|
from .._config import Config
|
|
6
6
|
from .._execution_context import ExecutionContext
|
|
7
7
|
from .._folder_context import FolderContext
|
|
8
|
-
from .._utils import Endpoint, RequestSpec, header_folder,
|
|
8
|
+
from .._utils import Endpoint, RequestSpec, header_folder, resource_override
|
|
9
9
|
from ..models import Asset, UserAsset
|
|
10
10
|
from ..tracing._traced import traced
|
|
11
11
|
from ._base_service import BaseService
|
|
@@ -25,7 +25,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
25
25
|
@traced(
|
|
26
26
|
name="assets_retrieve", run_type="uipath", hide_input=True, hide_output=True
|
|
27
27
|
)
|
|
28
|
-
@
|
|
28
|
+
@resource_override(resource_type="asset")
|
|
29
29
|
def retrieve(
|
|
30
30
|
self,
|
|
31
31
|
name: str,
|
|
@@ -81,7 +81,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
81
81
|
@traced(
|
|
82
82
|
name="assets_retrieve", run_type="uipath", hide_input=True, hide_output=True
|
|
83
83
|
)
|
|
84
|
-
@
|
|
84
|
+
@resource_override(resource_type="asset")
|
|
85
85
|
async def retrieve_async(
|
|
86
86
|
self,
|
|
87
87
|
name: str,
|
|
@@ -128,7 +128,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
128
128
|
@traced(
|
|
129
129
|
name="assets_credential", run_type="uipath", hide_input=True, hide_output=True
|
|
130
130
|
)
|
|
131
|
-
@
|
|
131
|
+
@resource_override(resource_type="asset")
|
|
132
132
|
def retrieve_credential(
|
|
133
133
|
self,
|
|
134
134
|
name: str,
|
|
@@ -183,7 +183,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
183
183
|
@traced(
|
|
184
184
|
name="assets_credential", run_type="uipath", hide_input=True, hide_output=True
|
|
185
185
|
)
|
|
186
|
-
@
|
|
186
|
+
@resource_override(resource_type="asset")
|
|
187
187
|
async def retrieve_credential_async(
|
|
188
188
|
self,
|
|
189
189
|
name: str,
|
|
@@ -9,7 +9,7 @@ import httpx
|
|
|
9
9
|
from .._config import Config
|
|
10
10
|
from .._execution_context import ExecutionContext
|
|
11
11
|
from .._folder_context import FolderContext
|
|
12
|
-
from .._utils import Endpoint, RequestSpec, header_folder,
|
|
12
|
+
from .._utils import Endpoint, RequestSpec, header_folder, resource_override
|
|
13
13
|
from .._utils._ssl_context import get_httpx_client_kwargs
|
|
14
14
|
from ..models import Bucket, BucketFile
|
|
15
15
|
from ..tracing._traced import traced
|
|
@@ -259,7 +259,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
259
259
|
return bucket
|
|
260
260
|
|
|
261
261
|
@traced(name="buckets_delete", run_type="uipath")
|
|
262
|
-
@
|
|
262
|
+
@resource_override(resource_type="bucket")
|
|
263
263
|
def delete(
|
|
264
264
|
self,
|
|
265
265
|
*,
|
|
@@ -294,7 +294,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
294
294
|
)
|
|
295
295
|
|
|
296
296
|
@traced(name="buckets_delete", run_type="uipath")
|
|
297
|
-
@
|
|
297
|
+
@resource_override(resource_type="bucket")
|
|
298
298
|
async def delete_async(
|
|
299
299
|
self,
|
|
300
300
|
*,
|
|
@@ -315,7 +315,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
315
315
|
)
|
|
316
316
|
|
|
317
317
|
@traced(name="buckets_download", run_type="uipath")
|
|
318
|
-
@
|
|
318
|
+
@resource_override(resource_type="bucket")
|
|
319
319
|
def download(
|
|
320
320
|
self,
|
|
321
321
|
*,
|
|
@@ -370,7 +370,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
370
370
|
file.write(file_content)
|
|
371
371
|
|
|
372
372
|
@traced(name="buckets_download", run_type="uipath")
|
|
373
|
-
@
|
|
373
|
+
@resource_override(resource_type="bucket")
|
|
374
374
|
async def download_async(
|
|
375
375
|
self,
|
|
376
376
|
*,
|
|
@@ -431,7 +431,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
431
431
|
await asyncio.to_thread(Path(destination_path).write_bytes, file_content)
|
|
432
432
|
|
|
433
433
|
@traced(name="buckets_upload", run_type="uipath")
|
|
434
|
-
@
|
|
434
|
+
@resource_override(resource_type="bucket")
|
|
435
435
|
def upload(
|
|
436
436
|
self,
|
|
437
437
|
*,
|
|
@@ -523,7 +523,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
523
523
|
)
|
|
524
524
|
|
|
525
525
|
@traced(name="buckets_upload", run_type="uipath")
|
|
526
|
-
@
|
|
526
|
+
@resource_override(resource_type="bucket")
|
|
527
527
|
async def upload_async(
|
|
528
528
|
self,
|
|
529
529
|
*,
|
|
@@ -620,7 +620,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
620
620
|
)
|
|
621
621
|
|
|
622
622
|
@traced(name="buckets_retrieve", run_type="uipath")
|
|
623
|
-
@
|
|
623
|
+
@resource_override(resource_type="bucket")
|
|
624
624
|
def retrieve(
|
|
625
625
|
self,
|
|
626
626
|
*,
|
|
@@ -695,7 +695,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
695
695
|
return bucket
|
|
696
696
|
|
|
697
697
|
@traced(name="buckets_retrieve", run_type="uipath")
|
|
698
|
-
@
|
|
698
|
+
@resource_override(resource_type="bucket")
|
|
699
699
|
async def retrieve_async(
|
|
700
700
|
self,
|
|
701
701
|
*,
|
|
@@ -774,7 +774,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
774
774
|
return bucket
|
|
775
775
|
|
|
776
776
|
@traced(name="buckets_list_files", run_type="uipath")
|
|
777
|
-
@
|
|
777
|
+
@resource_override(resource_type="bucket")
|
|
778
778
|
def list_files(
|
|
779
779
|
self,
|
|
780
780
|
*,
|
|
@@ -837,7 +837,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
837
837
|
break
|
|
838
838
|
|
|
839
839
|
@traced(name="buckets_list_files", run_type="uipath")
|
|
840
|
-
@
|
|
840
|
+
@resource_override(resource_type="bucket")
|
|
841
841
|
async def list_files_async(
|
|
842
842
|
self,
|
|
843
843
|
*,
|
|
@@ -902,7 +902,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
902
902
|
break
|
|
903
903
|
|
|
904
904
|
@traced(name="buckets_exists_file", run_type="uipath")
|
|
905
|
-
@
|
|
905
|
+
@resource_override(resource_type="bucket")
|
|
906
906
|
def exists_file(
|
|
907
907
|
self,
|
|
908
908
|
*,
|
|
@@ -961,7 +961,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
961
961
|
return False
|
|
962
962
|
|
|
963
963
|
@traced(name="buckets_exists_file", run_type="uipath")
|
|
964
|
-
@
|
|
964
|
+
@resource_override(resource_type="bucket")
|
|
965
965
|
async def exists_file_async(
|
|
966
966
|
self,
|
|
967
967
|
*,
|
|
@@ -1009,7 +1009,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
1009
1009
|
return False
|
|
1010
1010
|
|
|
1011
1011
|
@traced(name="buckets_delete_file", run_type="uipath")
|
|
1012
|
-
@
|
|
1012
|
+
@resource_override(resource_type="bucket")
|
|
1013
1013
|
def delete_file(
|
|
1014
1014
|
self,
|
|
1015
1015
|
*,
|
|
@@ -1045,7 +1045,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
1045
1045
|
)
|
|
1046
1046
|
|
|
1047
1047
|
@traced(name="buckets_delete_file", run_type="uipath")
|
|
1048
|
-
@
|
|
1048
|
+
@resource_override(resource_type="bucket")
|
|
1049
1049
|
async def delete_file_async(
|
|
1050
1050
|
self,
|
|
1051
1051
|
*,
|
|
@@ -1081,7 +1081,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
1081
1081
|
)
|
|
1082
1082
|
|
|
1083
1083
|
@traced(name="buckets_get_files", run_type="uipath")
|
|
1084
|
-
@
|
|
1084
|
+
@resource_override(resource_type="bucket")
|
|
1085
1085
|
def get_files(
|
|
1086
1086
|
self,
|
|
1087
1087
|
*,
|
|
@@ -1189,7 +1189,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
1189
1189
|
skip += top
|
|
1190
1190
|
|
|
1191
1191
|
@traced(name="buckets_get_files", run_type="uipath")
|
|
1192
|
-
@
|
|
1192
|
+
@resource_override(resource_type="bucket")
|
|
1193
1193
|
async def get_files_async(
|
|
1194
1194
|
self,
|
|
1195
1195
|
*,
|
|
@@ -7,7 +7,7 @@ from httpx import Response
|
|
|
7
7
|
|
|
8
8
|
from .._config import Config
|
|
9
9
|
from .._execution_context import ExecutionContext
|
|
10
|
-
from .._utils import Endpoint, RequestSpec, header_folder,
|
|
10
|
+
from .._utils import Endpoint, RequestSpec, header_folder, resource_override
|
|
11
11
|
from ..models import Connection, ConnectionMetadata, ConnectionToken, EventArguments
|
|
12
12
|
from ..models.connections import ConnectionTokenType
|
|
13
13
|
from ..tracing._traced import traced
|
|
@@ -401,7 +401,7 @@ class ConnectionsService(BaseService):
|
|
|
401
401
|
name="connections_retrieve_event_payload",
|
|
402
402
|
run_type="uipath",
|
|
403
403
|
)
|
|
404
|
-
@
|
|
404
|
+
@resource_override(resource_type="ignored", ignore=True)
|
|
405
405
|
def retrieve_event_payload(self, event_args: EventArguments) -> Dict[str, Any]:
|
|
406
406
|
"""Retrieve event payload from UiPath Integration Service.
|
|
407
407
|
|
|
@@ -436,7 +436,7 @@ class ConnectionsService(BaseService):
|
|
|
436
436
|
name="connections_retrieve_event_payload",
|
|
437
437
|
run_type="uipath",
|
|
438
438
|
)
|
|
439
|
-
@
|
|
439
|
+
@resource_override(resource_type="ignored", ignore=True)
|
|
440
440
|
async def retrieve_event_payload_async(
|
|
441
441
|
self, event_args: EventArguments
|
|
442
442
|
) -> Dict[str, Any]:
|
|
@@ -8,7 +8,7 @@ from typing_extensions import deprecated
|
|
|
8
8
|
from .._config import Config
|
|
9
9
|
from .._execution_context import ExecutionContext
|
|
10
10
|
from .._folder_context import FolderContext
|
|
11
|
-
from .._utils import Endpoint, RequestSpec, header_folder,
|
|
11
|
+
from .._utils import Endpoint, RequestSpec, header_folder, resource_override
|
|
12
12
|
from .._utils.constants import (
|
|
13
13
|
CONFLUENCE_DATA_SOURCE,
|
|
14
14
|
DROPBOX_DATA_SOURCE,
|
|
@@ -51,7 +51,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
51
51
|
super().__init__(config=config, execution_context=execution_context)
|
|
52
52
|
|
|
53
53
|
@traced(name="add_to_index", run_type="uipath")
|
|
54
|
-
@
|
|
54
|
+
@resource_override(resource_type="index")
|
|
55
55
|
def add_to_index(
|
|
56
56
|
self,
|
|
57
57
|
name: str,
|
|
@@ -106,7 +106,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
106
106
|
self.ingest_data(index, folder_key=folder_key, folder_path=folder_path)
|
|
107
107
|
|
|
108
108
|
@traced(name="add_to_index", run_type="uipath")
|
|
109
|
-
@
|
|
109
|
+
@resource_override(resource_type="index")
|
|
110
110
|
async def add_to_index_async(
|
|
111
111
|
self,
|
|
112
112
|
name: str,
|
|
@@ -165,7 +165,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
@traced(name="contextgrounding_retrieve", run_type="uipath")
|
|
168
|
-
@
|
|
168
|
+
@resource_override(resource_type="index")
|
|
169
169
|
def retrieve(
|
|
170
170
|
self,
|
|
171
171
|
name: str,
|
|
@@ -207,7 +207,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
207
207
|
raise Exception("ContextGroundingIndex not found") from e
|
|
208
208
|
|
|
209
209
|
@traced(name="contextgrounding_retrieve", run_type="uipath")
|
|
210
|
-
@
|
|
210
|
+
@resource_override(resource_type="index")
|
|
211
211
|
async def retrieve_async(
|
|
212
212
|
self,
|
|
213
213
|
name: str,
|
|
@@ -319,7 +319,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
319
319
|
return response.json()
|
|
320
320
|
|
|
321
321
|
@traced(name="contextgrounding_create_index", run_type="uipath")
|
|
322
|
-
@
|
|
322
|
+
@resource_override(resource_type="index")
|
|
323
323
|
def create_index(
|
|
324
324
|
self,
|
|
325
325
|
name: str,
|
|
@@ -377,7 +377,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
377
377
|
return ContextGroundingIndex.model_validate(response.json())
|
|
378
378
|
|
|
379
379
|
@traced(name="contextgrounding_create_index", run_type="uipath")
|
|
380
|
-
@
|
|
380
|
+
@resource_override(resource_type="index")
|
|
381
381
|
async def create_index_async(
|
|
382
382
|
self,
|
|
383
383
|
name: str,
|
|
@@ -435,6 +435,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
435
435
|
return ContextGroundingIndex.model_validate(response.json())
|
|
436
436
|
|
|
437
437
|
@traced(name="contextgrounding_search", run_type="uipath")
|
|
438
|
+
@resource_override(resource_type="index")
|
|
438
439
|
def search(
|
|
439
440
|
self,
|
|
440
441
|
name: str,
|
|
@@ -482,6 +483,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
482
483
|
)
|
|
483
484
|
|
|
484
485
|
@traced(name="contextgrounding_search", run_type="uipath")
|
|
486
|
+
@resource_override(resource_type="index")
|
|
485
487
|
async def search_async(
|
|
486
488
|
self,
|
|
487
489
|
name: str,
|
|
@@ -6,7 +6,7 @@ from typing import Any, Dict, Optional
|
|
|
6
6
|
from .._config import Config
|
|
7
7
|
from .._execution_context import ExecutionContext
|
|
8
8
|
from .._folder_context import FolderContext
|
|
9
|
-
from .._utils import Endpoint, RequestSpec, header_folder,
|
|
9
|
+
from .._utils import Endpoint, RequestSpec, header_folder, resource_override
|
|
10
10
|
from .._utils.constants import ENV_JOB_KEY, HEADER_JOB_KEY
|
|
11
11
|
from ..models.job import Job
|
|
12
12
|
from ..tracing._traced import traced
|
|
@@ -32,7 +32,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
32
32
|
super().__init__(config=config, execution_context=execution_context)
|
|
33
33
|
|
|
34
34
|
@traced(name="processes_invoke", run_type="uipath")
|
|
35
|
-
@
|
|
35
|
+
@resource_override(resource_type="process")
|
|
36
36
|
def invoke(
|
|
37
37
|
self,
|
|
38
38
|
name: str,
|
|
@@ -96,7 +96,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
96
96
|
return Job.model_validate(response.json()["value"][0])
|
|
97
97
|
|
|
98
98
|
@traced(name="processes_invoke", run_type="uipath")
|
|
99
|
-
@
|
|
99
|
+
@resource_override(resource_type="process")
|
|
100
100
|
async def invoke_async(
|
|
101
101
|
self,
|
|
102
102
|
name: str,
|
uipath/_utils/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from ._bindings import get_inferred_bindings_names,
|
|
1
|
+
from ._bindings import get_inferred_bindings_names, resource_override
|
|
2
2
|
from ._endpoint import Endpoint
|
|
3
3
|
from ._logs import setup_logging
|
|
4
4
|
from ._request_override import header_folder
|
|
@@ -12,7 +12,7 @@ __all__ = [
|
|
|
12
12
|
"RequestSpec",
|
|
13
13
|
"header_folder",
|
|
14
14
|
"get_inferred_bindings_names",
|
|
15
|
-
"
|
|
15
|
+
"resource_override",
|
|
16
16
|
"header_user_agent",
|
|
17
17
|
"user_agent_value",
|
|
18
18
|
"UiPathUrl",
|
uipath/_utils/_bindings.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.134
|
|
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
|
|
@@ -12,10 +12,10 @@ uipath/_cli/cli_debug.py,sha256=6I3NutFahQ7nvbxUIgW8bmKeoShVf8RCvco3XU0kfTk,4796
|
|
|
12
12
|
uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
|
|
13
13
|
uipath/_cli/cli_dev.py,sha256=nEfpjw1PZ72O6jmufYWVrueVwihFxDPOeJakdvNHdOA,2146
|
|
14
14
|
uipath/_cli/cli_eval.py,sha256=lRNP9kHxIsgdo2tl0bQraCMYLSyANS9VlAOJMr_JdEA,6229
|
|
15
|
-
uipath/_cli/cli_init.py,sha256=
|
|
15
|
+
uipath/_cli/cli_init.py,sha256=8rIHQ1ApU73UTBxg20sJvtG9cYaOdll7TiTfES6F1Kk,7576
|
|
16
16
|
uipath/_cli/cli_invoke.py,sha256=m-te-EjhDpk_fhFDkt-yQFzmjEHGo5lQDGEQWxSXisQ,4395
|
|
17
17
|
uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
|
|
18
|
-
uipath/_cli/cli_pack.py,sha256=
|
|
18
|
+
uipath/_cli/cli_pack.py,sha256=P-PlnQp4MJQuhX2Yd5aOa6-gicir8POihZZy95Xij9Y,11457
|
|
19
19
|
uipath/_cli/cli_publish.py,sha256=DgyfcZjvfV05Ldy0Pk5y_Le_nT9JduEE_x-VpIc_Kq0,6471
|
|
20
20
|
uipath/_cli/cli_pull.py,sha256=KgH4XYywcjTKZb5NtL4jeVxsCjy7g0ZopEmdYbgMGmQ,2361
|
|
21
21
|
uipath/_cli/cli_push.py,sha256=5J-dhDilsYrlYg1aV1eWOU84QC_PlwTi9tI3UZptg1k,3743
|
|
@@ -73,11 +73,11 @@ uipath/_cli/_evals/mocks/mockito_mocker.py,sha256=opwfELnvuh3krnPAg0MupkHTEmhCpQ
|
|
|
73
73
|
uipath/_cli/_evals/mocks/mocks.py,sha256=IrvhtTtIuU5geopvCRglNhxKoOcChnnjQZMoYygx0PU,2225
|
|
74
74
|
uipath/_cli/_push/models.py,sha256=K3k6QUMkiNIb3M4U0EgDlKz1UELxeMXLNVAj3qyhZ4U,470
|
|
75
75
|
uipath/_cli/_push/sw_file_handler.py,sha256=5pf8koOcmypR5BktDuvbAvMgTYQamnWGT-rmR568TTY,41361
|
|
76
|
-
uipath/_cli/_runtime/_contracts.py,sha256=
|
|
76
|
+
uipath/_cli/_runtime/_contracts.py,sha256=90r9nqfQOXjNbj3CjWPmDyN7rEwQkMHXfsSrR3cGr6s,36425
|
|
77
77
|
uipath/_cli/_runtime/_escalation.py,sha256=x3vI98qsfRA-fL_tNkRVTFXioM5Gv2w0GFcXJJ5eQtg,7981
|
|
78
78
|
uipath/_cli/_runtime/_hitl.py,sha256=JAwTUKvxO4HpnZMwE4E0AegAPw_uYOwgt0OYcu6EvTg,11474
|
|
79
79
|
uipath/_cli/_runtime/_logging.py,sha256=srjAi3Cy6g7b8WNHiYNjaZT4t40F3XRqquuoGd2kh4Y,14019
|
|
80
|
-
uipath/_cli/_runtime/_runtime.py,sha256=
|
|
80
|
+
uipath/_cli/_runtime/_runtime.py,sha256=AMZhlR_FRemzt0jt-GaYg4YGvt__Jobqdb8eGYWgtq8,4633
|
|
81
81
|
uipath/_cli/_runtime/_runtime_factory.py,sha256=8wbJeTTFQwCZ-Zm7tRec2YjBCJGhWdEwxl9yMkPwz6U,640
|
|
82
82
|
uipath/_cli/_runtime/_script_executor.py,sha256=zRAGQw_7gM93W3hGH4ml_Qn6KEEUxwJIe96odu-dMNA,9803
|
|
83
83
|
uipath/_cli/_templates/.psmdcp.template,sha256=C7pBJPt98ovEljcBvGtEUGoWjjQhu9jls1bpYjeLOKA,611
|
|
@@ -86,7 +86,7 @@ uipath/_cli/_templates/[Content_Types].xml.template,sha256=bYsKDz31PkIF9QksjgAY_
|
|
|
86
86
|
uipath/_cli/_templates/custom_evaluator.py.template,sha256=OuYQb8ScAOK7Qwz4FYwdETlC2NonEhLF5DXGnsYOzHg,2313
|
|
87
87
|
uipath/_cli/_templates/main.py.template,sha256=QB62qX5HKDbW4lFskxj7h9uuxBITnTWqu_DE6asCwcU,476
|
|
88
88
|
uipath/_cli/_templates/package.nuspec.template,sha256=YZyLc-u_EsmIoKf42JsLQ55OGeFmb8VkIU2VF7DFbtw,359
|
|
89
|
-
uipath/_cli/_utils/_common.py,sha256=
|
|
89
|
+
uipath/_cli/_utils/_common.py,sha256=0i8rMwrZyEs7XYz_ljl5r7hXMGSaCRu5Y_Pk3btUbL4,4605
|
|
90
90
|
uipath/_cli/_utils/_console.py,sha256=scvnrrFoFX6CE451K-PXKV7UN0DUkInbOtDZ5jAdPP0,10070
|
|
91
91
|
uipath/_cli/_utils/_constants.py,sha256=AXeVidtHUFiODrkB2BCX_bqDL-bUzRg-Ieh1-2cCrGA,1374
|
|
92
92
|
uipath/_cli/_utils/_context.py,sha256=zAu8ZZfKmEJ3USHFLvuwBMmd8xG05PunkcIGHEdQoU8,1822
|
|
@@ -95,7 +95,7 @@ uipath/_cli/_utils/_eval_set.py,sha256=QsAtF_K0sKTn_5lcOnhmWbTrGpmlFn0HV7wG3mSuA
|
|
|
95
95
|
uipath/_cli/_utils/_folders.py,sha256=RsYrXzF0NA1sPxgBoLkLlUY3jDNLg1V-Y8j71Q8a8HY,1357
|
|
96
96
|
uipath/_cli/_utils/_formatters.py,sha256=AHIi5eMYEMz4HT5IOq_mqjGcv7CCDxL666UciULqFDY,4752
|
|
97
97
|
uipath/_cli/_utils/_input_args.py,sha256=AnbQ12D2ACIQFt0QHMaWleRn1ZgRTXuTSTN0ozJiSQg,5766
|
|
98
|
-
uipath/_cli/_utils/_parse_ast.py,sha256=
|
|
98
|
+
uipath/_cli/_utils/_parse_ast.py,sha256=5FxA5UFsX49iwEHRgAgoV7WjbmPXlv4hNuUp8smLagI,21489
|
|
99
99
|
uipath/_cli/_utils/_processes.py,sha256=q7DfEKHISDWf3pngci5za_z0Pbnf_shWiYEcTOTCiyk,1855
|
|
100
100
|
uipath/_cli/_utils/_project_files.py,sha256=_Xbm4VPu2SoEemzwED5l75N930rPe6yPHi8BoeQXIy8,23868
|
|
101
101
|
uipath/_cli/_utils/_resources.py,sha256=0MpEZWaY2oDDoxOVVTOXrTWpuwhQyypLcM8TgnXFQq0,577
|
|
@@ -109,7 +109,7 @@ uipath/_cli/_utils/_type_registry.py,sha256=rNBVGtzQdhl2DFtZ0-SyYGCRdzj9U5PnzeyV
|
|
|
109
109
|
uipath/_cli/_utils/_uv_helpers.py,sha256=6SvoLnZPoKIxW0sjMvD1-ENV_HOXDYzH34GjBqwT138,3450
|
|
110
110
|
uipath/_cli/_utils/_validators.py,sha256=Cyp3rL9vtVc9tpB7zE2fvQBMrAgvCizRO4bdun9-FKs,3101
|
|
111
111
|
uipath/_cli/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
112
|
-
uipath/_cli/models/runtime_schema.py,sha256=
|
|
112
|
+
uipath/_cli/models/runtime_schema.py,sha256=pdiSU-wQ75pEwxVqRQmQBeboRcNBmaSH3EtSWkoT5VE,2320
|
|
113
113
|
uipath/_cli/services/__init__.py,sha256=TwZ8HyMoctgDLC-Y6aqmpGH_HD48GsLao9B5LoRux5E,1045
|
|
114
114
|
uipath/_cli/services/_buckets_metadata.py,sha256=o0lXKvkfCvUDF2evG1zjRddqt1w0wqe523d4oSjVoSs,1427
|
|
115
115
|
uipath/_cli/services/cli_buckets.py,sha256=VMmKsr7e1SZ2sAwvMNvvb7ZRNlYxcTvWr1A1SMbsaGI,14782
|
|
@@ -125,11 +125,11 @@ uipath/_services/__init__.py,sha256=_LNy4u--VlhVtTO66bULbCoBjyJBTuyh9jnzjWrv-h4,
|
|
|
125
125
|
uipath/_services/_base_service.py,sha256=6yGNEZ-px6lVR9l4wiMr8NDSeLrZU6nmjUlRp3lMDi8,5665
|
|
126
126
|
uipath/_services/actions_service.py,sha256=2RPMR-hFMsOlqEyjIf3aF7-lrf57jdrSD0pBjj0Kyko,16040
|
|
127
127
|
uipath/_services/api_client.py,sha256=kGm04ijk9AOEQd2BMxvQg-2QoB8dmyoDwFFDPyutAGw,1966
|
|
128
|
-
uipath/_services/assets_service.py,sha256=
|
|
128
|
+
uipath/_services/assets_service.py,sha256=LfEjFDDdUBNX-s2k5KDSV0J99ZWFgioZZo0CgeKC2RY,12105
|
|
129
129
|
uipath/_services/attachments_service.py,sha256=NPQYK7CGjfBaNT_1S5vEAfODmOChTbQZforllFM2ofU,26678
|
|
130
|
-
uipath/_services/buckets_service.py,sha256=
|
|
131
|
-
uipath/_services/connections_service.py,sha256=
|
|
132
|
-
uipath/_services/context_grounding_service.py,sha256=
|
|
130
|
+
uipath/_services/buckets_service.py,sha256=2MYPnyJjS8D94SkGESFzCzQwLwAwbA-KEAxoEKmlakg,49998
|
|
131
|
+
uipath/_services/connections_service.py,sha256=PGsmOOoZTNzwjZvkCLb3fx5UhiBrDejYnWDVDsenOqA,24068
|
|
132
|
+
uipath/_services/context_grounding_service.py,sha256=fter_pfSfnVOxMjSdBvzC7q4jqtoCr4RqAMfihG2IBk,37230
|
|
133
133
|
uipath/_services/documents_service.py,sha256=2mPZzmOl2r5i8RYvdeRSJtEFWSSsiXqIauTgNTW75s4,45341
|
|
134
134
|
uipath/_services/entities_service.py,sha256=QKCLE6wRgq3HZraF-M2mljy-8il4vsNHrQhUgkewVVk,14028
|
|
135
135
|
uipath/_services/external_application_service.py,sha256=gZhnGgLn7ZYUZzZF7AumB14QEPanVY-D_02FqEcAFtw,5478
|
|
@@ -137,11 +137,11 @@ uipath/_services/folder_service.py,sha256=9JqgjKhWD-G_KUnfUTP2BADxL6OK9QNZsBsWZH
|
|
|
137
137
|
uipath/_services/guardrails_service.py,sha256=Uch_3Ph3Obg7vG--iemqJUB7I7vSHmQMYtESAyIzqFI,2796
|
|
138
138
|
uipath/_services/jobs_service.py,sha256=tTZNsdZKN3uP7bWPQyBCpJeQxTfuOWbKYOR4L-_yJo4,32736
|
|
139
139
|
uipath/_services/llm_gateway_service.py,sha256=vRnx5MSSkxxR0Xw4_km0_aDBrWgkZmyJ1QRBp_anfog,24995
|
|
140
|
-
uipath/_services/processes_service.py,sha256=
|
|
140
|
+
uipath/_services/processes_service.py,sha256=MHMEB8lf5H1xfQkc0x0iRWVzrzdPAfZ3r7em5MPRU7o,8594
|
|
141
141
|
uipath/_services/queues_service.py,sha256=VaG3dWL2QK6AJBOLoW2NQTpkPfZjsqsYPl9-kfXPFzA,13534
|
|
142
|
-
uipath/_utils/__init__.py,sha256=
|
|
142
|
+
uipath/_utils/__init__.py,sha256=OxNTLUiCPcJsHiR2OLzXz4GF48iEmsBSlenlr32GGFk,526
|
|
143
143
|
uipath/_utils/_auth.py,sha256=5R30ALuRrIatf_0Lk-AETJvt6ora7h0R7yeDdliW1Lg,2524
|
|
144
|
-
uipath/_utils/_bindings.py,sha256=
|
|
144
|
+
uipath/_utils/_bindings.py,sha256=whUS3R5B6MdX9WDQ_4MvA5iGmmDxgCPXoWOiKRyCXU0,3738
|
|
145
145
|
uipath/_utils/_endpoint.py,sha256=yYHwqbQuJIevpaTkdfYJS9CrtlFeEyfb5JQK5osTCog,2489
|
|
146
146
|
uipath/_utils/_logs.py,sha256=QNo2YnUT1ANFHNEzYWv6PzX11438HPjo9MweQYS9UnU,408
|
|
147
147
|
uipath/_utils/_request_override.py,sha256=fIVHzgHVXITUlWcp8osNBwIafM1qm4_ejx0ng5UzfJ4,573
|
|
@@ -235,8 +235,8 @@ uipath/tracing/_utils.py,sha256=emsQRgYu-P1gj1q7XUPJD94mOa12JvhheRkuZJpLd9Y,1505
|
|
|
235
235
|
uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
|
|
236
236
|
uipath/utils/_endpoints_manager.py,sha256=4JsKLpSNJSqQcotIc_RWS691ywQeCVNwOyY-7ujX2u0,7365
|
|
237
237
|
uipath/utils/dynamic_schema.py,sha256=ahgRLBWzuU0SQilaQVBJfBAVjimq3N3QJ1ztx0U_h2c,4943
|
|
238
|
-
uipath-2.1.
|
|
239
|
-
uipath-2.1.
|
|
240
|
-
uipath-2.1.
|
|
241
|
-
uipath-2.1.
|
|
242
|
-
uipath-2.1.
|
|
238
|
+
uipath-2.1.134.dist-info/METADATA,sha256=srL8dlj8FNsmD-xbk3o6e92SM7CiEu1nCoG--mTmSB8,6626
|
|
239
|
+
uipath-2.1.134.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
240
|
+
uipath-2.1.134.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
241
|
+
uipath-2.1.134.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
242
|
+
uipath-2.1.134.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|