Skip to content

Commit b976fe5

Browse files
committed
feat: added new uipath_langchain_client and refactor code base to use it
1 parent 2947c1e commit b976fe5

Some content is hidden

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

47 files changed

+1659
-5375
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.17"
3+
version = "1.0.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.3.0",
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.3.0",
42+
]
43+
vertex = [
44+
"uipath-langchain-client[google]>=1.3.0",
45+
"uipath-langchain-client[vertexai]>=1.3.0",
46+
]
47+
bedrock = [
48+
"uipath-langchain-client[aws]>=1.3.0",
49+
]
50+
all = [
51+
"uipath-langchain-client[all]>=1.3.0",
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.agent.tools.hitl import requires_approval
55

66
tavily_tool = TavilySearch(max_results=5)
77

samples/oauth-external-apps-agent/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from langchain.agents import create_agent
1111
from langchain.messages import SystemMessage, HumanMessage
1212

13-
from uipath_langchain.chat.models import UiPathChat
13+
from uipath_langchain.chat import UiPathChat
1414
from langchain_mcp_adapters.tools import load_mcp_tools
1515
from mcp import ClientSession
1616
from mcp.client.streamable_http import streamablehttp_client

samples/retrieval-chain/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from langchain_core.prompts import ChatPromptTemplate
1212
from langchain_core.runnables import RunnablePassthrough
1313
from langchain_core.vectorstores import VectorStore
14-
from uipath_langchain.chat.models import UiPathAzureChatOpenAI
14+
from uipath_langchain.chat import UiPathAzureChatOpenAI
1515
from uipath_langchain.vectorstores.context_grounding_vectorstore import (
1616
ContextGroundingVectorStore,
1717
)
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)