uipath-langchain 0.0.117__py3-none-any.whl → 0.0.119__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath-langchain might be problematic. Click here for more details.

@@ -1,6 +1,5 @@
1
1
  import json
2
2
  import logging
3
- from os import environ as env
4
3
  from typing import Any, Dict, List, Literal, Optional, Union
5
4
 
6
5
  from langchain_core.callbacks import (
@@ -85,15 +84,6 @@ class UiPathAzureChatOpenAI(UiPathRequestMixin, AzureChatOpenAI):
85
84
  class UiPathChat(UiPathRequestMixin, AzureChatOpenAI):
86
85
  """Custom LLM connector for LangChain integration with UiPath Normalized."""
87
86
 
88
- def __init__(self, *args: Any, **kwargs: Any):
89
- """Initialize the UiPath Azure Chat OpenAI model."""
90
-
91
- super().__init__(*args, **kwargs)
92
- self.default_headers = {
93
- "X-UiPath-JobKey": env.get("UIPATH_JOB_KEY", ""),
94
- "X-UiPath-ProcessKey": env.get("UIPATH_PROCESS_KEY", ""),
95
- }
96
-
97
87
  def _create_chat_result(
98
88
  self,
99
89
  response: Union[Dict[str, Any], BaseModel],
@@ -127,6 +117,7 @@ class UiPathChat(UiPathRequestMixin, AzureChatOpenAI):
127
117
  "id": tool["id"],
128
118
  "name": tool["name"],
129
119
  "args": tool["arguments"],
120
+ "type": "tool_call",
130
121
  }
131
122
  for tool in message["tool_calls"]
132
123
  ]
@@ -267,7 +258,7 @@ class UiPathChat(UiPathRequestMixin, AzureChatOpenAI):
267
258
 
268
259
  @property
269
260
  def endpoint(self) -> str:
270
- endpoint = EndpointManager.get_passthrough_endpoint()
261
+ endpoint = EndpointManager.get_normalized_endpoint()
271
262
  logger.debug("Using endpoint: %s", endpoint)
272
263
  return endpoint.format(
273
264
  model=self.model_name, api_version=self.openai_api_version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.117
3
+ Version: 0.0.119
4
4
  Summary: UiPath Langchain
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
@@ -17,7 +17,7 @@ uipath_langchain/_utils/_request_mixin.py,sha256=Bf8l43T0uqwUsucBE_2C1aeB9b0bmf1
17
17
  uipath_langchain/_utils/_settings.py,sha256=2fExMQJ88YptfldmzMfZIpsx-m1gfMkeYGf5t6KIe0A,3084
18
18
  uipath_langchain/_utils/_sleep_policy.py,sha256=e9pHdjmcCj4CVoFM1jMyZFelH11YatsgWfpyrfXzKBQ,1251
19
19
  uipath_langchain/chat/__init__.py,sha256=WDcvy91ixvZ3Mq7Ae94g5CjyQwXovDBnEv1NlD5SXBE,116
20
- uipath_langchain/chat/models.py,sha256=cUxBR39oHIFkRifLNVRHjff6QXGiOcTzy9J-svnKGsE,10848
20
+ uipath_langchain/chat/models.py,sha256=m5PRAFXzUamt6-1K9uSlWUvZg_NfVyYHkgoQDJ-1rGs,10527
21
21
  uipath_langchain/embeddings/__init__.py,sha256=QICtYB58ZyqFfDQrEaO8lTEgAU5NuEKlR7iIrS0OBtc,156
22
22
  uipath_langchain/embeddings/embeddings.py,sha256=45gKyb6HVKigwE-0CXeZcAk33c0mteaEdPGa8hviqcw,4339
23
23
  uipath_langchain/retrievers/__init__.py,sha256=rOn7PyyHgZ4pMnXWPkGqmuBmx8eGuo-Oyndo7Wm9IUU,108
@@ -29,8 +29,8 @@ uipath_langchain/tracers/_instrument_traceable.py,sha256=0e841zVzcPWjOGtmBx0GeHb
29
29
  uipath_langchain/tracers/_utils.py,sha256=JOT1tKMdvqjMDtj2WbmbOWMeMlTXBWavxWpogX7KlRA,1543
30
30
  uipath_langchain/vectorstores/__init__.py,sha256=w8qs1P548ud1aIcVA_QhBgf_jZDrRMK5Lono78yA8cs,114
31
31
  uipath_langchain/vectorstores/context_grounding_vectorstore.py,sha256=TncIXG-YsUlO0R5ZYzWsM-Dj1SVCZbzmo2LraVxXelc,9559
32
- uipath_langchain-0.0.117.dist-info/METADATA,sha256=dJQDa40PA6Np0h_JvSRLbcMlHTiZo6a_Zh8mP5_5XPc,4166
33
- uipath_langchain-0.0.117.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- uipath_langchain-0.0.117.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
35
- uipath_langchain-0.0.117.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
36
- uipath_langchain-0.0.117.dist-info/RECORD,,
32
+ uipath_langchain-0.0.119.dist-info/METADATA,sha256=lvKCQMeKElyCpT30fvt_hC1GxrmDxy2vf8oN-vrE6iM,4166
33
+ uipath_langchain-0.0.119.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ uipath_langchain-0.0.119.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
35
+ uipath_langchain-0.0.119.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
36
+ uipath_langchain-0.0.119.dist-info/RECORD,,