cli: patch to convert graphs paths to posix (#3318)

* Convert graph paths to POSIX for docker.
* Will set up windows build in a separate PR (some issue w/ pulling down
the image) https://github.com/langchain-ai/langgraph/pull/3271
* Fix for https://github.com/langchain-ai/langgraph/issues/2061
This commit is contained in:
Eugene Yurtsev
2025-02-06 17:29:57 -05:00
committed by GitHub
parent eb19b80d13
commit e9b0bc4d3b
2 changed files with 173 additions and 33 deletions
+6 -3
View File
@@ -1,8 +1,10 @@
"""CLI entrypoint for LangGraph API server."""
import os
import pathlib
import shutil
import sys
from typing import Callable, Optional, Sequence
from typing import Callable, List, Optional, Sequence, Tuple
import click
import click.exceptions
@@ -659,7 +661,7 @@ def prepare_args_and_stdin(
debugger_port: Optional[int] = None,
debugger_base_url: Optional[str] = None,
postgres_uri: Optional[str] = None,
):
) -> Tuple[List[str], str]:
# prepare args
stdin = langgraph_cli.docker.compose(
capabilities,
@@ -703,7 +705,8 @@ def prepare(
debugger_port: Optional[int] = None,
debugger_base_url: Optional[str] = None,
postgres_uri: Optional[str] = None,
):
) -> Tuple[List[str], str]:
"""Prepare the arguments and stdin for running the LangGraph API server."""
config_json = langgraph_cli.config.validate_config_file(config_path)
# pull latest images
if pull: