From 9bd78ed483c37bdc07d553550672276db0a2c4ef Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Tue, 1 Apr 2025 05:29:05 -0700 Subject: [PATCH] Allow blocking in dev Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> --- libs/cli/langgraph_cli/cli.py | 8 ++++++++ libs/cli/pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/cli/langgraph_cli/cli.py b/libs/cli/langgraph_cli/cli.py index 12f9ec57e..fd1cb2988 100644 --- a/libs/cli/langgraph_cli/cli.py +++ b/libs/cli/langgraph_cli/cli.py @@ -580,6 +580,12 @@ def dockerfile(save_path: str, config: pathlib.Path, add_docker_compose: bool) - default=None, help="URL of the LangGraph Studio instance to connect to. Defaults to https://smith.langchain.com", ) +@click.option( + "--allow-blocking", + is_flag=True, + help="Don't raise errors for synchronous I/O blocking operations in your code.", + default=False, +) @cli.command( "dev", help="🏃‍♀️‍➡️ Run LangGraph API server in development mode with hot reloading and debugging support", @@ -595,6 +601,7 @@ def dev( debug_port: Optional[int], wait_for_client: bool, studio_url: Optional[str], + allow_blocking: bool, ): """CLI entrypoint for running the LangGraph API server.""" try: @@ -659,6 +666,7 @@ def dev( auth=config_json.get("auth"), http=config_json.get("http"), studio_url=studio_url, + allow_blocking=allow_blocking, ) diff --git a/libs/cli/pyproject.toml b/libs/cli/pyproject.toml index 31b6f1b69..1b1da4e97 100644 --- a/libs/cli/pyproject.toml +++ b/libs/cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-cli" -version = "0.1.81" +version = "0.1.82" description = "CLI for interacting with LangGraph API" authors = [] license = "MIT"