uipath 2.0.10__tar.gz → 2.0.12__tar.gz
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-2.0.10 → uipath-2.0.12}/PKG-INFO +2 -1
- {uipath-2.0.10 → uipath-2.0.12}/pyproject.toml +2 -1
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_init.py +2 -1
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_pack.py +1 -1
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/actions_service.py +5 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/assets_service.py +7 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/buckets_service.py +8 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/connections_service.py +5 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/context_grounding_service.py +13 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/folder_service.py +3 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/jobs_service.py +2 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/llm_gateway_service.py +6 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/processes_service.py +3 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/queues_service.py +13 -0
- uipath-2.0.12/src/uipath/tracing/_traced.py +269 -0
- uipath-2.0.12/tests/tracing/test_traced.py +574 -0
- {uipath-2.0.10 → uipath-2.0.12}/uv.lock +12 -1
- uipath-2.0.10/src/uipath/tracing/_traced.py +0 -165
- uipath-2.0.10/tests/tracing/test_traced.py +0 -145
- {uipath-2.0.10 → uipath-2.0.12}/.cursorrules +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.editorconfig +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.gitattributes +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/build.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/cd.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/ci.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/commitlint.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/lint.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.github/workflows/test.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.gitignore +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.pre-commit-config.yaml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.python-version +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.vscode/extensions.json +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/.vscode/settings.json +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/CONTRIBUTING.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/LICENSE +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/README.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/CONTRIBUTING.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/actions.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/assets/uipath-logo.svg +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/assets.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/buckets.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/connections.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/context_grounding.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/getting_started_agent.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/getting_started_cli.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/getting_started_cloud.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/getting_started_sdk.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/index.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/jobs.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/processes.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/queues.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/docs/sdk.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/justfile +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/mkdocs.yml +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/py.typed +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/README.md +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/_auth_server.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/_models.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/_portal_service.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/_utils.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/auth_config.json +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/index.html +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/localhost.crt +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_auth/localhost.key +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_runtime/_contracts.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_runtime/_logging.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_runtime/_runtime.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_templates/.rels.template +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_templates/main.py.template +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_utils/_common.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_utils/_input_args.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_auth.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_deploy.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_new.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_publish.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/cli_run.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_cli/middlewares.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_config.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_execution_context.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_folder_context.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/_base_service.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/api_client.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_services/connections_service.pyi +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_uipath.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_endpoint.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_infer_bindings.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_logs.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_request_override.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_request_spec.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/_user_agent.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/_utils/constants.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/action_schema.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/actions.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/assets.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/connections.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/context_grounding.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/context_grounding_index.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/exceptions.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/interrupt_models.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/job.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/llm_gateway.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/processes.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/models/queues.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/py.typed +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/tracing/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/tracing/_otel_exporters.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/src/uipath/tracing/_utils.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/__init__.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/cli/test_init.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/conftest.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/sdk/services/test_llm_integration.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/sdk/services/test_llm_service.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/sdk/test_config.py +0 -0
- {uipath-2.0.10 → uipath-2.0.12}/tests/tracing/test_span_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.12
|
|
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
|
|
@@ -16,6 +16,7 @@ Requires-Python: >=3.10
|
|
|
16
16
|
Requires-Dist: click>=8.1.8
|
|
17
17
|
Requires-Dist: httpx>=0.28.1
|
|
18
18
|
Requires-Dist: opentelemetry-sdk>=1.32.1
|
|
19
|
+
Requires-Dist: pathlib>=1.0.1
|
|
19
20
|
Requires-Dist: pydantic>=2.11.1
|
|
20
21
|
Requires-Dist: pytest-asyncio>=0.25.3
|
|
21
22
|
Requires-Dist: python-dotenv>=1.0.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.12"
|
|
4
4
|
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
|
|
5
5
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -15,6 +15,7 @@ dependencies = [
|
|
|
15
15
|
"tenacity>=9.0.0",
|
|
16
16
|
"tomli>=2.2.1",
|
|
17
17
|
"types-requests>=2.32.0.20250306",
|
|
18
|
+
"pathlib>=1.0.1"
|
|
18
19
|
]
|
|
19
20
|
classifiers = [
|
|
20
21
|
"Development Status :: 3 - Alpha",
|
|
@@ -3,6 +3,7 @@ import json
|
|
|
3
3
|
import os
|
|
4
4
|
import traceback
|
|
5
5
|
import uuid
|
|
6
|
+
from pathlib import Path
|
|
6
7
|
from typing import Optional
|
|
7
8
|
|
|
8
9
|
import click
|
|
@@ -75,7 +76,7 @@ def init(entrypoint: str) -> None:
|
|
|
75
76
|
try:
|
|
76
77
|
args = generate_args(script_path)
|
|
77
78
|
|
|
78
|
-
relative_path =
|
|
79
|
+
relative_path = Path(script_path).relative_to(current_directory).as_posix()
|
|
79
80
|
|
|
80
81
|
config_data = {
|
|
81
82
|
"entryPoints": [
|
|
@@ -232,7 +232,7 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
232
232
|
os.makedirs(".uipath", exist_ok=True)
|
|
233
233
|
|
|
234
234
|
# Define the allowlist of file extensions to include
|
|
235
|
-
file_extensions_allowlist = [".py", ".mermaid", ".json"]
|
|
235
|
+
file_extensions_allowlist = [".py", ".mermaid", ".json", ".yaml", ".yml"]
|
|
236
236
|
|
|
237
237
|
with zipfile.ZipFile(
|
|
238
238
|
f".uipath/{projectName}.{version}.nupkg", "w", zipfile.ZIP_DEFLATED
|
|
@@ -14,6 +14,7 @@ from .._utils.constants import (
|
|
|
14
14
|
HEADER_TENANT_ID,
|
|
15
15
|
)
|
|
16
16
|
from ..models import Action, ActionSchema
|
|
17
|
+
from ..tracing._traced import traced
|
|
17
18
|
from ._base_service import BaseService
|
|
18
19
|
|
|
19
20
|
|
|
@@ -175,6 +176,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
175
176
|
"""
|
|
176
177
|
super().__init__(config=config, execution_context=execution_context)
|
|
177
178
|
|
|
179
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
178
180
|
async def create_async(
|
|
179
181
|
self,
|
|
180
182
|
title: str,
|
|
@@ -232,6 +234,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
232
234
|
await self.request_async(spec.method, spec.endpoint, content=spec.content)
|
|
233
235
|
return Action.model_validate(json_response)
|
|
234
236
|
|
|
237
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
235
238
|
def create(
|
|
236
239
|
self,
|
|
237
240
|
title: str,
|
|
@@ -287,6 +290,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
287
290
|
self.request(spec.method, spec.endpoint, content=spec.content)
|
|
288
291
|
return Action.model_validate(json_response)
|
|
289
292
|
|
|
293
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
290
294
|
def retrieve(
|
|
291
295
|
self, action_key: str, app_folder_path: str = "", app_folder_key: str = ""
|
|
292
296
|
) -> Action:
|
|
@@ -311,6 +315,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
311
315
|
|
|
312
316
|
return Action.model_validate(response.json())
|
|
313
317
|
|
|
318
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
314
319
|
async def retrieve_async(
|
|
315
320
|
self, action_key: str, app_folder_path: str = "", app_folder_key: str = ""
|
|
316
321
|
) -> Action:
|
|
@@ -7,6 +7,7 @@ from .._execution_context import ExecutionContext
|
|
|
7
7
|
from .._folder_context import FolderContext
|
|
8
8
|
from .._utils import Endpoint, RequestSpec, header_folder, infer_bindings
|
|
9
9
|
from ..models import UserAsset
|
|
10
|
+
from ..tracing._traced import traced
|
|
10
11
|
from ._base_service import BaseService
|
|
11
12
|
|
|
12
13
|
|
|
@@ -21,6 +22,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
21
22
|
super().__init__(config=config, execution_context=execution_context)
|
|
22
23
|
|
|
23
24
|
@infer_bindings()
|
|
25
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
24
26
|
def retrieve(
|
|
25
27
|
self,
|
|
26
28
|
name: str,
|
|
@@ -56,6 +58,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
56
58
|
|
|
57
59
|
return UserAsset.model_validate(response.json())
|
|
58
60
|
|
|
61
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
59
62
|
async def retrieve_async(
|
|
60
63
|
self,
|
|
61
64
|
name: str,
|
|
@@ -83,6 +86,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
83
86
|
return UserAsset.model_validate(response.json())
|
|
84
87
|
|
|
85
88
|
@infer_bindings()
|
|
89
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
86
90
|
def retrieve_credential(
|
|
87
91
|
self,
|
|
88
92
|
name: str,
|
|
@@ -118,6 +122,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
118
122
|
return user_asset.credential_password
|
|
119
123
|
|
|
120
124
|
@infer_bindings()
|
|
125
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
121
126
|
async def retrieve_credential_async(
|
|
122
127
|
self,
|
|
123
128
|
name: str,
|
|
@@ -153,6 +158,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
153
158
|
|
|
154
159
|
return user_asset.credential_password
|
|
155
160
|
|
|
161
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
156
162
|
def update(
|
|
157
163
|
self,
|
|
158
164
|
robot_asset: UserAsset,
|
|
@@ -181,6 +187,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
181
187
|
headers=spec.headers,
|
|
182
188
|
)
|
|
183
189
|
|
|
190
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
184
191
|
async def update_async(
|
|
185
192
|
self,
|
|
186
193
|
robot_asset: UserAsset,
|
|
@@ -6,6 +6,7 @@ from .._config import Config
|
|
|
6
6
|
from .._execution_context import ExecutionContext
|
|
7
7
|
from .._folder_context import FolderContext
|
|
8
8
|
from .._utils import Endpoint, RequestSpec, infer_bindings
|
|
9
|
+
from ..tracing._traced import traced
|
|
9
10
|
from ._base_service import BaseService
|
|
10
11
|
|
|
11
12
|
|
|
@@ -19,6 +20,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
19
20
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
20
21
|
super().__init__(config=config, execution_context=execution_context)
|
|
21
22
|
|
|
23
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
22
24
|
def download(
|
|
23
25
|
self,
|
|
24
26
|
bucket_key: str,
|
|
@@ -57,6 +59,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
57
59
|
file_content = request("GET", read_uri, headers=headers).content
|
|
58
60
|
file.write(file_content)
|
|
59
61
|
|
|
62
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
60
63
|
def upload(
|
|
61
64
|
self,
|
|
62
65
|
*,
|
|
@@ -108,6 +111,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
108
111
|
else:
|
|
109
112
|
request("PUT", write_uri, headers=headers, files={"file": file})
|
|
110
113
|
|
|
114
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
111
115
|
def upload_from_memory(
|
|
112
116
|
self,
|
|
113
117
|
*,
|
|
@@ -163,6 +167,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
163
167
|
request("PUT", write_uri, headers=headers, content=content)
|
|
164
168
|
|
|
165
169
|
@infer_bindings()
|
|
170
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
166
171
|
def retrieve(self, name: str) -> Any:
|
|
167
172
|
"""Retrieve bucket information by its name.
|
|
168
173
|
|
|
@@ -187,6 +192,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
187
192
|
return response.json()["value"][0]
|
|
188
193
|
|
|
189
194
|
@infer_bindings()
|
|
195
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
190
196
|
async def retrieve_async(self, name: str) -> Any:
|
|
191
197
|
"""Asynchronously retrieve bucket information by its name.
|
|
192
198
|
|
|
@@ -210,6 +216,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
210
216
|
|
|
211
217
|
return response.json()["value"][0]
|
|
212
218
|
|
|
219
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
213
220
|
def retrieve_by_key(self, key: str) -> Any:
|
|
214
221
|
"""Retrieve bucket information by its key.
|
|
215
222
|
|
|
@@ -229,6 +236,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
229
236
|
|
|
230
237
|
return response.json()
|
|
231
238
|
|
|
239
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
232
240
|
async def retrieve_by_key_async(self, key: str) -> Any:
|
|
233
241
|
"""Asynchronously retrieve bucket information by its key.
|
|
234
242
|
|
|
@@ -7,6 +7,7 @@ from .._execution_context import ExecutionContext
|
|
|
7
7
|
from .._utils import Endpoint, RequestSpec
|
|
8
8
|
from .._utils.constants import ENTRYPOINT
|
|
9
9
|
from ..models import Connection, ConnectionToken
|
|
10
|
+
from ..tracing._traced import traced
|
|
10
11
|
from ._base_service import BaseService
|
|
11
12
|
|
|
12
13
|
T_co = TypeVar("T_co", covariant=True)
|
|
@@ -72,6 +73,7 @@ class ConnectionsService(BaseService):
|
|
|
72
73
|
except AttributeError as e:
|
|
73
74
|
raise PluginNotFoundError(f"Plugin '{name}' is not installed") from e
|
|
74
75
|
|
|
76
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
75
77
|
def retrieve(self, key: str) -> Connection:
|
|
76
78
|
"""Retrieve connection details by its key.
|
|
77
79
|
|
|
@@ -89,6 +91,7 @@ class ConnectionsService(BaseService):
|
|
|
89
91
|
response = self.request(spec.method, url=spec.endpoint)
|
|
90
92
|
return Connection.model_validate(response.json())
|
|
91
93
|
|
|
94
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
92
95
|
async def retrieve_async(self, key: str) -> Connection:
|
|
93
96
|
"""Asynchronously retrieve connection details by its key.
|
|
94
97
|
|
|
@@ -106,6 +109,7 @@ class ConnectionsService(BaseService):
|
|
|
106
109
|
response = await self.request_async(spec.method, url=spec.endpoint)
|
|
107
110
|
return Connection.model_validate(response.json())
|
|
108
111
|
|
|
112
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
109
113
|
def retrieve_token(self, key: str) -> ConnectionToken:
|
|
110
114
|
"""Retrieve an authentication token for a connection.
|
|
111
115
|
|
|
@@ -124,6 +128,7 @@ class ConnectionsService(BaseService):
|
|
|
124
128
|
response = self.request(spec.method, url=spec.endpoint, params=spec.params)
|
|
125
129
|
return ConnectionToken.model_validate(response.json())
|
|
126
130
|
|
|
131
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
127
132
|
async def retrieve_token_async(self, key: str) -> ConnectionToken:
|
|
128
133
|
"""Asynchronously retrieve an authentication token for a connection.
|
|
129
134
|
|
|
@@ -15,6 +15,7 @@ from .._utils.constants import (
|
|
|
15
15
|
from ..models import IngestionInProgressException
|
|
16
16
|
from ..models.context_grounding import ContextGroundingQueryResponse
|
|
17
17
|
from ..models.context_grounding_index import ContextGroundingIndex
|
|
18
|
+
from ..tracing._traced import traced
|
|
18
19
|
from ._base_service import BaseService
|
|
19
20
|
from .folder_service import FolderService
|
|
20
21
|
|
|
@@ -41,6 +42,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
41
42
|
self._folders_service = folders_service
|
|
42
43
|
super().__init__(config=config, execution_context=execution_context)
|
|
43
44
|
|
|
45
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
44
46
|
def retrieve(self, name: str) -> Optional[ContextGroundingIndex]:
|
|
45
47
|
"""Retrieve context grounding index information by its name.
|
|
46
48
|
|
|
@@ -70,6 +72,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
70
72
|
None,
|
|
71
73
|
)
|
|
72
74
|
|
|
75
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
73
76
|
async def retrieve_async(self, name: str) -> Optional[ContextGroundingIndex]:
|
|
74
77
|
"""Retrieve asynchronously context grounding index information by its name.
|
|
75
78
|
|
|
@@ -102,6 +105,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
102
105
|
None,
|
|
103
106
|
)
|
|
104
107
|
|
|
108
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
105
109
|
def retrieve_by_id(self, id: str) -> Any:
|
|
106
110
|
"""Retrieve context grounding index information by its ID.
|
|
107
111
|
|
|
@@ -122,6 +126,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
122
126
|
params=spec.params,
|
|
123
127
|
).json()
|
|
124
128
|
|
|
129
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
125
130
|
async def retrieve_by_id_async(self, id: str) -> Any:
|
|
126
131
|
"""Retrieve asynchronously context grounding index information by its ID.
|
|
127
132
|
|
|
@@ -145,6 +150,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
145
150
|
|
|
146
151
|
return response.json()
|
|
147
152
|
|
|
153
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
148
154
|
def search(
|
|
149
155
|
self,
|
|
150
156
|
name: str,
|
|
@@ -183,6 +189,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
183
189
|
response.json()
|
|
184
190
|
)
|
|
185
191
|
|
|
192
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
186
193
|
async def search_async(
|
|
187
194
|
self,
|
|
188
195
|
name: str,
|
|
@@ -220,6 +227,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
220
227
|
response.json()
|
|
221
228
|
)
|
|
222
229
|
|
|
230
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
223
231
|
def get_or_create_index(
|
|
224
232
|
self,
|
|
225
233
|
name: str,
|
|
@@ -248,6 +256,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
248
256
|
).json()
|
|
249
257
|
return ContextGroundingIndex.model_validate(response)
|
|
250
258
|
|
|
259
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
251
260
|
async def get_or_create_index_async(
|
|
252
261
|
self,
|
|
253
262
|
name: str,
|
|
@@ -278,6 +287,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
278
287
|
).json()
|
|
279
288
|
return ContextGroundingIndex.model_validate(response)
|
|
280
289
|
|
|
290
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
281
291
|
def ingest_data(self, index: ContextGroundingIndex) -> None:
|
|
282
292
|
if not index.id:
|
|
283
293
|
return
|
|
@@ -288,6 +298,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
288
298
|
headers=spec.headers,
|
|
289
299
|
)
|
|
290
300
|
|
|
301
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
291
302
|
async def ingest_data_async(self, index: ContextGroundingIndex) -> None:
|
|
292
303
|
if not index.id:
|
|
293
304
|
return
|
|
@@ -298,6 +309,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
298
309
|
headers=spec.headers,
|
|
299
310
|
)
|
|
300
311
|
|
|
312
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
301
313
|
def delete_index(self, index: ContextGroundingIndex) -> None:
|
|
302
314
|
if not index.id:
|
|
303
315
|
return
|
|
@@ -308,6 +320,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
308
320
|
headers=spec.headers,
|
|
309
321
|
)
|
|
310
322
|
|
|
323
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
311
324
|
async def delete_index_async(self, index: ContextGroundingIndex) -> None:
|
|
312
325
|
if not index.id:
|
|
313
326
|
return
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
|
+
from uipath.tracing._traced import traced
|
|
4
|
+
|
|
3
5
|
from .._config import Config
|
|
4
6
|
from .._execution_context import ExecutionContext
|
|
5
7
|
from .._utils import Endpoint, RequestSpec
|
|
@@ -31,6 +33,7 @@ class FolderService(BaseService):
|
|
|
31
33
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
32
34
|
super().__init__(config=config, execution_context=execution_context)
|
|
33
35
|
|
|
36
|
+
@traced(run_type="uipath")
|
|
34
37
|
def retrieve_key_by_folder_path(self, folder_path: str) -> Optional[str]:
|
|
35
38
|
spec = _retrieve_spec(folder_path)
|
|
36
39
|
response = self.request(
|
|
@@ -6,6 +6,7 @@ from .._execution_context import ExecutionContext
|
|
|
6
6
|
from .._folder_context import FolderContext
|
|
7
7
|
from .._utils import Endpoint, RequestSpec, header_folder
|
|
8
8
|
from ..models.job import Job
|
|
9
|
+
from ..tracing._traced import traced
|
|
9
10
|
from ._base_service import BaseService
|
|
10
11
|
|
|
11
12
|
|
|
@@ -26,6 +27,7 @@ class JobsService(FolderContext, BaseService):
|
|
|
26
27
|
@overload
|
|
27
28
|
def resume(self, *, job_id: str, payload: Any) -> None: ...
|
|
28
29
|
|
|
30
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
29
31
|
def resume(
|
|
30
32
|
self,
|
|
31
33
|
*,
|
|
@@ -12,6 +12,7 @@ from ..models.llm_gateway import (
|
|
|
12
12
|
ToolDefinition,
|
|
13
13
|
UsageInfo,
|
|
14
14
|
)
|
|
15
|
+
from ..tracing._traced import traced
|
|
15
16
|
from ._base_service import BaseService
|
|
16
17
|
|
|
17
18
|
# Common constants
|
|
@@ -53,6 +54,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
53
54
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
54
55
|
super().__init__(config=config, execution_context=execution_context)
|
|
55
56
|
|
|
57
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
56
58
|
async def embeddings_usage(
|
|
57
59
|
self, input: str, embedding_model: str = EmbeddingModels.text_embedding_ada_002
|
|
58
60
|
):
|
|
@@ -79,6 +81,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
79
81
|
|
|
80
82
|
return UsageInfo.model_validate(response.json())
|
|
81
83
|
|
|
84
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
82
85
|
async def embeddings(
|
|
83
86
|
self, input: str, embedding_model: str = EmbeddingModels.text_embedding_ada_002
|
|
84
87
|
):
|
|
@@ -104,6 +107,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
104
107
|
|
|
105
108
|
return TextEmbedding.model_validate(response.json())
|
|
106
109
|
|
|
110
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
107
111
|
async def chat_completions(
|
|
108
112
|
self,
|
|
109
113
|
messages: List[Dict[str, str]],
|
|
@@ -153,6 +157,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
153
157
|
|
|
154
158
|
return ChatCompletion.model_validate(response.json())
|
|
155
159
|
|
|
160
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
156
161
|
async def chat_completions_usage(
|
|
157
162
|
self,
|
|
158
163
|
messages: List[Dict[str, str]],
|
|
@@ -211,6 +216,7 @@ class UiPathLlmChatService(BaseService):
|
|
|
211
216
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
212
217
|
super().__init__(config=config, execution_context=execution_context)
|
|
213
218
|
|
|
219
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
214
220
|
async def chat_completions(
|
|
215
221
|
self,
|
|
216
222
|
messages: List[Dict[str, str]],
|
|
@@ -8,6 +8,7 @@ from .._folder_context import FolderContext
|
|
|
8
8
|
from .._utils import Endpoint, RequestSpec, header_folder, infer_bindings
|
|
9
9
|
from .._utils.constants import ENV_JOB_ID, HEADER_JOB_KEY
|
|
10
10
|
from ..models.job import Job
|
|
11
|
+
from ..tracing._traced import traced
|
|
11
12
|
from ._base_service import BaseService
|
|
12
13
|
|
|
13
14
|
|
|
@@ -22,6 +23,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
22
23
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
23
24
|
super().__init__(config=config, execution_context=execution_context)
|
|
24
25
|
|
|
26
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
25
27
|
def invoke(
|
|
26
28
|
self,
|
|
27
29
|
name: str,
|
|
@@ -79,6 +81,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
79
81
|
return Job.model_validate(response.json()["value"][0])
|
|
80
82
|
|
|
81
83
|
@infer_bindings()
|
|
84
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
82
85
|
async def invoke_async(
|
|
83
86
|
self,
|
|
84
87
|
name: str,
|
|
@@ -7,6 +7,7 @@ from .._execution_context import ExecutionContext
|
|
|
7
7
|
from .._folder_context import FolderContext
|
|
8
8
|
from .._utils import Endpoint, RequestSpec
|
|
9
9
|
from ..models import CommitType, QueueItem, TransactionItem, TransactionItemResult
|
|
10
|
+
from ..tracing._traced import traced
|
|
10
11
|
from ._base_service import BaseService
|
|
11
12
|
|
|
12
13
|
|
|
@@ -20,6 +21,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
20
21
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
21
22
|
super().__init__(config=config, execution_context=execution_context)
|
|
22
23
|
|
|
24
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
23
25
|
def list_items(self) -> Response:
|
|
24
26
|
"""Retrieves a list of queue items from the Orchestrator.
|
|
25
27
|
|
|
@@ -29,6 +31,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
29
31
|
spec = self._list_items_spec()
|
|
30
32
|
return self.request(spec.method, url=spec.endpoint)
|
|
31
33
|
|
|
34
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
32
35
|
async def list_items_async(self) -> Response:
|
|
33
36
|
"""Asynchronously retrieves a list of queue items from the Orchestrator.
|
|
34
37
|
|
|
@@ -38,6 +41,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
38
41
|
spec = self._list_items_spec()
|
|
39
42
|
return await self.request_async(spec.method, url=spec.endpoint)
|
|
40
43
|
|
|
44
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
41
45
|
def create_item(self, item: Union[Dict[str, Any], QueueItem]) -> Response:
|
|
42
46
|
"""Creates a new queue item in the Orchestrator.
|
|
43
47
|
|
|
@@ -52,6 +56,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
52
56
|
spec = self._create_item_spec(item)
|
|
53
57
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
54
58
|
|
|
59
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
55
60
|
async def create_item_async(
|
|
56
61
|
self, item: Union[Dict[str, Any], QueueItem]
|
|
57
62
|
) -> Response:
|
|
@@ -68,6 +73,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
68
73
|
spec = self._create_item_spec(item)
|
|
69
74
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
70
75
|
|
|
76
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
71
77
|
def create_items(
|
|
72
78
|
self,
|
|
73
79
|
items: List[Union[Dict[str, Any], QueueItem]],
|
|
@@ -87,6 +93,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
87
93
|
spec = self._create_items_spec(items, queue_name, commit_type)
|
|
88
94
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
89
95
|
|
|
96
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
90
97
|
async def create_items_async(
|
|
91
98
|
self,
|
|
92
99
|
items: List[Union[Dict[str, Any], QueueItem]],
|
|
@@ -106,6 +113,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
106
113
|
spec = self._create_items_spec(items, queue_name, commit_type)
|
|
107
114
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
108
115
|
|
|
116
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
109
117
|
def create_transaction_item(
|
|
110
118
|
self, item: Union[Dict[str, Any], TransactionItem], no_robot: bool = False
|
|
111
119
|
) -> Response:
|
|
@@ -121,6 +129,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
121
129
|
spec = self._create_transaction_item_spec(item, no_robot)
|
|
122
130
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
123
131
|
|
|
132
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
124
133
|
async def create_transaction_item_async(
|
|
125
134
|
self, item: Union[Dict[str, Any], TransactionItem], no_robot: bool = False
|
|
126
135
|
) -> Response:
|
|
@@ -136,6 +145,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
136
145
|
spec = self._create_transaction_item_spec(item, no_robot)
|
|
137
146
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
138
147
|
|
|
148
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
139
149
|
def update_progress_of_transaction_item(
|
|
140
150
|
self, transaction_key: str, progress: str
|
|
141
151
|
) -> Response:
|
|
@@ -153,6 +163,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
153
163
|
spec = self._update_progress_of_transaction_item_spec(transaction_key, progress)
|
|
154
164
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
155
165
|
|
|
166
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
156
167
|
async def update_progress_of_transaction_item_async(
|
|
157
168
|
self, transaction_key: str, progress: str
|
|
158
169
|
) -> Response:
|
|
@@ -170,6 +181,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
170
181
|
spec = self._update_progress_of_transaction_item_spec(transaction_key, progress)
|
|
171
182
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
172
183
|
|
|
184
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
173
185
|
def complete_transaction_item(
|
|
174
186
|
self, transaction_key: str, result: Union[Dict[str, Any], TransactionItemResult]
|
|
175
187
|
) -> Response:
|
|
@@ -187,6 +199,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
187
199
|
spec = self._complete_transaction_item_spec(transaction_key, result)
|
|
188
200
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
189
201
|
|
|
202
|
+
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
190
203
|
async def complete_transaction_item_async(
|
|
191
204
|
self, transaction_key: str, result: Union[Dict[str, Any], TransactionItemResult]
|
|
192
205
|
) -> Response:
|