Skip to content

Commit 6cbd082

Browse files
committed
fix: update runtime contracts
1 parent e70c464 commit 6cbd082

3 files changed

Lines changed: 27 additions & 32 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.4.29"
3+
version = "0.5.0"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath>=2.5.29,<2.6.0",
9-
"uipath-runtime>=0.5.1,<0.6.0",
8+
"uipath>=2.6.0,<2.7.0",
9+
"uipath-runtime>=0.6.0, <0.7.0",
1010
"langgraph>=1.0.0, <2.0.0",
1111
"langchain-core>=1.2.5, <2.0.0",
1212
"aiosqlite==0.21.0",

src/uipath_langchain/runtime/factory.py

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
from uipath.runtime import (
1717
UiPathResumableRuntime,
1818
UiPathRuntimeContext,
19+
UiPathRuntimeFactorySettings,
1920
UiPathRuntimeProtocol,
21+
UiPathRuntimeStorageProtocol,
2022
)
2123
from uipath.runtime.errors import UiPathErrorCategory
2224

@@ -228,28 +230,21 @@ def discover_entrypoints(self) -> list[str]:
228230
return []
229231
return config.entrypoints
230232

231-
async def discover_runtimes(self) -> list[UiPathRuntimeProtocol]:
233+
async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
232234
"""
233-
Discover runtime instances for all entrypoints.
235+
Get the factory settings.
236+
"""
237+
return None
238+
239+
async def get_storage(self) -> UiPathRuntimeStorageProtocol | None:
240+
"""
241+
Get the runtime storage protocol instance.
234242
235243
Returns:
236-
List of LangGraphRuntime instances, one per entrypoint
244+
The storage protocol instance
237245
"""
238-
entrypoints = self.discover_entrypoints()
239246
memory = await self._get_memory()
240-
241-
runtimes: list[UiPathRuntimeProtocol] = []
242-
for entrypoint in entrypoints:
243-
compiled_graph = await self._resolve_and_compile_graph(entrypoint, memory)
244-
245-
runtime = await self._create_runtime_instance(
246-
compiled_graph=compiled_graph,
247-
runtime_id=entrypoint,
248-
entrypoint=entrypoint,
249-
)
250-
runtimes.append(runtime)
251-
252-
return runtimes
247+
return SqliteResumableStorage(memory)
253248

254249
async def _create_runtime_instance(
255250
self,

uv.lock

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

0 commit comments

Comments
 (0)