Skip to main content

UiPath Core abstractions

Project description

UiPath Core

PyPI - Version PyPI downloads Python versions

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, USER
  • UiPathFaultedTriggerError: Base trigger error with category and detail
  • UiPathPendingTriggerError: 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 string
  • serialize_defaults(obj): Custom default handler for json.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 spans
  • UiPathTraceManager: Manages TracerProvider, span exporters, and processors. Provides start_execution_span() context manager and span retrieval by execution ID
  • UiPathSpanUtils: Span registry and parent context management
  • UiPathTraceSettings: 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 matching
  • NumberRule: Numeric constraint validation
  • BooleanRule: Boolean assertions
  • UniversalRule: 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, returning GuardrailValidationResult with 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uipath_core-0.5.8.tar.gz (116.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uipath_core-0.5.8-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file uipath_core-0.5.8.tar.gz.

File metadata

  • Download URL: uipath_core-0.5.8.tar.gz
  • Upload date:
  • Size: 116.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uipath_core-0.5.8.tar.gz
Algorithm Hash digest
SHA256 8f37ab200a0afe11d56d3dd3b5086b4591185e55c8a0a0b0e66f85ae58580f02
MD5 3cce7f1348a25224a8cb7aea3af6d81b
BLAKE2b-256 2f6a91fe6b46a8c28233868072340d47ca29f4c5feadd40a4b3c501658560dd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for uipath_core-0.5.8.tar.gz:

Publisher: cd.yml on UiPath/uipath-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uipath_core-0.5.8-py3-none-any.whl.

File metadata

  • Download URL: uipath_core-0.5.8-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uipath_core-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3d2ee982fc6c5752a0c702f1c79f6c8160d746e5f50dabc3add16c21732bac
MD5 a9b173b66d26b777a61d2fe7b69d8c95
BLAKE2b-256 2287fec9cf831ccf9753b9fab09ab759ae9ba8b65eb5a03a9efbf36b654d8d1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for uipath_core-0.5.8-py3-none-any.whl:

Publisher: cd.yml on UiPath/uipath-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page