deploy cliの紹介
LangChainは、LangGraphプロジェクトをコマンドラインから簡単にデプロイ・管理できる「deploy cli」をlanggraph-cliパッケージに導入し、CI/CDワークフローへの統合を簡素化した。
キーポイント
新コマンド「langgraph deploy」の導入
ローカルのLangGraphプロジェクトをDockerイメージとしてビルドし、PostgresやRedisなどのインフラを自動プロビジョニングすることで、ワンステップでLangSmith Deploymentにエージェントをデプロイできる。
CI/CDワークフロー統合の簡素化
GitHub Actions、GitLab CI、Bitbucket Pipelinesなどの既存のCI/CDツールと連携しやすくすることで、開発者の運用負荷を軽減する。
デプロイメント管理機能の拡充
デプロイメントの一覧表示、ログ確認、削除などの管理コマンドを提供し、ワークスペース内での運用を支援する。
新規エージェントテンプレートの提供
「deep agent」と「simple agent」の新しいテンプレートを「langgraph new」で生成可能にし、開発の開始を容易にした。
影響分析・編集コメントを表示
影響分析
この発表は、LangChainエコシステム内での開発者体験を向上させるツール改善であり、エージェント開発の運用面での障壁を下げることを目的としている。特定のプラットフォーム(LangSmith)へのデプロイを効率化する点では実用的だが、業界全体に変革をもたらすような技術的革新性は限定的である。
編集コメント
開発者向けの実用的なツール改善であり、既存ユーザーのワークフロー効率化に寄与する内容。ただし、新規性や技術的ブレークスルーよりも、エコシステム内での使い勝手向上が主眼と言える。
imageこのたび、deploy cliの導入をご紹介できることをうれしく思います。これはlanggraph-cliパッケージ内の新しい一連のコマンドで、コマンドラインから直接エージェントをデプロイおよび管理する作業を簡素化します。
この新しいコマンド群の最初の一つである langgraph deploy は、わずか1ステップでエージェントを LangSmith Deployment にデプロイできます。これにより、GitHub Actions、GitLab CI、Bitbucket Pipelines などのツールを用いて、既存の CI/CD ワークフローに LangSmith Deployment を容易に統合できます。
このコマンドを実行すると、CLIはローカルのLangGraphプロジェクト用の Docker イメージを構築し、それを実行するために必要なインフラストラクチャをプロビジョニングします。これには、永続化のための Postgres や、ストリーミングメッセージのための Redis などのサポートサービスを設定することも含まれます。そのため、手動でのインフラストラクチャ設定なしで、エージェントを本番環境で確実に実行できます。
langgraph deploy に加えて、ワークスペース内でデプロイメントを作成および管理するのに役立つ他のコマンドもいくつか導入しています。
以下のことが可能です:
langgraph deploy --helpを使用して、利用可能なすべてのコマンドを表示langgraph deploy listを使用して、ワークスペース内のデプロイメントを一覧表示langgraph deploy logsを使用して、デプロイメントログを表示langgraph deploy deleteを使用して、デプロイメントを削除
また、langgraph new で生成できる新しい deep agent および simple agent のテンプレートもリリースしました。
CLIを使用してエージェントをデプロイおよび管理することがどれほど簡単かは、以下の動画をご覧ください:
試してみる
新しいコマンドは、langgraph-cli の最新バージョンで利用可能です。uvx を使用すれば、簡単に開始できます:
uvx --from langgraph-cli langgraph deployドキュメントはこちらをご覧ください:<https://docs.langchain.com/langsmith/cli#deploy>
いつものように、エージェントの構築とデプロイに関する開発者体験を改善し続けるにあたり、皆様からのフィードバックをお待ちしています。
原文を表示
imageWe’re excited to introduce the deploy cli, a new set of commands within the langgraph-cli package that makes it simple to deploy and manage agents directly from the command line.
The first command in this new set, langgraph deploy, lets you deploy an agent to LangSmith Deployment in a single step. This makes it easy to integrate LangSmith Deployment into existing CI/CD workflows using tools like GitHub Actions, GitLab CI, or Bitbucket Pipelines.
When you run the command, the cli builds a Docker image for your local LangGraph project and provisions the infrastructure needed to run it. This includes setting up supporting services like Postgres for persistence and Redis for streaming messages, so your agent can run reliably in production without any manual infrastructure setup.
Alongside langgraph deploy, we’re also introducing a few other commands to help create and manage deployments in your workspace.
You can:
View all available commands using langgraph deploy --help
List deployments in your workspace using langgraph deploy list
View deployment logs using langgraph deploy logs
Delete deployments using langgraph deploy delete
We’ve also released new deep agent and simple agent templates that you can generate with langgraph new .
To see how easy it is to deploy and manage your agents with the cli, see the below video:
Try It Out
The new commands are available now in the latest version of langgraph-cli. You can use uvx to get started easily:
uvx --from langgraph-cli langgraph deploy
See the docs here: https://docs.langchain.com/langsmith/cli#deploy.
As always, we’d love your feedback as we continue improving the developer experience around building and deploying agents.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み