Allow blocking in dev (#4109)

This commit is contained in:
William FH
2025-04-01 05:52:25 -07:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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,
)
+1 -1
View File
@@ -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"