diff --git a/packages/uipath-llamaindex/pyproject.toml b/packages/uipath-llamaindex/pyproject.toml index c2e1336..a67f323 100644 --- a/packages/uipath-llamaindex/pyproject.toml +++ b/packages/uipath-llamaindex/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-llamaindex" -version = "0.4.1" +version = "0.5.0" description = "UiPath LlamaIndex SDK" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" @@ -10,8 +10,8 @@ dependencies = [ "llama-index-embeddings-azure-openai>=0.4.1", "llama-index-llms-azure-openai>=0.4.2", "openinference-instrumentation-llama-index>=4.3.9", - "uipath>=2.5.0, <2.6.0", - "uipath-runtime>=0.5.0, <0.6.0", + "uipath>=2.6.0, <2.7.0", + "uipath-runtime>=0.6.0, <0.7.0", ] classifiers = [ "Intended Audience :: Developers", diff --git a/packages/uipath-llamaindex/src/uipath_llamaindex/runtime/factory.py b/packages/uipath-llamaindex/src/uipath_llamaindex/runtime/factory.py index 3bd5ce7..d9535fa 100644 --- a/packages/uipath-llamaindex/src/uipath_llamaindex/runtime/factory.py +++ b/packages/uipath-llamaindex/src/uipath_llamaindex/runtime/factory.py @@ -12,7 +12,9 @@ from uipath.runtime import ( UiPathResumableRuntime, UiPathRuntimeContext, + UiPathRuntimeFactorySettings, UiPathRuntimeProtocol, + UiPathRuntimeStorageProtocol, ) from uipath.runtime.errors import UiPathErrorCategory from workflows import Workflow @@ -211,27 +213,20 @@ def discover_entrypoints(self) -> list[str]: return [] return config.entrypoints - async def discover_runtimes(self) -> list[UiPathRuntimeProtocol]: + async def get_storage(self) -> UiPathRuntimeStorageProtocol | None: """ - Discover runtime instances for all entrypoints. - - Returns: - List of LlamaIndexRuntime instances, one per entrypoint + Get the shared storage instance. """ - entrypoints = self.discover_entrypoints() + return await self._get_storage() - runtimes: list[UiPathRuntimeProtocol] = [] - for entrypoint in entrypoints: - workflow = await self._resolve_workflow(entrypoint) - - runtime = await self._create_runtime_instance( - workflow=workflow, - runtime_id=entrypoint, - entrypoint=entrypoint, - ) - runtimes.append(runtime) + async def get_settings(self) -> UiPathRuntimeFactorySettings | None: + """ + Get the factory settings. - return runtimes + Returns: + Factory settings + """ + return None async def _create_runtime_instance( self, diff --git a/packages/uipath-llamaindex/uv.lock b/packages/uipath-llamaindex/uv.lock index acd2f47..f7f4a44 100644 --- a/packages/uipath-llamaindex/uv.lock +++ b/packages/uipath-llamaindex/uv.lock @@ -3334,7 +3334,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.5" +version = "2.6.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "applicationinsights" }, @@ -3355,29 +3355,28 @@ dependencies = [ { name = "uipath-core" }, { name = "uipath-runtime" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/4c/62/de6137c448a4436876e0e57c3cbd08718a7b45c998bdb9e81865ce0c082c/uipath-2.5.tar.gz", hash = "sha256:6ef338d27763e03098d65318fbf126f8a0010f5aa07136ee0486a8283e951ad1", size = 3883309, upload-time = "2026-01-15T07:02:16.8Z" } +sdist = { url = "https://files.pythonhosted.org/packages/0c/9f/3b419a3397a8eac404062d98f4a64ccf421187c8b9f35f344cbff1307124/uipath-2.6.0.tar.gz", hash = "sha256:fbbd18b1c940a63b0541a96ad8181708c7c0a708838f2f0a0779de91244b2fc8", size = 3904808, upload-time = "2026-01-25T15:29:56.032Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c3/63/8254f1941351b3ee9386d0b073fb3c033e7de9c67ba588a47d5511506e17/uipath-2.5-py3-none-any.whl", hash = "sha256:19f6b5d7408e32e0a9df869dc041a158919758288fdd26bbfe337b9dea12373c", size = 437244, upload-time = "2026-01-15T07:02:14.911Z" }, - { url = "https://files.pythonhosted.org/packages/88/a4/1c81dbee07c01de70281e591c368f832afea956f2e2be7596355716709c8/uipath-2.5.0-py3-none-any.whl", hash = "sha256:7cd24c5048873dd8aaacdb12ec1722be872db9369d410b73ed77d1ce6dfc8e95", size = 437268, upload-time = "2026-01-15T08:39:47.556Z" }, + { url = "https://files.pythonhosted.org/packages/6b/2f/9e25ea4d91286e53d7d7934e85e6efa5bacfacbe7e69d5baa5b26d9f6429/uipath-2.6.0-py3-none-any.whl", hash = "sha256:f1f4fe7a3c5c20d75aef88c51c95f2f4af92ea736a1a1e0f8f95f4dece1cdac4", size = 449292, upload-time = "2026-01-25T15:29:53.506Z" }, ] [[package]] name = "uipath-core" -version = "0.1.4" +version = "0.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "opentelemetry-instrumentation" }, { name = "opentelemetry-sdk" }, { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/db/ef/44b9b0adb378e0e988b621b72af55008dbfb166179412cba1fe54ab4b692/uipath_core-0.1.4.tar.gz", hash = "sha256:6100eb5299b30b145e557e3dbc716141bbaa92cd37633d36257c7e3f90ce578f", size = 96025, upload-time = "2025-12-16T14:25:01.62Z" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/4f/9bf150a21b6af8b56edf7fbca46827806570eab5b37f90c2b76180cf1e79/uipath_core-0.2.0.tar.gz", hash = "sha256:950427fe7921a67468416856faf63192cf717d8adce092d706b070c487f0c076", size = 103072, upload-time = "2026-01-25T11:59:10.871Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/09/c3/e64ea37ba8aa56cfae4a15589652a9dc4f66889e4d19788ca5e1b034b46f/uipath_core-0.1.4-py3-none-any.whl", hash = "sha256:574d6fe0314f70c12de8b6a3c5ab05a6191f6a8b9087c1d1a6352e67765f2f72", size = 30431, upload-time = "2025-12-16T14:25:00.174Z" }, + { url = "https://files.pythonhosted.org/packages/e8/43/f61f6aace058d61dfa11e3c2116b06f0bc15c45d9d201bf432902f54018f/uipath_core-0.2.0-py3-none-any.whl", hash = "sha256:bb5366bfca7ec4611f91a0035df194a56eef11f447313491557e131e6090f5e6", size = 32826, upload-time = "2026-01-25T11:59:09.203Z" }, ] [[package]] name = "uipath-llamaindex" -version = "0.4.1" +version = "0.5.0" source = { editable = "." } dependencies = [ { name = "aiosqlite" }, @@ -3428,8 +3427,8 @@ requires-dist = [ { name = "llama-index-llms-bedrock-converse", marker = "extra == 'bedrock'", specifier = ">=0.3.0" }, { name = "llama-index-llms-google-genai", marker = "extra == 'vertex'", specifier = ">=0.8.0" }, { name = "openinference-instrumentation-llama-index", specifier = ">=4.3.9" }, - { name = "uipath", specifier = ">=2.5.0,<2.6.0" }, - { name = "uipath-runtime", specifier = ">=0.5.0,<0.6.0" }, + { name = "uipath", specifier = ">=2.6.0,<2.7.0" }, + { name = "uipath-runtime", specifier = ">=0.6.0,<0.7.0" }, ] provides-extras = ["bedrock", "vertex"] @@ -3449,14 +3448,14 @@ dev = [ [[package]] name = "uipath-runtime" -version = "0.5.0" +version = "0.6.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "uipath-core" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/dd/e3/ee386d7de03efe8708a561e52b9a417bfdef61fc87b79fae8b72d6e1e2e6/uipath_runtime-0.5.0.tar.gz", hash = "sha256:e2340a74195b9f665e64e2cb8ca8fd3bfff5e6d062d92000270604758c12145a", size = 103202, upload-time = "2026-01-15T05:01:26.04Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e3/eb104949fd2bcd2a96870ca3ebda0229f23ff3768db3b6c1e0f33864283c/uipath_runtime-0.6.0.tar.gz", hash = "sha256:3b000ffe72ab2126ba6fa9f818220e35f60ea120412a8bbd2e18119b4b730184", size = 103627, upload-time = "2026-01-25T15:19:04.653Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/21/3e/57464bb5ef65145cd898592fab4b5219256e6a2f96c5056b221bf6fe9cbc/uipath_runtime-0.5.0-py3-none-any.whl", hash = "sha256:3de704e691efab9338658c897e9a50eafa498fab15d622ef4de28df586989fdb", size = 40185, upload-time = "2026-01-15T05:01:24.661Z" }, + { url = "https://files.pythonhosted.org/packages/62/d1/2207f96ee870ca2fd1a76ec5c4ae864f55813f4562adab606cd9d30f4b35/uipath_runtime-0.6.0-py3-none-any.whl", hash = "sha256:cb78420475fa355d57c98fcbe731b5c8213a44cdc886b14ee2ed7fd78da0d7a8", size = 40764, upload-time = "2026-01-25T15:19:02.819Z" }, ] [[package]]