Skip to content

Commit c9dfedc

Browse files
authored
Merge pull request #249 from UiPath/chore/check-langgraph-config-dev
chore: verify langgraph config on dev middleware
2 parents 03a4ae9 + afe29d5 commit c9dfedc

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.148"
3+
version = "0.0.149"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_langchain/_cli/cli_dev.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@
1313
from .._tracing import _instrument_traceable_attributes
1414
from ._runtime._context import LangGraphRuntimeContext
1515
from ._runtime._runtime import LangGraphScriptRuntime
16+
from ._utils._graph import LangGraphConfig
1617

1718
console = ConsoleLogger()
1819

1920

2021
def langgraph_dev_middleware(interface: Optional[str]) -> MiddlewareResult:
2122
"""Middleware to launch the developer terminal"""
23+
config = LangGraphConfig()
24+
if not config.exists:
25+
return MiddlewareResult(
26+
should_continue=True
27+
) # Continue with normal flow if no langgraph.json
2228

2329
try:
2430
if interface == "terminal":

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)