uipath-langchain 0.0.105__py3-none-any.whl → 0.0.107__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.

@@ -257,7 +257,6 @@ class LangGraphOutputProcessor:
257
257
  trigger_type=UiPathResumeTriggerType.ACTION,
258
258
  item_key=action.key,
259
259
  )
260
- return
261
260
  if isinstance(self.interrupt_info, InterruptInfo):
262
261
  uipath_sdk = UiPath()
263
262
  if self.interrupt_info.type is UiPathResumeTriggerType.JOB:
@@ -155,9 +155,11 @@ class LangGraphConfig:
155
155
  env_path = os.path.abspath(os.path.normpath(env_file))
156
156
  if os.path.exists(env_path):
157
157
  if not load_dotenv(env_path):
158
- logger.warning(
159
- f"Could not load environment variables from {env_path}"
160
- )
158
+ # log warning only if dotenv is not empty
159
+ if os.path.getsize(env_path) > 0:
160
+ logger.warning(
161
+ f"Could not load environment variables from {env_path}"
162
+ )
161
163
  else:
162
164
  logger.debug(f"Loaded environment variables from {env_path}")
163
165
 
@@ -31,7 +31,7 @@ version = "0.0.1"
31
31
  description = "{project_name}"
32
32
  authors = [{{ name = "John Doe", email = "john.doe@myemail.com" }}]
33
33
  dependencies = [
34
- "uipath-langchain>=0.0.95",
34
+ "uipath-langchain>=0.0.106",
35
35
  "langchain-anthropic>=0.3.8",
36
36
  ]
37
37
  requires-python = ">=3.10"
@@ -54,14 +54,14 @@ def langgraph_new_middleware(name: str) -> MiddlewareResult:
54
54
  console.success("Created 'langgraph.json' file.")
55
55
  generate_pyproject(directory, name)
56
56
  console.success("Created 'pyproject.toml' file.")
57
- os.system("uv sync")
58
- ctx = click.get_current_context()
59
- init_cmd = ctx.parent.command.get_command(ctx, "init") # type: ignore
60
- ctx.invoke(init_cmd)
61
57
  console.config(
62
58
  f""" Please ensure to define either {click.style("ANTHROPIC_API_KEY", fg="bright_yellow")} or {click.style("OPENAI_API_KEY", fg="bright_yellow")} in your .env file. """
63
59
  )
60
+ init_command = """uipath init"""
64
61
  run_command = """uipath run agent '{"topic": "UiPath"}'"""
62
+ console.hint(
63
+ f""" Initialize project: {click.style(init_command, fg="cyan")}"""
64
+ )
65
65
  console.hint(f""" Run agent: {click.style(run_command, fg="cyan")}""")
66
66
  return MiddlewareResult(should_continue=False)
67
67
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.105
3
+ Version: 0.0.107
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
@@ -2,17 +2,17 @@ uipath_langchain/__init__.py,sha256=VBrvQn7d3nuOdN7zEnV2_S-uhmkjgEIlXiFVeZxZakQ,
2
2
  uipath_langchain/middlewares.py,sha256=tre7o9DFMgWk1DJiEEUmT6_wiP-PPkWtKmG0iOyvr9c,509
3
3
  uipath_langchain/_cli/__init__.py,sha256=juqd9PbXs4yg45zMJ7BHAOPQjb7sgEbWE9InBtGZhfo,24
4
4
  uipath_langchain/_cli/cli_init.py,sha256=B5BVUA7pDvKyRRGEx5mgmeE5SJvLPM3cnLGt6a9iixY,7417
5
- uipath_langchain/_cli/cli_new.py,sha256=R-41FqPBg5dLSgWLYqqT1d95fl-2_jWrr1RzVBkUs3M,2589
5
+ uipath_langchain/_cli/cli_new.py,sha256=dL8-Rri6u67ZZdbb4nT38A5xD_Q3fVnG0UK9VSeKaqg,2563
6
6
  uipath_langchain/_cli/cli_run.py,sha256=8-7NBguH3ACwN3bHEtyj2d3N-FFLJQLaiHDNI_3hnQE,2863
