Skip to content

Commit 5488de2

Browse files
committed
fix: update runtime contracts
1 parent 6f0467a commit 5488de2

3 files changed

Lines changed: 27 additions & 33 deletions

File tree

packages/uipath-llamaindex/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-llamaindex"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
@@ -10,8 +10,8 @@ dependencies = [
1010
"llama-index-embeddings-azure-openai>=0.4.1",
1111
"llama-index-llms-azure-openai>=0.4.2",
1212
"openinference-instrumentation-llama-index>=4.3.9",
13-
"uipath>=2.5.0, <2.6.0",
14-
"uipath-runtime>=0.5.0, <0.6.0",
13+
"uipath>=2.6.0, <2.7.0",
14+
"uipath-runtime>=0.6.0, <0.7.0",
1515
]
1616
classifiers = [
1717
"Intended Audience :: Developers",

packages/uipath-llamaindex/src/uipath_llamaindex/runtime/factory.py

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
UiPathResumableRuntime,
1414
UiPathRuntimeContext,
1515
UiPathRuntimeProtocol,
16+
UiPathRuntimeStorageProtocol,
17+
UiPathRuntimeFactorySettings,
1618
)
1719
from uipath.runtime.errors import UiPathErrorCategory
1820
from workflows import Workflow
@@ -211,27 +213,20 @@ def discover_entrypoints(self) -> list[str]:
211213
return []
212214
return config.entrypoints
213215

214-
async def discover_runtimes(self) -> list[UiPathRuntimeProtocol]:
216+
async def get_storage(self) -> UiPathRuntimeStorageProtocol | None:
215217
"""
216-
Discover runtime instances for all entrypoints.
217-
218-
Returns:
219-
List of LlamaIndexRuntime instances, one per entrypoint
218+
Get the shared storage instance.
220219
"""
221-
entrypoints = self.discover_entrypoints()
220+
return await self._get_storage()
222221

223-
runtimes: list[UiPathRuntimeProtocol] = []
224-
for entrypoint in entrypoints:
225-
workflow = await self._resolve_workflow(entrypoint)
226-
227-
runtime = await self._create_runtime_instance(
228-
workflow=workflow,
229-
runtime_id=entrypoint,
230-
entrypoint=entrypoint,
231-
)
232-
runtimes.append(runtime)
222+
async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
223+
"""
224+
Get the factory settings.
233225
234-
return runtimes
226+
Returns:
227+
Factory settings
228+
"""
229+
return None
235230

236231
async def _create_runtime_instance(
237232
self,

packages/uipath-llamaindex/uv.lock

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)