uipath 2.0.23__tar.gz → 2.0.25__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.23 → uipath-2.0.25}/.github/workflows/publish-dev.yml +27 -11
- {uipath-2.0.23 → uipath-2.0.25}/PKG-INFO +1 -1
- {uipath-2.0.23 → uipath-2.0.25}/pyproject.toml +1 -1
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/actions_service.py +4 -4
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/assets_service.py +14 -6
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/buckets_service.py +16 -7
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/connections_service.py +20 -4
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/context_grounding_service.py +12 -12
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/folder_service.py +1 -1
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/jobs_service.py +1 -1
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/llm_gateway_service.py +5 -5
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/processes_service.py +2 -2
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/queues_service.py +12 -12
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_user_agent.py +4 -1
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/tracing/_traced.py +51 -8
- {uipath-2.0.23 → uipath-2.0.25}/tests/tracing/test_tracing_manager.py +54 -0
- {uipath-2.0.23 → uipath-2.0.25}/uv.lock +1509 -1509
- {uipath-2.0.23 → uipath-2.0.25}/.cursorrules +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.editorconfig +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.gitattributes +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/build.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/cd.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/ci.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/commitlint.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/lint.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.github/workflows/test.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.gitignore +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.pre-commit-config.yaml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.python-version +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.vscode/extensions.json +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/.vscode/settings.json +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/CONTRIBUTING.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/LICENSE +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/README.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/CONTRIBUTING.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/actions.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/assets/uipath-logo.svg +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/assets.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/buckets.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/connections.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/context_grounding.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/getting_started_agent.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/getting_started_cli.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/getting_started_sdk.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/index.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/jobs.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/processes.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/queues.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/docs/sdk.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/justfile +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/mkdocs.yml +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/py.typed +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/README.md +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/_auth_server.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/_models.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/_portal_service.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/_utils.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/auth_config.json +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/index.html +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/localhost.crt +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_auth/localhost.key +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_runtime/_contracts.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_runtime/_logging.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_runtime/_runtime.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_templates/.rels.template +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_templates/main.py.template +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_utils/_common.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_utils/_folders.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_utils/_input_args.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/_utils/_processes.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_auth.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_deploy.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_init.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_invoke.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_new.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_pack.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_publish.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/cli_run.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/middlewares.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_cli/spinner.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_config.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_execution_context.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_folder_context.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/_base_service.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/api_client.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_services/connections_service.pyi +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_uipath.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_endpoint.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_infer_bindings.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_logs.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_request_override.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/_request_spec.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/_utils/constants.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/action_schema.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/actions.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/assets.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/connections.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/context_grounding.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/context_grounding_index.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/exceptions.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/interrupt_models.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/job.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/llm_gateway.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/processes.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/models/queues.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/py.typed +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/tracing/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/tracing/_otel_exporters.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/src/uipath/tracing/_utils.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/__init__.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/cli/test_init.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/conftest.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/sdk/services/test_llm_integration.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/sdk/services/test_llm_service.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/sdk/test_config.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/tracing/test_otel_exporters.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/tracing/test_span_utils.py +0 -0
- {uipath-2.0.23 → uipath-2.0.25}/tests/tracing/test_traced.py +0 -0
|
@@ -66,6 +66,8 @@ jobs:
|
|
|
66
66
|
Write-Output "Package version set to $DEV_VERSION"
|
|
67
67
|
|
|
68
68
|
$dependencyMessage = @"
|
|
69
|
+
## Development Package
|
|
70
|
+
|
|
69
71
|
- Add this package as a dependency in your pyproject.toml:
|
|
70
72
|
|
|
71
73
|
``````toml
|
|
@@ -79,26 +81,40 @@ jobs:
|
|
|
79
81
|
]
|
|
80
82
|
``````
|
|
81
83
|
"@
|
|
82
|
-
Write-Output $dependencyMessage
|
|
83
84
|
|
|
84
|
-
#
|
|
85
|
+
# Get the owner and repo from the GitHub repository
|
|
85
86
|
$owner = "${{ github.repository_owner }}"
|
|
86
87
|
$repo = "${{ github.repository }}".Split('/')[1]
|
|
87
|
-
$
|
|
88
|
-
|
|
89
|
-
$body = @{
|
|
90
|
-
body = $dependencyMessage
|
|
91
|
-
} | ConvertTo-Json
|
|
88
|
+
$prNumber = $PR_NUM
|
|
92
89
|
|
|
93
|
-
#
|
|
94
|
-
$
|
|
90
|
+
# Get the current PR description
|
|
91
|
+
$prUri = "https://api.github.com/repos/$owner/$repo/pulls/$prNumber"
|
|
95
92
|
$headers = @{
|
|
96
93
|
Authorization = "token $env:GITHUB_TOKEN"
|
|
97
94
|
Accept = "application/vnd.github.v3+json"
|
|
98
95
|
}
|
|
96
|
+
|
|
97
|
+
$pr = Invoke-RestMethod -Uri $prUri -Method Get -Headers $headers
|
|
98
|
+
$currentBody = $pr.body
|
|
99
|
+
|
|
100
|
+
# Check if there's already a development package section
|
|
101
|
+
if ($currentBody -match '## Development Package') {
|
|
102
|
+
# Replace the existing section with the new dependency message
|
|
103
|
+
$newBody = $currentBody -replace '## Development Package(\r?\n|.)*?(?=##|$)', $dependencyMessage
|
|
104
|
+
} else {
|
|
105
|
+
# Append the dependency message to the end of the description
|
|
106
|
+
$newBody = if ($currentBody) { "$currentBody`n`n$dependencyMessage" } else { $dependencyMessage }
|
|
107
|
+
}
|
|
99
108
|
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
# Update the PR description
|
|
110
|
+
$updateBody = @{
|
|
111
|
+
body = $newBody
|
|
112
|
+
} | ConvertTo-Json
|
|
113
|
+
|
|
114
|
+
Invoke-RestMethod -Uri $prUri -Method Patch -Headers $headers -Body $updateBody -ContentType "application/json"
|
|
115
|
+
|
|
116
|
+
Write-Output "Updated PR description with development package information"
|
|
117
|
+
|
|
102
118
|
- name: Build package
|
|
103
119
|
run: uv build
|
|
104
120
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.25
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.25"
|
|
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"
|
|
@@ -176,7 +176,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
176
176
|
"""
|
|
177
177
|
super().__init__(config=config, execution_context=execution_context)
|
|
178
178
|
|
|
179
|
-
@traced(
|
|
179
|
+
@traced(name="actions_create", run_type="uipath")
|
|
180
180
|
async def create_async(
|
|
181
181
|
self,
|
|
182
182
|
title: str,
|
|
@@ -234,7 +234,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
234
234
|
await self.request_async(spec.method, spec.endpoint, content=spec.content)
|
|
235
235
|
return Action.model_validate(json_response)
|
|
236
236
|
|
|
237
|
-
@traced(
|
|
237
|
+
@traced(name="actions_create", run_type="uipath")
|
|
238
238
|
def create(
|
|
239
239
|
self,
|
|
240
240
|
title: str,
|
|
@@ -292,7 +292,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
292
292
|
self.request(spec.method, spec.endpoint, content=spec.content)
|
|
293
293
|
return Action.model_validate(json_response)
|
|
294
294
|
|
|
295
|
-
@traced(
|
|
295
|
+
@traced(name="actions_retrieve", run_type="uipath")
|
|
296
296
|
def retrieve(
|
|
297
297
|
self, action_key: str, app_folder_path: str = "", app_folder_key: str = ""
|
|
298
298
|
) -> Action:
|
|
@@ -317,7 +317,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
317
317
|
|
|
318
318
|
return Action.model_validate(response.json())
|
|
319
319
|
|
|
320
|
-
@traced(
|
|
320
|
+
@traced(name="actions_retrieve", run_type="uipath")
|
|
321
321
|
async def retrieve_async(
|
|
322
322
|
self, action_key: str, app_folder_path: str = "", app_folder_key: str = ""
|
|
323
323
|
) -> Action:
|
|
@@ -22,7 +22,9 @@ class AssetsService(FolderContext, BaseService):
|
|
|
22
22
|
super().__init__(config=config, execution_context=execution_context)
|
|
23
23
|
|
|
24
24
|
@infer_bindings()
|
|
25
|
-
@traced(
|
|
25
|
+
@traced(
|
|
26
|
+
name="assets_retrieve", run_type="uipath", hide_input=True, hide_output=True
|
|
27
|
+
)
|
|
26
28
|
def retrieve(
|
|
27
29
|
self,
|
|
28
30
|
name: str,
|
|
@@ -58,7 +60,9 @@ class AssetsService(FolderContext, BaseService):
|
|
|
58
60
|
|
|
59
61
|
return UserAsset.model_validate(response.json())
|
|
60
62
|
|
|
61
|
-
@traced(
|
|
63
|
+
@traced(
|
|
64
|
+
name="assets_retrieve", run_type="uipath", hide_input=True, hide_output=True
|
|
65
|
+
)
|
|
62
66
|
async def retrieve_async(
|
|
63
67
|
self,
|
|
64
68
|
name: str,
|
|
@@ -86,7 +90,9 @@ class AssetsService(FolderContext, BaseService):
|
|
|
86
90
|
return UserAsset.model_validate(response.json())
|
|
87
91
|
|
|
88
92
|
@infer_bindings()
|
|
89
|
-
@traced(
|
|
93
|
+
@traced(
|
|
94
|
+
name="assets_credential", run_type="uipath", hide_input=True, hide_output=True
|
|
95
|
+
)
|
|
90
96
|
def retrieve_credential(
|
|
91
97
|
self,
|
|
92
98
|
name: str,
|
|
@@ -122,7 +128,9 @@ class AssetsService(FolderContext, BaseService):
|
|
|
122
128
|
return user_asset.credential_password
|
|
123
129
|
|
|
124
130
|
@infer_bindings()
|
|
125
|
-
@traced(
|
|
131
|
+
@traced(
|
|
132
|
+
name="assets_credential", run_type="uipath", hide_input=True, hide_output=True
|
|
133
|
+
)
|
|
126
134
|
async def retrieve_credential_async(
|
|
127
135
|
self,
|
|
128
136
|
name: str,
|
|
@@ -158,7 +166,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
158
166
|
|
|
159
167
|
return user_asset.credential_password
|
|
160
168
|
|
|
161
|
-
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
169
|
+
@traced(name="assets_update", run_type="uipath", hide_input=True, hide_output=True)
|
|
162
170
|
def update(
|
|
163
171
|
self,
|
|
164
172
|
robot_asset: UserAsset,
|
|
@@ -187,7 +195,7 @@ class AssetsService(FolderContext, BaseService):
|
|
|
187
195
|
headers=spec.headers,
|
|
188
196
|
)
|
|
189
197
|
|
|
190
|
-
@traced(run_type="uipath", hide_input=True, hide_output=True)
|
|
198
|
+
@traced(name="assets_update", run_type="uipath", hide_input=True, hide_output=True)
|
|
191
199
|
async def update_async(
|
|
192
200
|
self,
|
|
193
201
|
robot_asset: UserAsset,
|
|
@@ -10,6 +10,11 @@ from ..tracing._traced import traced
|
|
|
10
10
|
from ._base_service import BaseService
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
def _upload_from_memory_input_processor(inputs: Dict[str, Any]) -> Dict[str, Any]:
|
|
14
|
+
inputs["content"] = "<Redacted>"
|
|
15
|
+
return inputs
|
|
16
|
+
|
|
17
|
+
|
|
13
18
|
class BucketsService(FolderContext, BaseService):
|
|
14
19
|
"""Service for managing UiPath storage buckets.
|
|
15
20
|
|
|
@@ -20,7 +25,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
20
25
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
21
26
|
super().__init__(config=config, execution_context=execution_context)
|
|
22
27
|
|
|
23
|
-
@traced(
|
|
28
|
+
@traced(name="buckets_download", run_type="uipath")
|
|
24
29
|
def download(
|
|
25
30
|
self,
|
|
26
31
|
bucket_key: str,
|
|
@@ -59,7 +64,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
59
64
|
file_content = request("GET", read_uri, headers=headers).content
|
|
60
65
|
file.write(file_content)
|
|
61
66
|
|
|
62
|
-
@traced(
|
|
67
|
+
@traced(name="buckets_upload", run_type="uipath")
|
|
63
68
|
def upload(
|
|
64
69
|
self,
|
|
65
70
|
*,
|
|
@@ -111,7 +116,11 @@ class BucketsService(FolderContext, BaseService):
|
|
|
111
116
|
else:
|
|
112
117
|
request("PUT", write_uri, headers=headers, files={"file": file})
|
|
113
118
|
|
|
114
|
-
@traced(
|
|
119
|
+
@traced(
|
|
120
|
+
name="buckets_upload_from_memory",
|
|
121
|
+
run_type="uipath",
|
|
122
|
+
input_processor=_upload_from_memory_input_processor,
|
|
123
|
+
)
|
|
115
124
|
def upload_from_memory(
|
|
116
125
|
self,
|
|
117
126
|
*,
|
|
@@ -167,7 +176,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
167
176
|
request("PUT", write_uri, headers=headers, content=content)
|
|
168
177
|
|
|
169
178
|
@infer_bindings()
|
|
170
|
-
@traced(
|
|
179
|
+
@traced(name="buckets_retrieve", run_type="uipath")
|
|
171
180
|
def retrieve(self, name: str) -> Any:
|
|
172
181
|
"""Retrieve bucket information by its name.
|
|
173
182
|
|
|
@@ -192,7 +201,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
192
201
|
return response.json()["value"][0]
|
|
193
202
|
|
|
194
203
|
@infer_bindings()
|
|
195
|
-
@traced(
|
|
204
|
+
@traced(name="buckets_retrieve", run_type="uipath")
|
|
196
205
|
async def retrieve_async(self, name: str) -> Any:
|
|
197
206
|
"""Asynchronously retrieve bucket information by its name.
|
|
198
207
|
|
|
@@ -216,7 +225,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
216
225
|
|
|
217
226
|
return response.json()["value"][0]
|
|
218
227
|
|
|
219
|
-
@traced(
|
|
228
|
+
@traced(name="buckets_retrieve_by_key", run_type="uipath")
|
|
220
229
|
def retrieve_by_key(self, key: str) -> Any:
|
|
221
230
|
"""Retrieve bucket information by its key.
|
|
222
231
|
|
|
@@ -236,7 +245,7 @@ class BucketsService(FolderContext, BaseService):
|
|
|
236
245
|
|
|
237
246
|
return response.json()
|
|
238
247
|
|
|
239
|
-
@traced(
|
|
248
|
+
@traced(name="buckets_retrieve_by_key", run_type="uipath")
|
|
240
249
|
async def retrieve_by_key_async(self, key: str) -> Any:
|
|
241
250
|
"""Asynchronously retrieve bucket information by its key.
|
|
242
251
|
|
|
@@ -73,7 +73,11 @@ class ConnectionsService(BaseService):
|
|
|
73
73
|
except AttributeError as e:
|
|
74
74
|
raise PluginNotFoundError(f"Plugin '{name}' is not installed") from e
|
|
75
75
|
|
|
76
|
-
@traced(
|
|
76
|
+
@traced(
|
|
77
|
+
name="connections_retrieve",
|
|
78
|
+
run_type="uipath",
|
|
79
|
+
hide_output=True,
|
|
80
|
+
)
|
|
77
81
|
def retrieve(self, key: str) -> Connection:
|
|
78
82
|
"""Retrieve connection details by its key.
|
|
79
83
|
|
|
@@ -91,7 +95,11 @@ class ConnectionsService(BaseService):
|
|
|
91
95
|
response = self.request(spec.method, url=spec.endpoint)
|
|
92
96
|
return Connection.model_validate(response.json())
|
|
93
97
|
|
|
94
|
-
@traced(
|
|
98
|
+
@traced(
|
|
99
|
+
name="connections_retrieve",
|
|
100
|
+
run_type="uipath",
|
|
101
|
+
hide_output=True,
|
|
102
|
+
)
|
|
95
103
|
async def retrieve_async(self, key: str) -> Connection:
|
|
96
104
|
"""Asynchronously retrieve connection details by its key.
|
|
97
105
|
|
|
@@ -109,7 +117,11 @@ class ConnectionsService(BaseService):
|
|
|
109
117
|
response = await self.request_async(spec.method, url=spec.endpoint)
|
|
110
118
|
return Connection.model_validate(response.json())
|
|
111
119
|
|
|
112
|
-
@traced(
|
|
120
|
+
@traced(
|
|
121
|
+
name="connections_retrieve_token",
|
|
122
|
+
run_type="uipath",
|
|
123
|
+
hide_output=True,
|
|
124
|
+
)
|
|
113
125
|
def retrieve_token(self, key: str) -> ConnectionToken:
|
|
114
126
|
"""Retrieve an authentication token for a connection.
|
|
115
127
|
|
|
@@ -128,7 +140,11 @@ class ConnectionsService(BaseService):
|
|
|
128
140
|
response = self.request(spec.method, url=spec.endpoint, params=spec.params)
|
|
129
141
|
return ConnectionToken.model_validate(response.json())
|
|
130
142
|
|
|
131
|
-
@traced(
|
|
143
|
+
@traced(
|
|
144
|
+
name="connections_retrieve_token",
|
|
145
|
+
run_type="uipath",
|
|
146
|
+
hide_output=True,
|
|
147
|
+
)
|
|
132
148
|
async def retrieve_token_async(self, key: str) -> ConnectionToken:
|
|
133
149
|
"""Asynchronously retrieve an authentication token for a connection.
|
|
134
150
|
|
|
@@ -42,7 +42,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
42
42
|
self._folders_service = folders_service
|
|
43
43
|
super().__init__(config=config, execution_context=execution_context)
|
|
44
44
|
|
|
45
|
-
@traced(
|
|
45
|
+
@traced(name="contextgrounding_retrieve", run_type="uipath")
|
|
46
46
|
def retrieve(
|
|
47
47
|
self,
|
|
48
48
|
name: str,
|
|
@@ -82,7 +82,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
82
82
|
None,
|
|
83
83
|
)
|
|
84
84
|
|
|
85
|
-
@traced(
|
|
85
|
+
@traced(name="contextgrounding_retrieve", run_type="uipath")
|
|
86
86
|
async def retrieve_async(
|
|
87
87
|
self,
|
|
88
88
|
name: str,
|
|
@@ -124,7 +124,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
124
124
|
None,
|
|
125
125
|
)
|
|
126
126
|
|
|
127
|
-
@traced(
|
|
127
|
+
@traced(name="contextgrounding_retrieve_by_id", run_type="uipath")
|
|
128
128
|
def retrieve_by_id(
|
|
129
129
|
self,
|
|
130
130
|
id: str,
|
|
@@ -154,7 +154,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
154
154
|
params=spec.params,
|
|
155
155
|
).json()
|
|
156
156
|
|
|
157
|
-
@traced(
|
|
157
|
+
@traced(name="contextgrounding_retrieve_by_id", run_type="uipath")
|
|
158
158
|
async def retrieve_by_id_async(
|
|
159
159
|
self,
|
|
160
160
|
id: str,
|
|
@@ -187,7 +187,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
187
187
|
|
|
188
188
|
return response.json()
|
|
189
189
|
|
|
190
|
-
@traced(
|
|
190
|
+
@traced(name="contextgrounding_search", run_type="uipath")
|
|
191
191
|
def search(
|
|
192
192
|
self,
|
|
193
193
|
name: str,
|
|
@@ -234,7 +234,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
234
234
|
response.json()
|
|
235
235
|
)
|
|
236
236
|
|
|
237
|
-
@traced(
|
|
237
|
+
@traced(name="contextgrounding_search", run_type="uipath")
|
|
238
238
|
async def search_async(
|
|
239
239
|
self,
|
|
240
240
|
name: str,
|
|
@@ -284,7 +284,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
284
284
|
response.json()
|
|
285
285
|
)
|
|
286
286
|
|
|
287
|
-
@traced(
|
|
287
|
+
@traced(name="contextgrounding_get_or_create_index", run_type="uipath")
|
|
288
288
|
def get_or_create_index(
|
|
289
289
|
self,
|
|
290
290
|
name: str,
|
|
@@ -321,7 +321,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
321
321
|
).json()
|
|
322
322
|
return ContextGroundingIndex.model_validate(response)
|
|
323
323
|
|
|
324
|
-
@traced(
|
|
324
|
+
@traced(name="contextgrounding_get_or_create_index", run_type="uipath")
|
|
325
325
|
async def get_or_create_index_async(
|
|
326
326
|
self,
|
|
327
327
|
name: str,
|
|
@@ -360,7 +360,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
360
360
|
).json()
|
|
361
361
|
return ContextGroundingIndex.model_validate(response)
|
|
362
362
|
|
|
363
|
-
@traced(
|
|
363
|
+
@traced(name="contextgrounding_ingest_data", run_type="uipath")
|
|
364
364
|
def ingest_data(
|
|
365
365
|
self,
|
|
366
366
|
index: ContextGroundingIndex,
|
|
@@ -380,7 +380,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
380
380
|
headers=spec.headers,
|
|
381
381
|
)
|
|
382
382
|
|
|
383
|
-
@traced(
|
|
383
|
+
@traced(name="contextgrounding_ingest_data", run_type="uipath")
|
|
384
384
|
async def ingest_data_async(
|
|
385
385
|
self,
|
|
386
386
|
index: ContextGroundingIndex,
|
|
@@ -400,7 +400,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
400
400
|
headers=spec.headers,
|
|
401
401
|
)
|
|
402
402
|
|
|
403
|
-
@traced(
|
|
403
|
+
@traced(name="contextgrounding_delete_index", run_type="uipath")
|
|
404
404
|
def delete_index(
|
|
405
405
|
self,
|
|
406
406
|
index: ContextGroundingIndex,
|
|
@@ -420,7 +420,7 @@ class ContextGroundingService(FolderContext, BaseService):
|
|
|
420
420
|
headers=spec.headers,
|
|
421
421
|
)
|
|
422
422
|
|
|
423
|
-
@traced(
|
|
423
|
+
@traced(name="contextgrounding_delete_index", run_type="uipath")
|
|
424
424
|
async def delete_index_async(
|
|
425
425
|
self,
|
|
426
426
|
index: ContextGroundingIndex,
|
|
@@ -33,7 +33,7 @@ class FolderService(BaseService):
|
|
|
33
33
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
34
34
|
super().__init__(config=config, execution_context=execution_context)
|
|
35
35
|
|
|
36
|
-
@traced(run_type="uipath")
|
|
36
|
+
@traced(name="folder_retrieve_key_by_folder_path", run_type="uipath")
|
|
37
37
|
def retrieve_key_by_folder_path(self, folder_path: str) -> Optional[str]:
|
|
38
38
|
spec = _retrieve_spec(folder_path)
|
|
39
39
|
response = self.request(
|
|
@@ -27,7 +27,7 @@ class JobsService(FolderContext, BaseService):
|
|
|
27
27
|
@overload
|
|
28
28
|
def resume(self, *, job_id: str, payload: Any) -> None: ...
|
|
29
29
|
|
|
30
|
-
@traced(
|
|
30
|
+
@traced(name="jobs_resume", run_type="uipath")
|
|
31
31
|
def resume(
|
|
32
32
|
self,
|
|
33
33
|
*,
|
|
@@ -54,7 +54,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
54
54
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
55
55
|
super().__init__(config=config, execution_context=execution_context)
|
|
56
56
|
|
|
57
|
-
@traced(
|
|
57
|
+
@traced(name="llm_embeddings_usage", run_type="uipath")
|
|
58
58
|
async def embeddings_usage(
|
|
59
59
|
self, input: str, embedding_model: str = EmbeddingModels.text_embedding_ada_002
|
|
60
60
|
):
|
|
@@ -81,7 +81,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
81
81
|
|
|
82
82
|
return UsageInfo.model_validate(response.json())
|
|
83
83
|
|
|
84
|
-
@traced(
|
|
84
|
+
@traced(name="llm_embeddings", run_type="uipath")
|
|
85
85
|
async def embeddings(
|
|
86
86
|
self, input: str, embedding_model: str = EmbeddingModels.text_embedding_ada_002
|
|
87
87
|
):
|
|
@@ -107,7 +107,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
107
107
|
|
|
108
108
|
return TextEmbedding.model_validate(response.json())
|
|
109
109
|
|
|
110
|
-
@traced(
|
|
110
|
+
@traced(name="llm_chat_completions", run_type="uipath")
|
|
111
111
|
async def chat_completions(
|
|
112
112
|
self,
|
|
113
113
|
messages: List[Dict[str, str]],
|
|
@@ -157,7 +157,7 @@ class UiPathOpenAIService(BaseService):
|
|
|
157
157
|
|
|
158
158
|
return ChatCompletion.model_validate(response.json())
|
|
159
159
|
|
|
160
|
-
@traced(
|
|
160
|
+
@traced(name="llm_chat_completions_usage", run_type="uipath")
|
|
161
161
|
async def chat_completions_usage(
|
|
162
162
|
self,
|
|
163
163
|
messages: List[Dict[str, str]],
|
|
@@ -216,7 +216,7 @@ class UiPathLlmChatService(BaseService):
|
|
|
216
216
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
217
217
|
super().__init__(config=config, execution_context=execution_context)
|
|
218
218
|
|
|
219
|
-
@traced(
|
|
219
|
+
@traced(name="llm_chat_completions", run_type="uipath")
|
|
220
220
|
async def chat_completions(
|
|
221
221
|
self,
|
|
222
222
|
messages: List[Dict[str, str]],
|
|
@@ -23,7 +23,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
23
23
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
24
24
|
super().__init__(config=config, execution_context=execution_context)
|
|
25
25
|
|
|
26
|
-
@traced(
|
|
26
|
+
@traced(name="processes_invoke", run_type="uipath")
|
|
27
27
|
def invoke(
|
|
28
28
|
self,
|
|
29
29
|
name: str,
|
|
@@ -81,7 +81,7 @@ class ProcessesService(FolderContext, BaseService):
|
|
|
81
81
|
return Job.model_validate(response.json()["value"][0])
|
|
82
82
|
|
|
83
83
|
@infer_bindings()
|
|
84
|
-
@traced(
|
|
84
|
+
@traced(name="processes_invoke", run_type="uipath")
|
|
85
85
|
async def invoke_async(
|
|
86
86
|
self,
|
|
87
87
|
name: str,
|
|
@@ -21,7 +21,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
21
21
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
22
22
|
super().__init__(config=config, execution_context=execution_context)
|
|
23
23
|
|
|
24
|
-
@traced(
|
|
24
|
+
@traced(name="queues_list_items", run_type="uipath")
|
|
25
25
|
def list_items(self) -> Response:
|
|
26
26
|
"""Retrieves a list of queue items from the Orchestrator.
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
31
31
|
spec = self._list_items_spec()
|
|
32
32
|
return self.request(spec.method, url=spec.endpoint)
|
|
33
33
|
|
|
34
|
-
@traced(
|
|
34
|
+
@traced(name="queues_list_items", run_type="uipath")
|
|
35
35
|
async def list_items_async(self) -> Response:
|
|
36
36
|
"""Asynchronously retrieves a list of queue items from the Orchestrator.
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
41
41
|
spec = self._list_items_spec()
|
|
42
42
|
return await self.request_async(spec.method, url=spec.endpoint)
|
|
43
43
|
|
|
44
|
-
@traced(
|
|
44
|
+
@traced(name="queues_create_item", run_type="uipath")
|
|
45
45
|
def create_item(self, item: Union[Dict[str, Any], QueueItem]) -> Response:
|
|
46
46
|
"""Creates a new queue item in the Orchestrator.
|
|
47
47
|
|
|
@@ -56,7 +56,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
56
56
|
spec = self._create_item_spec(item)
|
|
57
57
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
58
58
|
|
|
59
|
-
@traced(
|
|
59
|
+
@traced(name="queues_create_item", run_type="uipath")
|
|
60
60
|
async def create_item_async(
|
|
61
61
|
self, item: Union[Dict[str, Any], QueueItem]
|
|
62
62
|
) -> Response:
|
|
@@ -73,7 +73,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
73
73
|
spec = self._create_item_spec(item)
|
|
74
74
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
75
75
|
|
|
76
|
-
@traced(
|
|
76
|
+
@traced(name="queues_create_items", run_type="uipath")
|
|
77
77
|
def create_items(
|
|
78
78
|
self,
|
|
79
79
|
items: List[Union[Dict[str, Any], QueueItem]],
|
|
@@ -93,7 +93,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
93
93
|
spec = self._create_items_spec(items, queue_name, commit_type)
|
|
94
94
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
95
95
|
|
|
96
|
-
@traced(
|
|
96
|
+
@traced(name="queues_create_items", run_type="uipath")
|
|
97
97
|
async def create_items_async(
|
|
98
98
|
self,
|
|
99
99
|
items: List[Union[Dict[str, Any], QueueItem]],
|
|
@@ -113,7 +113,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
113
113
|
spec = self._create_items_spec(items, queue_name, commit_type)
|
|
114
114
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
115
115
|
|
|
116
|
-
@traced(
|
|
116
|
+
@traced(name="queues_create_transaction_item", run_type="uipath")
|
|
117
117
|
def create_transaction_item(
|
|
118
118
|
self, item: Union[Dict[str, Any], TransactionItem], no_robot: bool = False
|
|
119
119
|
) -> Response:
|
|
@@ -129,7 +129,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
129
129
|
spec = self._create_transaction_item_spec(item, no_robot)
|
|
130
130
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
131
131
|
|
|
132
|
-
@traced(
|
|
132
|
+
@traced(name="queues_create_transaction_item", run_type="uipath")
|
|
133
133
|
async def create_transaction_item_async(
|
|
134
134
|
self, item: Union[Dict[str, Any], TransactionItem], no_robot: bool = False
|
|
135
135
|
) -> Response:
|
|
@@ -145,7 +145,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
145
145
|
spec = self._create_transaction_item_spec(item, no_robot)
|
|
146
146
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
147
147
|
|
|
148
|
-
@traced(
|
|
148
|
+
@traced(name="queues_update_progress_of_transaction_item", run_type="uipath")
|
|
149
149
|
def update_progress_of_transaction_item(
|
|
150
150
|
self, transaction_key: str, progress: str
|
|
151
151
|
) -> Response:
|
|
@@ -163,7 +163,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
163
163
|
spec = self._update_progress_of_transaction_item_spec(transaction_key, progress)
|
|
164
164
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
165
165
|
|
|
166
|
-
@traced(
|
|
166
|
+
@traced(name="queues_update_progress_of_transaction_item", run_type="uipath")
|
|
167
167
|
async def update_progress_of_transaction_item_async(
|
|
168
168
|
self, transaction_key: str, progress: str
|
|
169
169
|
) -> Response:
|
|
@@ -181,7 +181,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
181
181
|
spec = self._update_progress_of_transaction_item_spec(transaction_key, progress)
|
|
182
182
|
return await self.request_async(spec.method, url=spec.endpoint, json=spec.json)
|
|
183
183
|
|
|
184
|
-
@traced(
|
|
184
|
+
@traced(name="queues_complete_transaction_item", run_type="uipath")
|
|
185
185
|
def complete_transaction_item(
|
|
186
186
|
self, transaction_key: str, result: Union[Dict[str, Any], TransactionItemResult]
|
|
187
187
|
) -> Response:
|
|
@@ -199,7 +199,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
199
199
|
spec = self._complete_transaction_item_spec(transaction_key, result)
|
|
200
200
|
return self.request(spec.method, url=spec.endpoint, json=spec.json)
|
|
201
201
|
|
|
202
|
-
@traced(
|
|
202
|
+
@traced(name="queues_complete_transaction_item", run_type="uipath")
|
|
203
203
|
async def complete_transaction_item_async(
|
|
204
204
|
self, transaction_key: str, result: Union[Dict[str, Any], TransactionItemResult]
|
|
205
205
|
) -> Response:
|
|
@@ -7,7 +7,10 @@ def user_agent_value(specific_component: str) -> str:
|
|
|
7
7
|
product = "UiPath.Python.Sdk"
|
|
8
8
|
product_component = f"UiPath.Python.Sdk.Activities.{specific_component}"
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
try:
|
|
11
|
+
version = importlib.metadata.version("uipath")
|
|
12
|
+
except importlib.metadata.PackageNotFoundError:
|
|
13
|
+
version = "unknown"
|
|
11
14
|
|
|
12
15
|
return f"{product}/{product_component}/{version}"
|
|
13
16
|
|