7
7
  uipath_langchain/_cli/_runtime/_context.py,sha256=wr4aNn06ReIXmetEZ6b6AnpAt64p13anQ2trZ5Bzgio,807
8
8
  uipath_langchain/_cli/_runtime/_escalation.py,sha256=oA5NvZvCo8ngELFJRyhZNM69DxVHrshhMY6CUk_cukQ,8055
9
9
  uipath_langchain/_cli/_runtime/_exception.py,sha256=USKkLYkG-dzjX3fEiMMOHnVUpiXJs_xF0OQXCCOvbYM,546
10
10
  uipath_langchain/_cli/_runtime/_input.py,sha256=gKzPaGW-EzgeAskWJjbCWnfZRLu_BM7lCXkq0XkVGLU,5614
11
- uipath_langchain/_cli/_runtime/_output.py,sha256=WQSrsvGaaclZ6GLWEh6Nk1Mz1iGaIB45PgIX3DS3AN4,16130
11
+ uipath_langchain/_cli/_runtime/_output.py,sha256=zGSGEUiWHg-q8-Ccm_NU8Vi-7oWCzq5GN1oFqO9FV9Q,16099
12
12
  uipath_langchain/_cli/_runtime/_runtime.py,sha256=ai3qxNmdPACxowq7WcNBn9m8-KXe4vFwvpBn0lh6kmQ,11689
13
13
  uipath_langchain/_cli/_templates/langgraph.json.template,sha256=eeh391Gta_hoRgaNaZ58nW1LNvCVXA7hlAH6l7Veous,107
14
14
  uipath_langchain/_cli/_templates/main.py.template,sha256=9JEyPxwc4Ce8Dfd2UAgHgpwkkjuXwWXOQZ-65P53QuM,1195
15
- uipath_langchain/_cli/_utils/_graph.py,sha256=WLBSJfPc3_C07SqJhePRe17JIc5wcBvEqLviMcNOdTA,6950
15
+ uipath_langchain/_cli/_utils/_graph.py,sha256=P7m03i6kcLda8XVpVtppcM8GOrSW62zWcv3rCR1H5zs,7086
16
16
  uipath_langchain/_utils/__init__.py,sha256=WoY66enCygRXTh6v5B1UrRcFCnQYuPJ8oqDkwomXzLc,194
17
17
  uipath_langchain/_utils/_request_mixin.py,sha256=t_1HWBxqEl-wsSk9ubmIM-8vs9BlNy4ZVBxtDxktn6U,18489
18
18
  uipath_langchain/_utils/_settings.py,sha256=MhwEVj4gVRSar0RBf2w2hTjO-5Qm-HpCuufqN3gSWjA,3390
@@ -31,8 +31,8 @@ uipath_langchain/tracers/_instrument_traceable.py,sha256=0e841zVzcPWjOGtmBx0GeHb
31
31
  uipath_langchain/tracers/_utils.py,sha256=JOT1tKMdvqjMDtj2WbmbOWMeMlTXBWavxWpogX7KlRA,1543
32
32
  uipath_langchain/vectorstores/__init__.py,sha256=w8qs1P548ud1aIcVA_QhBgf_jZDrRMK5Lono78yA8cs,114
33
33
  uipath_langchain/vectorstores/context_grounding_vectorstore.py,sha256=eTa5sX43-ydB1pj9VNHUPbB-hC36fZK_CGrNe5U2Nrw,9393
34
- uipath_langchain-0.0.105.dist-info/METADATA,sha256=1mIsfmBry1pZP1KS3VTTqKka1pK-0gcwr31rE5TEAMI,4166
35
- uipath_langchain-0.0.105.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
36
- uipath_langchain-0.0.105.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
37
- uipath_langchain-0.0.105.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
38
- uipath_langchain-0.0.105.dist-info/RECORD,,
34
+ uipath_langchain-0.0.107.dist-info/METADATA,sha256=qlngAR2W0uO6XsnBKP7cwCC9nQetiEihBoeKOXwGhcE,4166
35
+ uipath_langchain-0.0.107.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
36
+ uipath_langchain-0.0.107.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
37
+ uipath_langchain-0.0.107.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
38
+ uipath_langchain-0.0.107.dist-info/RECORD,,