{"id":15007,"library":"uipath-core","title":"UiPath Core Abstractions","description":"uipath-core is a foundational Python library providing core abstractions for the UiPath Python SDK. It encapsulates fundamental components like common exceptions, versioning, and registry mechanisms that underpin the broader UiPath automation and AI ecosystem. As of version 0.5.11, it serves as a dependency for higher-level UiPath libraries, offering essential building blocks for integration and development. Its release cadence is tied to the main UiPath Python SDK.","status":"active","version":"0.5.11","language":"en","source_language":"en","source_url":"https://github.com/UiPath/uipath-python","tags":["rpa","uipath","automation","core"],"install":[{"cmd":"pip install uipath-core","lang":"bash","label":"Install `uipath-core`"}],"dependencies":[],"imports":[{"note":"UiPathError is located within the core sub-package.","wrong":"from uipath.exceptions import UiPathError","symbol":"UiPathError","correct":"from uipath.core.exceptions import UiPathError"}],"quickstart":{"code":"from uipath.core.exceptions import UiPathError\n\nclass CustomUiPathComponent:\n    def __init__(self, name):\n        self.name = name\n\n    def execute(self, should_fail: bool):\n        if should_fail:\n            raise UiPathError(f\"Component '{self.name}' failed to execute.\")\n        return f\"Component '{self.name}' executed successfully.\"\n\ntry:\n    component = CustomUiPathComponent(\"MyProcessor\")\n    print(component.execute(False))\n    print(component.execute(True))\nexcept UiPathError as e:\n    print(f\"Caught expected UiPathError: {e}\")","lang":"python","description":"This example demonstrates how to import and handle a foundational exception from `uipath-core`, showcasing its role in providing core abstractions for custom components."},"warnings":[{"fix":"Explicitly install `uipath-platform` (`pip install uipath-platform`) and update any direct `uipath.platform` imports to reflect its new package structure if necessary. Review the `uipath-python` SDK v2.9.0 migration guide for full details.","message":"The `platform` module, which previously provided core functionalities, was extracted into a separate `uipath-platform` library starting with `uipath-python` SDK v2.9.0. If your application or custom `uipath-core` extensions relied on direct imports from `uipath.platform`, these imports will now fail unless `uipath-platform` is explicitly installed and imports are updated.","severity":"breaking","affected_versions":"uipath-python SDK v2.9.0+"},{"fix":"Review the `uipath-python` SDK v2.9.0 migration guide for updated context grounding contract details and adapt your code accordingly. Ensure any custom data structures or interfaces align with the new contract.","message":"Core 'context grounding' contracts underwent significant changes in `uipath-python` SDK v2.9.0. Specific fields like `PreProcessing` and `Fields` were removed, while `extraction_strategy`, `embeddings_enabled`, and `is_encrypted` were added. This impacts any code that interacts with or extends UiPath's context grounding mechanisms, potentially including custom components built using `uipath-core` abstractions.","severity":"breaking","affected_versions":"uipath-python SDK v2.9.0+"},{"fix":"For high-level SDK operations, use the main `uipath` package (e.g., `pip install uipath`) and refer to its documentation for specific modules like `uipath.functions` or `uipath.orchestrator`.","message":"`uipath-core` provides low-level abstractions and foundational components. It is not intended for direct interaction with high-level UiPath SDK functionalities such as orchestrator communication, AI functions, or RPA process execution. Attempting to find or use such features directly from `uipath-core` will result in `AttributeError` or `ImportError`.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[],"ecosystem":"pypi"}