uipath-langchain 0.0.120__py3-none-any.whl → 0.0.121__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.
- uipath_langchain/_cli/_runtime/_runtime.py +17 -3
- uipath_langchain/_cli/cli_run.py +3 -2
- {uipath_langchain-0.0.120.dist-info → uipath_langchain-0.0.121.dist-info}/METADATA +3 -3
- {uipath_langchain-0.0.120.dist-info → uipath_langchain-0.0.121.dist-info}/RECORD +7 -7
- {uipath_langchain-0.0.120.dist-info → uipath_langchain-0.0.121.dist-info}/WHEEL +0 -0
- {uipath_langchain-0.0.120.dist-info → uipath_langchain-0.0.121.dist-info}/entry_points.txt +0 -0
- {uipath_langchain-0.0.120.dist-info → uipath_langchain-0.0.121.dist-info}/licenses/LICENSE +0 -0
|
@@ -101,7 +101,7 @@ class LangGraphRuntime(UiPathBaseRuntime):
|
|
|
101
101
|
graph_config["max_concurrency"] = int(max_concurrency)
|
|
102
102
|
|
|
103
103
|
# Stream the output at debug time
|
|
104
|
-
if self.
|
|
104
|
+
if self.is_debug_run():
|
|
105
105
|
# Get final chunk while streaming
|
|
106
106
|
final_chunk = None
|
|
107
107
|
async for stream_chunk in graph.astream(
|
|
@@ -115,7 +115,7 @@ class LangGraphRuntime(UiPathBaseRuntime):
|
|
|
115
115
|
|
|
116
116
|
self.context.output = self._extract_graph_result(final_chunk, graph)
|
|
117
117
|
else:
|
|
118
|
-
# Execute the graph normally at runtime
|
|
118
|
+
# Execute the graph normally at runtime or eval
|
|
119
119
|
self.context.output = await graph.ainvoke(
|
|
120
120
|
processed_input, graph_config
|
|
121
121
|
)
|
|
@@ -310,9 +310,23 @@ class LangGraphRuntime(UiPathBaseRuntime):
|
|
|
310
310
|
# Check which channels are present
|
|
311
311
|
available_channels = [ch for ch in output_channels if ch in final_chunk]
|
|
312
312
|
|
|
313
|
+
# if no available channels, output may contain the last_node name as key
|
|
314
|
+
unwrapped_final_chunk = {}
|
|
315
|
+
if not available_channels:
|
|
316
|
+
if len(final_chunk) == 1 and isinstance(
|
|
317
|
+
unwrapped_final_chunk := next(iter(final_chunk.values())), dict
|
|
318
|
+
):
|
|
319
|
+
available_channels = [
|
|
320
|
+
ch for ch in output_channels if ch in unwrapped_final_chunk
|
|
321
|
+
]
|
|
322
|
+
|
|
313
323
|
if available_channels:
|
|
314
324
|
# Create a dict with the available channels
|
|
315
|
-
return {
|
|
325
|
+
return {
|
|
326
|
+
channel: final_chunk.get(channel, None)
|
|
327
|
+
or unwrapped_final_chunk[channel]
|
|
328
|
+
for channel in available_channels
|
|
329
|
+
}
|
|
316
330
|
|
|
317
331
|
# Fallback for any other case
|
|
318
332
|
return final_chunk
|
uipath_langchain/_cli/cli_run.py
CHANGED
|
@@ -31,8 +31,8 @@ def langgraph_run_middleware(
|
|
|
31
31
|
tracing = bool_map[tracing.lower()]
|
|
32
32
|
|
|
33
33
|
async def execute():
|
|
34
|
-
context = LangGraphRuntimeContext.from_config(
|
|
35
|
-
env.get("UIPATH_CONFIG_PATH", "uipath.json")
|
|
34
|
+
context: LangGraphRuntimeContext = LangGraphRuntimeContext.from_config(
|
|
35
|
+
env.get("UIPATH_CONFIG_PATH", "uipath.json"), **kwargs
|
|
36
36
|
)
|
|
37
37
|
context.entrypoint = entrypoint
|
|
38
38
|
context.input = input
|
|
@@ -42,6 +42,7 @@ def langgraph_run_middleware(
|
|
|
42
42
|
context.logs_min_level = env.get("LOG_LEVEL", "INFO")
|
|
43
43
|
context.job_id = env.get("UIPATH_JOB_KEY")
|
|
44
44
|
context.trace_id = env.get("UIPATH_TRACE_ID")
|
|
45
|
+
context.is_eval_run = kwargs.get("is_eval_run", False)
|
|
45
46
|
context.tracing_enabled = tracing
|
|
46
47
|
context.input_file = kwargs.get("input_file", None)
|
|
47
48
|
context.execution_output_file = kwargs.get("execution_output_file", None)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath-langchain
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.121
|
|
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
|
|
@@ -20,11 +20,11 @@ Requires-Dist: langchain-core>=0.3.34
|
|
|
20
20
|
Requires-Dist: langchain-openai>=0.3.3
|
|
21
21
|
Requires-Dist: langchain>=0.3.4
|
|
22
22
|
Requires-Dist: langgraph-checkpoint-sqlite>=2.0.3
|
|
23
|
-
Requires-Dist: langgraph
|
|
23
|
+
Requires-Dist: langgraph<0.7.0,>=0.5.0
|
|
24
24
|
Requires-Dist: openai>=1.65.5
|
|
25
25
|
Requires-Dist: pydantic-settings>=2.6.0
|
|
26
26
|
Requires-Dist: python-dotenv>=1.0.1
|
|
27
|
-
Requires-Dist: uipath<2.2.0,>=2.1.
|
|
27
|
+
Requires-Dist: uipath<2.2.0,>=2.1.10
|
|
28
28
|
Provides-Extra: langchain
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
|
|
@@ -3,12 +3,12 @@ uipath_langchain/middlewares.py,sha256=tre7o9DFMgWk1DJiEEUmT6_wiP-PPkWtKmG0iOyvr
|
|
|
3
3
|
uipath_langchain/_cli/__init__.py,sha256=juqd9PbXs4yg45zMJ7BHAOPQjb7sgEbWE9InBtGZhfo,24
|
|
4
4
|
uipath_langchain/_cli/cli_init.py,sha256=xhxJ8tuMSrVUNHvltgyPpOrvgMA-wq9shHeYYwvHILs,8199
|
|
5
5
|
uipath_langchain/_cli/cli_new.py,sha256=dL8-Rri6u67ZZdbb4nT38A5xD_Q3fVnG0UK9VSeKaqg,2563
|
|
6
|
-
uipath_langchain/_cli/cli_run.py,sha256=
|
|
6
|
+
uipath_langchain/_cli/cli_run.py,sha256=Jr-nxzBaSPQoVrdV1nQBSDVFElFV3N0a0uNDDrdSc8I,3375
|
|
7
7
|
uipath_langchain/_cli/_runtime/_context.py,sha256=yyzYJDmk2fkH4T5gm4cLGRyXtjLESrpzHBT9euqluTA,817
|
|
8
8
|
uipath_langchain/_cli/_runtime/_exception.py,sha256=USKkLYkG-dzjX3fEiMMOHnVUpiXJs_xF0OQXCCOvbYM,546
|
|
9
9
|
uipath_langchain/_cli/_runtime/_input.py,sha256=vZ8vfVxvPSaPWmIPghvNx1VRKzbalHsKUMBPiKDvJWM,5492
|
|
10
10
|
uipath_langchain/_cli/_runtime/_output.py,sha256=yJOZPWv2FRUJWv1NRs9JmpB4QMTDXu8jrxoaKrfJvzw,9078
|
|
11
|
-
uipath_langchain/_cli/_runtime/_runtime.py,sha256=
|
|
11
|
+
uipath_langchain/_cli/_runtime/_runtime.py,sha256=XTlPaMuHyv-4DjQMoEh76D2Z18M3S5wm4tDP-UAiE5Y,14505
|
|
12
12
|
uipath_langchain/_cli/_templates/langgraph.json.template,sha256=eeh391Gta_hoRgaNaZ58nW1LNvCVXA7hlAH6l7Veous,107
|
|
13
13
|
uipath_langchain/_cli/_templates/main.py.template,sha256=nMJQIYPlRk90iANfNVpkJ2EQX20Dxsyq92-BucEz_UM,1189
|
|
14
14
|
uipath_langchain/_cli/_utils/_graph.py,sha256=2FrlU4bMuEzcHglXzIC54IB8jw55SlENF-SVcpwWsS0,7167
|
|
@@ -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.
|
|
33
|
-
uipath_langchain-0.0.
|
|
34
|
-
uipath_langchain-0.0.
|
|
35
|
-
uipath_langchain-0.0.
|
|
36
|
-
uipath_langchain-0.0.
|
|
32
|
+
uipath_langchain-0.0.121.dist-info/METADATA,sha256=gmDInqkPI5vgkYkMORrf0FaSQmU2ABppifipcvZDEkc,4172
|
|
33
|
+
uipath_langchain-0.0.121.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
uipath_langchain-0.0.121.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
|
|
35
|
+
uipath_langchain-0.0.121.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
|
|
36
|
+
uipath_langchain-0.0.121.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|