Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "uipath-langchain"
version = "0.4.29"
version = "0.5.0"
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath>=2.5.29,<2.6.0",
"uipath-runtime>=0.5.1,<0.6.0",
"uipath>=2.6.0,<2.7.0",
"uipath-runtime>=0.6.0, <0.7.0",
"langgraph>=1.0.0, <2.0.0",
"langchain-core>=1.2.5, <2.0.0",
"aiosqlite==0.21.0",
Expand Down
29 changes: 12 additions & 17 deletions src/uipath_langchain/runtime/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
from uipath.runtime import (
UiPathResumableRuntime,
UiPathRuntimeContext,
UiPathRuntimeFactorySettings,
UiPathRuntimeProtocol,
UiPathRuntimeStorageProtocol,
)
from uipath.runtime.errors import UiPathErrorCategory

Expand Down Expand Up @@ -228,28 +230,21 @@ def discover_entrypoints(self) -> list[str]:
return []
return config.entrypoints

async def discover_runtimes(self) -> list[UiPathRuntimeProtocol]:
async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
"""
Discover runtime instances for all entrypoints.
Get the factory settings.
"""
return None

async def get_storage(self) -> UiPathRuntimeStorageProtocol | None:
"""
Get the runtime storage protocol instance.

Returns:
List of LangGraphRuntime instances, one per entrypoint
The storage protocol instance
"""
entrypoints = self.discover_entrypoints()
memory = await self._get_memory()

runtimes: list[UiPathRuntimeProtocol] = []
for entrypoint in entrypoints:
compiled_graph = await self._resolve_and_compile_graph(entrypoint, memory)

runtime = await self._create_runtime_instance(
compiled_graph=compiled_graph,
runtime_id=entrypoint,
entrypoint=entrypoint,
)
runtimes.append(runtime)

return runtimes
return SqliteResumableStorage(memory)

async def _create_runtime_instance(
self,
Expand Down
24 changes: 12 additions & 12 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.