UiPath Core abstractions
Project description
UiPath Core
Core abstractions and contracts for the UiPath Python SDK.
Installation
pip install uipath-core
Modules
Errors
Exception hierarchy for UiPath trigger errors with category-based classification.
ErrorCategory: Enum:DEPLOYMENT,SYSTEM,UNKNOWN,USERUiPathFaultedTriggerError: Base trigger error with category and detailUiPathPendingTriggerError: Pending trigger variant
from uipath.core.errors import ErrorCategory, UiPathFaultedTriggerError
Serialization
JSON serialization utilities for complex Python types. Handles Pydantic models (v1 & v2), dataclasses, enums, datetime/timezone objects, sets, tuples, and named tuples.
serialize_json(obj): Serialize any object to a JSON stringserialize_defaults(obj): Customdefaulthandler forjson.dumps()
from uipath.core.serialization import serialize_json
Tracing
OpenTelemetry integration with UiPath execution tracking. Provides function instrumentation, span lifecycle management, custom exporters, and batch/simple span processors with automatic execution.id propagation.
@traced: Decorator for sync/async function instrumentation. Supports custom span names, run types, input/output processors, and non-recording spansUiPathTraceManager: ManagesTracerProvider, span exporters, and processors. Providesstart_execution_span()context manager and span retrieval by execution IDUiPathSpanUtils: Span registry and parent context managementUiPathTraceSettings: Configuration model with optional span filtering
from uipath.core.tracing import traced, UiPathTraceManager
@traced(name="my_operation", run_type="tool")
def do_work(input: str) -> str:
return process(input)
Guardrails
Deterministic rule-based validation for inputs and outputs. Rules are evaluated pre-execution (input-only) and post-execution (all rules), with flexible field selection using dot-notation paths and array access ([*]).
Rule types:
WordRule: String pattern matchingNumberRule: Numeric constraint validationBooleanRule: Boolean assertionsUniversalRule: Always-apply constraints
Field selection:
AllFieldsSelector: Apply to all fields of a given source (input/output)SpecificFieldsSelector: Target specific fields by path
Service:
DeterministicGuardrailsService: Evaluates guardrail rules against inputs/outputs, returningGuardrailValidationResultwith pass/fail status and reason
from uipath.core.guardrails import DeterministicGuardrailsService, GuardrailValidationResultType
Chat
Pydantic models for the UiPath conversation event protocol. Defines the streaming event schema between clients and LLM/agent backends.
Hierarchy:
Conversation → Exchange → Message → Content Parts (with Citations)
→ Tool Calls (with Results)
→ Interrupts (human-in-the-loop)
Supports session capabilities negotiation, async input streams (audio/video), tool call confirmation interrupts, URL and media citations, and inline/external value references.
from uipath.core.chat import UiPathConversationEvent, UiPathSessionStartEvent
Dependencies
| Package | Version |
|---|---|
pydantic |
>=2.12.5, <3 |
opentelemetry-sdk |
>=1.39.0, <2 |
opentelemetry-instrumentation |
>=0.60b0, <1 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uipath_core-0.5.7.tar.gz.
File metadata
- Download URL: uipath_core-0.5.7.tar.gz
- Upload date:
- Size: 112.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977b00a80dd38cd6abd49329861c6155f523079d0645341fead9e5cb195cdd9d
|
|
| MD5 |
e70656206be175dd08cd984b974a300a
|
|
| BLAKE2b-256 |
cd67cea2367246d8332bbcc4a4410a7287824d89a6b23795ef1a238f215c1c55
|
Provenance
The following attestation bundles were made for uipath_core-0.5.7.tar.gz:
Publisher:
cd.yml on UiPath/uipath-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uipath_core-0.5.7.tar.gz -
Subject digest:
977b00a80dd38cd6abd49329861c6155f523079d0645341fead9e5cb195cdd9d - Sigstore transparency entry: 1096920989
- Sigstore integration time:
-
Permalink:
UiPath/uipath-python@76827b64e1c07fa3f1628974c15ec91d4a94fbe6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/UiPath
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@76827b64e1c07fa3f1628974c15ec91d4a94fbe6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file uipath_core-0.5.7-py3-none-any.whl.
File metadata
- Download URL: uipath_core-0.5.7-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab42306028245d333b2e08e6a8bbf5cffe00caf7a5cb5d7aa40f05e698173ed2
|
|
| MD5 |
c87b47355252d43eee066ed5c0629a55
|
|
| BLAKE2b-256 |
27a937c9f603dd6ba72e8c6fab9fc0c0d6f2aebe78280e831138917671c255ce
|
Provenance
The following attestation bundles were made for uipath_core-0.5.7-py3-none-any.whl:
Publisher:
cd.yml on UiPath/uipath-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uipath_core-0.5.7-py3-none-any.whl -
Subject digest:
ab42306028245d333b2e08e6a8bbf5cffe00caf7a5cb5d7aa40f05e698173ed2 - Sigstore transparency entry: 1096920991
- Sigstore integration time:
-
Permalink:
UiPath/uipath-python@76827b64e1c07fa3f1628974c15ec91d4a94fbe6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/UiPath
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@76827b64e1c07fa3f1628974c15ec91d4a94fbe6 -
Trigger Event:
push
-
Statement type: