Skip to content

Commit 96cf3b1

Browse files
committed
feat: added new uipath_langchain_client and refactor code base to use it
1 parent ab5b440 commit 96cf3b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1963
-5675
lines changed

pyproject.toml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.8.28"
3+
version = "0.9.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"
@@ -12,7 +12,6 @@ dependencies = [
1212
"langgraph>=1.0.0, <2.0.0",
1313
"langchain-core>=1.2.11, <2.0.0",
1414
"langgraph-checkpoint-sqlite>=3.0.3, <4.0.0",
15-
"langchain-openai>=1.0.0, <2.0.0",
1615
"langchain>=1.0.0, <2.0.0",
1716
"pydantic-settings>=2.6.0",
1817
"python-dotenv>=1.0.1",
@@ -22,6 +21,7 @@ dependencies = [
2221
"jsonpath-ng>=1.7.0",
2322
"mcp==1.26.0",
2423
"langchain-mcp-adapters==0.2.1",
24+
"uipath-langchain-client[openai]>=1.5.5",
2525
]
2626

2727
classifiers = [
@@ -37,8 +37,19 @@ maintainers = [
3737
]
3838

3939
[project.optional-dependencies]
40-
vertex = ["langchain-google-genai>=2.0.0", "google-generativeai>=0.8.0"]
41-
bedrock = ["langchain-aws>=0.2.35", "boto3-stubs>=1.41.4"]
40+
anthropic = [
41+
"uipath-langchain-client[anthropic]>=1.5.5",
42+
]
43+
vertex = [
44+
"uipath-langchain-client[google]>=1.5.5",
45+
"uipath-langchain-client[vertexai]>=1.5.5",
46+
]
47+
bedrock = [
48+
"uipath-langchain-client[aws]>=1.5.5",
49+
]
50+
all = [
51+
"uipath-langchain-client[all]>=1.5.5",
52+
]
4253

4354
[project.entry-points."uipath.middlewares"]
4455
register = "uipath_langchain.middlewares:register_middleware"

samples/chat-hitl-agent/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from langchain_anthropic import ChatAnthropic
22
from langchain_tavily import TavilySearch
33
from langchain.agents import create_agent
4-
from uipath_langchain.chat import requires_approval
4+
from uipath_langchain.chat.hitl import requires_approval
55

66
tavily_tool = TavilySearch(max_results=5)
77

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from ._environment import get_execution_folder_path
2-
from ._request_mixin import UiPathRequestMixin
32

4-
__all__ = ["UiPathRequestMixin", "get_execution_folder_path"]
3+
__all__ = ["get_execution_folder_path"]

0 commit comments

Comments
 (0)