CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-langgraph-cli

tessl install tessl/pypi-langgraph-cli@0.4.0

CLI 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%

task.mdevals/scenario-5/

LangGraph Deployment Asset Generator

Create a small utility that turns a validated LangGraph configuration into ready-to-use deployment assets. The utility should delegate Dockerfile and compose scaffolding to the dependency's generation features instead of hand-written templates.

Capabilities

Dockerfile creation

  • Given an output path and config file, generate a Dockerfile that reflects the config defaults; error cleanly when the config is missing. @test
  • When a base image override is provided, the generated Dockerfile uses that image tag instead of the config default. @test

Compose scaffolding

  • When compose scaffolding is enabled, create a docker-compose.yml in the output directory that references the built image tag and exposes the configured API port. @test
  • Compose scaffolding also writes matching .env and .dockerignore files based on the config (or a provided env file), ensuring the generated files sit beside the Dockerfile. @test

Implementation

@generates

API

from pathlib import Path
from typing import Optional

def generate_assets(
    config_path: Path,
    output_dir: Path,
    *,
    base_image: Optional[str] = None,
    include_compose: bool = False
) -> None:
    """Generate deployment assets from a LangGraph config, delegating file emission to the dependency."""

Dependencies { .dependencies }

langgraph-cli { .dependency }

Provides Dockerfile and compose generation for LangGraph projects.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/langgraph-cli@0.4.x
tile.json