tessl install tessl/pypi-langgraph-cli@0.4.0CLI for interacting with LangGraph API
Agent Success
Agent success rate when using this tile
74%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.17x
Baseline
Agent success rate without this tile
63%
Create a utility that turns a LangGraph configuration file into a built Docker image, wiring together validation, Dockerfile generation, build execution, and a concise build summary.
@generates
from dataclasses import dataclass
from pathlib import Path
from typing import Optional
@dataclass
class BuildSummary:
tag: str
base_image: str
dockerfile: str
contexts: dict[str, str]
pulled: bool
build_args: dict[str, str]
platform: Optional[str]
success: bool
log_path: Path
def build_from_config(
config_path: str,
tag: Optional[str] = None,
*,
base_image: Optional[str] = None,
platform: Optional[str] = None,
pull: bool = True,
build_args: Optional[dict[str, str]] = None,
log_dir: Optional[str] = None
) -> BuildSummary:
"""
Validate the config file, derive a Docker tag when none is supplied, generate
an inline Dockerfile plus build contexts, run the Docker image build with
optional overrides, and persist build logs to a file.
"""Provides configuration validation, Dockerfile generation, and Docker image build tooling for LangGraph projects.