Skip to content

Commit 0cc8f9c

Browse files
authored
re-export normalized client (#27)
1 parent 39f29b3 commit 0cc8f9c

18 files changed

Lines changed: 37 additions & 15 deletions

File tree

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_langchain_client` will be documented in this file.
44

5+
## [1.1.7] - 2026-02-13
6+
7+
### Refactor
8+
- Re-export UiPathChat and UiPathEmbeddings at module level
9+
510
## [1.1.6] - 2026-02-12
611

712
### Fixes

packages/uipath_langchain_client/src/uipath_langchain_client/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"""
3434

3535
from uipath_langchain_client.__version__ import __version__
36+
from uipath_langchain_client.clients import UiPathChat, UiPathEmbeddings
3637
from uipath_langchain_client.factory import get_chat_model, get_embedding_model
3738
from uipath_langchain_client.settings import (
3839
AgentHubSettings,
@@ -44,6 +45,8 @@
4445
"__version__",
4546
"get_chat_model",
4647
"get_embedding_model",
48+
"UiPathChat",
49+
"UiPathEmbeddings",
4750
"get_default_client_settings",
4851
"LLMGatewaySettings",
4952
"AgentHubSettings",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LangChain Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services via LangChain."
3-
__version__ = "1.1.6"
3+
__version__ = "1.1.7"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from uipath_langchain_client.clients.normalized import UiPathChat, UiPathEmbeddings
2+
3+
__all__ = [
4+
"UiPathChat",
5+
"UiPathEmbeddings",
6+
]

packages/uipath_langchain_client/src/uipath_langchain_client/clients/anthropic/chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
from pydantic import Field, model_validator
55
from typing_extensions import override
6+
67
from uipath_langchain_client.base_client import UiPathBaseLLMClient
78
from uipath_langchain_client.settings import UiPathAPIConfig
89

910
try:
10-
from langchain_anthropic.chat_models import ChatAnthropic
11-
1211
from anthropic import (
1312
Anthropic,
1413
AnthropicBedrock,
@@ -19,6 +18,7 @@
1918
AsyncAnthropicFoundry,
2019
AsyncAnthropicVertex,
2120
)
21+
from langchain_anthropic.chat_models import ChatAnthropic
2222
except ImportError as e:
2323
raise ImportError(
2424
"The 'anthropic' extra is required to use UiPathChatAnthropic. "

packages/uipath_langchain_client/src/uipath_langchain_client/clients/azure/chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
from typing import Self
22

33
from pydantic import model_validator
4+
45
from uipath_langchain_client.base_client import UiPathBaseLLMClient
56
from uipath_langchain_client.settings import UiPathAPIConfig
67

78
try:
8-
from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
9-
109
from azure.ai.inference import ChatCompletionsClient
1110
from azure.ai.inference.aio import ChatCompletionsClient as ChatCompletionsClientAsync
1211
from azure.core.credentials import AzureKeyCredential
12+
from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
1313
except ImportError as e:
1414
raise ImportError(
1515
"The 'azure' extra is required to use UiPathAzureAIChatCompletionsModel. "

packages/uipath_langchain_client/src/uipath_langchain_client/clients/azure/embeddings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from typing import Self
22

33
from pydantic import model_validator
4+
45
from uipath_langchain_client.base_client import UiPathBaseLLMClient
56
from uipath_langchain_client.settings import UiPathAPIConfig
67

78
try:
8-
from langchain_azure_ai.embeddings import AzureAIEmbeddingsModel
9-
109
from azure.ai.inference import EmbeddingsClient
1110
from azure.ai.inference.aio import EmbeddingsClient as EmbeddingsClientAsync
11+
from langchain_azure_ai.embeddings import AzureAIEmbeddingsModel
1212
except ImportError as e:
1313
raise ImportError(
1414
"The 'azure' extra is required to use UiPathAzureAIEmbeddingsModel. "

packages/uipath_langchain_client/src/uipath_langchain_client/clients/bedrock/chat_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from typing import Any, Self
22

33
from pydantic import model_validator
4+
45
from uipath_langchain_client.base_client import UiPathBaseLLMClient
56
from uipath_langchain_client.settings import UiPathAPIConfig
67

78
try:
89
from langchain_aws.chat_models import ChatBedrock, ChatBedrockConverse
10+
911
from uipath_langchain_client.clients.bedrock.utils import WrappedBotoClient
1012
except ImportError as e:
1113
raise ImportError(

packages/uipath_langchain_client/src/uipath_langchain_client/clients/bedrock/embeddings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from typing import Self
22

33
from pydantic import model_validator
4+
45
from uipath_langchain_client.base_client import UiPathBaseLLMClient
56
from uipath_langchain_client.settings import UiPathAPIConfig
67

78
try:
89
from langchain_aws.embeddings import BedrockEmbeddings
10+
911
from uipath_langchain_client.clients.bedrock.utils import WrappedBotoClient
1012
except ImportError as e:
1113
raise ImportError(

packages/uipath_langchain_client/src/uipath_langchain_client/clients/fireworks/chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from typing import Self
22

33
from pydantic import Field, SecretStr, model_validator
4+
45
from uipath_langchain_client.base_client import UiPathBaseLLMClient
56
from uipath_langchain_client.settings import UiPathAPIConfig
67

78
try:
8-
from langchain_fireworks.chat_models import ChatFireworks
9-
109
from fireworks.client.api_client import FireworksClient as FireworksClientV1
10+
from langchain_fireworks.chat_models import ChatFireworks
1111
except ImportError as e:
1212
raise ImportError(
1313
"The 'fireworks' extra is required to use UiPathChatFireworks. "

0 commit comments

Comments
 (0)