File tree Expand file tree Collapse file tree
packages/uipath-llamaindex
src/uipath_llamaindex/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-llamaindex"
3- version = " 0.4.1 "
3+ version = " 0.5.0 "
44description = " UiPath LlamaIndex SDK"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-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]
1616classifiers = [
1717 " Intended Audience :: Developers" ,
Original file line number Diff line number Diff line change 1313 UiPathResumableRuntime ,
1414 UiPathRuntimeContext ,
1515 UiPathRuntimeProtocol ,
16+ UiPathRuntimeStorageProtocol ,
17+ UiPathRuntimeFactorySettings ,
1618)
1719from uipath .runtime .errors import UiPathErrorCategory
1820from 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 ,
You can’t perform that action at this time.
0 commit comments